I'm trying to creat an affliate application page but I can't get it to work. I keep getting an error for either a line that doesn't exist or a plave where there is no $. The area around these errors is the actual form. Any suggestions? oh and the error looks like this:
Quote:
Parse error: parse error, unexpected $ in /home/worm13/public_html/boards/afflilate_app.php on line 75
|
and here's the code for the area around the error (starts at line 50):
PHP Code:
if ( $at && $au && $ao && $ab) { //is everything is there
//check and make sure that the URL is unique
$query = "SELECT aff_url FROM affiliates WHERE aff_url = '$au'";
$result = @mysql_query($query);
if (mysql_num_rows($results) == 0) { //is what really makes sure its not been used
//add the affiliate
$query = "INSERT INTO affiliates (aff_title, aff_url, owner, about, since) VALUES ('$at', '$au' '$ao', '$ab', NOW() )";
$results = @mysql_query($query); //adds the affiliate
echo '<tr><td class="system" colspan="100%" align="center"> Thank you for applying! Return to the<a href="http://www.eternalrealm.centaurinetx.com/boards/affiliates.php"> Affiliates Page.</a>
</td></tr>';
foot();
exit();
} //end of submit conditionals! YAY!
echo '<tr><td class="dark">Affiliate Application</td></tr>';
?>
<form method="post">
<feildset>
<tr><td '.shade().'>Site Title:<input type="text" name="aff_title" size="15" maxlength="30" value="aff_title" /> </td></tr>
<tr><td '.shade().'>Site URL:<input type="text" name="aff_url" size="15" maxlength="30" value="aff_url" /> </td></tr>
<tr><td '.shade().'>Site Owner:<input type="text" name="owner" size="2" maxlength="30" value="owner" /> </td></tr>
<tr><td '.shade().'>About the Site: <textarea rows="3" cols="50" name="about"> </textarea></td></tr>
<div align="center"><input type="submit" value="affiliates" /></div>
</feildset>
</form>
<?php
foot()
?>
Edit; Fixed code that was copied wrong.