Your if statement will only be TRUE if $id is set to FALSE, NULL or zero (0)--I think you're looking for if the variable is set. That would be: if (isset($id))

Jason Godesky

I'm a beginner of PHP. While trying the code from
a tutorial, I encountered the following problem.

The variable $id can not be transfered to my server.
You can find the code at the end of this email. When
I visit
it always shows the list of the database instead
of a perticular record.

I appreciate your kind helps!

Zhan Xu
EECS Department
Case Western Reserve University

-- PHP Database Mailing List ( To unsubscribe, visit:

Reply via email to