PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mysql_connect($host,$user,$pass) or die("COULD NOT CONNECT TO DB");
mysql_select_db($db) or die("COULD NOT SELECT DB");
//run query
$query = "SELECT * FROM user_rides WHERE yearcat=".$_REQUEST['yearcat'];
if ($r = mysql_query($query) or die(mysql_error())
{
//print
while ($row = mysql_fetch_array ($r))
{
print "{$row['name']}";
}
else {die('error');
}
To "fix" your ini: find the entries in it for "error_reporting" and "display_errors". Make sure they are set to "E_ALL", and "On" respectively. Since there may be multiples of either in the file, make sure to alter only the uncommented line (no leading semicolon.) Restart your web server.