RE: [PHP-DB] Retreive email address from MySQL DB

2003-01-08 Thread Matthew Moldvan
mysql_query returns an array, not simply a string ... my recommendation is do your error checking near your mysql_query statement (i.e. if(!mysql_query(whatever) die();) then do an else to loop through the results. loop using mysql_fetch_row(RESULT), where result is your "RESOURCE ID", echoing RES

RE: [PHP-DB] Retreive email address from MySQL DB

2003-01-07 Thread John W. Holmes
> I have a database: web_feedback, and it has 5 columns: > > Firstname varchar(40) not null > Lastname varchar(40) not null > Email varchar(40) PRIMARY KEY not null > ServList varchar(40) not null > Timestamp not null > > I run a query in a PHP script to retrieve the email address the line of > c