http://www.eznom.net/fourn443/test/add_url.php thats to the error
the error:
Parse error: syntax error, unexpected '>' in /home/eznom34/public_html/fourn443/test/add_url.php on line 66
the script (its not finished so if you think thats it tell me)
Code: Select all
<?php # Script 12.5 - ad_url.php
$page_title = 'Ad a URL';
include ('./includes/header.html');
require_once ('../mysql_connect.php');
if (isset($_post['submitted'])) {
if (eregi('^([[:alnum:]\-\.])+(\.)([[:alnum:]]){2,4}([[:alnum:]/+=%&_\.~?\-]*)$',$_post
['url'])) {
$u = escape_data($_poste['url']);
} else {
$t = false;
echo '<p><font color="red">Please enter a URL name/title!</font></p>';
}
if (!empty($_POST['description']));
} else {
$d = FALSE;
echo '<p><font color="red">Please enter a description!</font></p>';
}
if (isset($_post['types']) && (is_array ($_post['types']))) {
$type = true;
} else {
$type = false;
echo '<p><font color="red">
Please select at least one catagory!</font></p>';
}
if ($u && $t && $d && $type) {
$query = "INSERT INTO urls (url, title, description) VALUES ('$u', '$t', $d')";
$result = @mysql_query ($query);
$uid = @mysql_insert_id();
if ($uid > 0) {
$query = 'INSERT INTO url_associations (url_id, url_catagory_id, approved)
VALUES ';
foreach ($_post['types'] as $v) { $query .= "($uid, $v, 'y'), ";
}
$query = substr ($query, 0, -2);
$result = @mysql_query ($query);
if (mysql_affected_rows() == count($_post['types'])) {
echo '<p><b>Thank you for your submission!</b></p>';
$_post = array();
} else {
echo ' <p><font color="red">Your submission could not be processed due to system error. We do apologize for any inconvenience.</font></p>';
echo ' <p><font color="red">' .mysql_error() .' <br /><br />Query: ' / $query .'
</font></p>';
$query = "DELETE FROM urls WHERE url_id=$uid";
@mysql_query ($query);
}
} else {
echo ' <p><font color="red">Your submission could not be processed due to a system error.
we apologize for any inconveniance.</font></p>';
echo ' <p><font color="red">' .mysql_error() .' </font></p><br /><br />Query: ' / $query .'
}
} else {
echo ' <p><font color="red">Please Try Again.</font></p>';
}
}