Hey im getting a small error on my php script and im not sure why
the error is Parse error: parse error, unexpected $end in on line 46 which is the line ?> at the very end.
Thanks adam
[code=php]
<?PHP
require_once(‘page_build.php’);
//conn
$conn = mysql_connect(“localhost”, “k0m0d0”, “ragnarok”) or die(mysql_error());
//select db
mysql_select_db(“ebay”,$conn) or die(mysql_error());
//statement
$sql = “SELECT AuctionID, WinnerUserID FROM itemswon WHERE WinnerUserID =
‘$_POST[eBayUserID]’ AND eBayItemNumber = ‘$_POST[eBayItemNumber]'”;
//if script
$result = mysql_query($sql, $conn) or die(mysql_error());
if (mysql_num_rows($result) ==1) {
//fetch results
$row = mysql_fetch_array($result);
//extract is into the echo
extract($row);
//new sql statement
$sql2 = “SELECT Title, SubTitle FROM auctions WHERE ID = ‘$AuctionID'”;
//run the query
$result2 = mysql_query($sql2, $conn) or die(mysql_error());
if (mysql_num_rows($result2) ==1) {
//fetch results
$row2 = mysql_fetch_array($result2);
//extract is into the echo
extract($row2);
//display HTML from the page_build
page_header();
ebay_2();
page_footer();
// If the eBayItemNumber dont exist
} else {
echo “Your eBayUserID”;
};
?>
Thanks Adam