Thread: PHP/MySQL
View Single Post
  #2  
Old 11-30-2005, 03:03 AM
Lakie is offline Lakie

Join Date: Mar 2002
Posts: 5,540

fetch all the mysql data for a given row and array it

$getnews=mysql_fetch_array(mysql_query("SELECT * FROM whereever WHERE id='1'");

that puts the returned data into an array, accessable by

$getnews[fieldname] (postTXT, postTIME etc)

You could just straight away use the array varibales to poulate a HTML form using the HTML value, and if its just you then you could do this, but it would be an idea to stripslashes, nl2br etc etc to do it properly...

I think anyway, p would be more help...
Reply With Quote