Click to See Complete Forum and Search --> : Account management with ARRAYS


toplisek
10-10-2005, 06:23 AM
I have data in table for each registered user. I would like to do form and possibility to update data. Is this the best to do with array function. Can you suggest or ...:

<?PHP

//search for name
/* Connect to MySQL-Server */
...


/* Open $db */
...

$query = "SELECT * FROM users ORDER BY Index DESC LIMIT 1";
$result = mysql_query($query) or die ("SQL error: $query -- " . mysql_error());
while ($row = mysql_fetch_array($result)) {

$fnamemem = $row["firstname"];


and than ECHO it?

SpectreReturns
10-10-2005, 11:58 PM
I really didn't understand what you want to do.

toplisek
10-11-2005, 02:58 AM
I have managed with script as I published. Thanks for fast reply.

SpectreReturns
10-11-2005, 09:31 PM
Sorry, but I still don't understand. Start from what you want to do, and then explain how you did it, and what doesn't work.

Sheldon
10-12-2005, 12:19 AM
Do you want to pull the users info, display it into a form and then if they edit it you save the changes?