Dear all
I had a form which ask user to input the Staff Number to be as part of the
query, but when i execute it, it seems not working at all

here is what i wrote in php
The user input box is : $StaffNum

$query="select name,department,Leave_From,Leave_To,Leave_Total,Reason from
leaverequest where Staff_Number="<?print("$StaffNum");?>" and authorized is

But said there is error on this line, which is what i expected!!

So could anyone pls tell me how i can get the varaible into part of the
Query of Mysql?


PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to