Hey, I'm rather new to php and am suffering from what is probably termed as a "rookie error"... I have 100 tickets for sale for a society event, and people are reserving tickets online. Their information is sent to a mysql database such that each reservation takes up one row. I've set up a php script which tries to access row x of the mysql table. If it finds row x, then it sends the user's data to a waiting list table. If not, then it sends it to the ticket reservation table. I got it working last night, then started fannying around with it this afternoon and now I can't get it to work again (I'm sure the code is the same as last night but obviously not...). The 'if' section doesn't seem to work, so the script just always includes tickets_success.php... Here's the code: [code]<?php // Open database connection include 'dbdata.php'; // Check the number of tickets already sold $result = mysql_query("SELECT id FROM tickets WHERE id = '100'"); // Determine which table to send the data to and include the script if ($result == '100') { include('tickets_waiting.php'); } else { include('tickets_success.php'); } ?>[/code] Any pointing out of general idiocy on my part would be much appreciated... :)