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!
Hi. I need some form of example please.
However, the root issue here has been resolved. It seems that there was hidden code in the variable, which I discovered and have since stripped out.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
<?php
$result = mysql_query ("SELECT id, romancode, players FROM events WHERE romancode = '$itemcode'");
var_dump($result);
?>
Depending on what the return result is you can figure out whether the query failed or not (in case of a SELECT statement, mysql_query() will return a resource on success and false on failure.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering