Codes here !
Moderators: macek, egami, gesf
I have a form that displays the information in a DB according to the ID number put in a text field...
but how do I check in the DB to see is there's a reccord with that ID ?
- New php-forum User
- Posts: 32
- Joined: Tue Jan 28, 2003 10:19 am
- Location: Québec
use something like this:
- Code: Select all
$sql = "SELECT user_id, username FROM ".$table." where user_id=".$HTTP_POST_VARS["id"];
comes form the form sent via POST method.
- Posts: 387
- Joined: Sat Aug 03, 2002 2:56 am
- Location: Mars
Return to mySQL & php coding
Who is online
Users browsing this forum: No registered users and 1 guest