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, basically i'm trying to run this script which looks at a mysql database, looking up student records to display the student's balance and transaction history, (script below) problem is i'm getting a parse error when trying to run the second SQL query, which I'm guessing is the problem (running two querys). Any ideas, help will be much appriciated as I don't have long to get this all done (5 hours ish) and my system seems to be falling into an abyss of chaos!!!
you are not performing any inpu tvalidation, at least have a mysql_escape_string on $_POST['username']
you are missing a ; on line 23-26
kick in error_reporting(E_ALL)... this always gives a hint where to look in case of errors... also use mysql_Error... gives you another level of error hinting....