doesnt work
i get an error message
although not through doing what yopu suggested.
here is my code
<?php
$EventID=$_POST['EventID'];
mysql_connect('localhost', 'phpuser', 'phpuser03')or die ("Database connection error");
mysql_select_db('booking');
$sql = "SELECT ticket.Price FROM ticket WHERE EventID=$EventID";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo $row['Price'];
}
?>
my error message is
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\m82\availabletickets.php on line 18