Web Hosting Talk







View Full Version : POST Affiliate 1.0 help


vision3
11-16-2003, 01:26 AM
Hi i download POST Affiliate 1.0 and when i click on add banner it suppose to give me several of options but all i get is a page saying "Here are the banners you offer:"
. I email the owner but got no respond so i was wondering if anyone here can see any problem with this script?

This is from the file called: banners.php

<?
session_start();

include "../../affconfig.php";
include "../lang/$language";

if(!aff_admin_check_security())
{
aff_redirect('index.php');
exit;
}

include "header.php";

mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 22)");

$result = mysql_db_query($database, "select * from banners ORDER BY name asc")
or die ("Database Error");

echo "<br><a href=banneradd.php>".AFF_B_ADDBANNER."</a><br>";

print "<br><br><font face=arial>".AFF_B_BANNERSOFFER.":<br><br>";

if (mysql_num_rows($result))
{
print "<font face=arial><TABLE width=100% align=center>";
while ($qry = mysql_fetch_array($result))
{
print "<TR>";
print "<TD width=10><font size=4>";
print $qry[number];
print "</TD>";
print "<TD><font size=4 align=left>".$qry[name]." - <a href=banneredit.php?edit=".$qry[number].">".AFF_B_EDITBANNER."</a>";
print "&nbsp;&nbsp;<a href=bannerdelete.php?delete=".$qry[number].">".AFF_B_DELETEBANNER."</a>";
print "</TD></TR><TR>";
print "<TD colspan=2 align=center><font size=4><center>";
print "<img src=http://";
print $domain;
print "/images/";
print $qry[image];
print "></TD>";
print "</TR>";
print "<tr><td><br><br></td><td></td></tr>";

}
print "</TABLE>";
print "<br><br>";
}

include "footer.php";
?>

Burhan
11-16-2003, 03:24 AM
that script is doing what you describe. I haven't used POST Affiliate or else I would be of help. There is nothing wrong with that script (other than the fact it uses deprecated functions).

vision3
11-16-2003, 01:31 PM
hmm ok thanks you ill go over the install text again for the 4th time to make sure i did everything right. But thanks.

vision3
11-16-2003, 11:34 PM
well i went over the installation text and i did every thing correct. but im still not able to add banners. if anyone can think of anything else that would be great.

hycloud
11-19-2003, 12:14 AM
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 22)");

$result = mysql_db_query($database, "select * from banners ORDER BY name asc")
or die ("Database Error");

echo "<br><a href=banneradd.php>".AFF_B_ADDBANNER."</a><br>";

print "<br><br><font face=arial>".AFF_B_BANNERSOFFER.":<br><br>";


I don't use the script, but my guess is either there is no banners in the database or "AFF_B_ADDBANNER' and 'AFF_B_BANNERSOFFER' are not parse correctly.

Most likely there is no banners in the database. :)