faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 6 people (67%) answered Yes
Recently 4 of 6 people (67%) answered Yes

Entry

I am selecting a userid from form and i want to display info from database, based on my selection.

Mar 18th, 2004 03:14
Amit Yadav, ssp2000 ssp2000, Amit yadav


You just query the database u are using based on the ID u are getting 
from the form,if u are getting the id as 
ID=1
then
<?
   query="select * from tablename where id='id'";
   @mysql_query(query);
?>
see also if u are getting the id on the form where u are firing the 
query.
Amit Yadav