/    Sign up×
Community /Pin to ProfileBookmark

Account management with ARRAYS

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 …:

[code=php]
<?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”];
[/code]

and than ECHO it?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@SpectreReturnsOct 11.2005 — I really didn't understand what you want to do.
Copy linkTweet thisAlerts:
@toplisekauthorOct 11.2005 — I have managed with script as I published. Thanks for fast reply.
Copy linkTweet thisAlerts:
@SpectreReturnsOct 12.2005 — 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.
Copy linkTweet thisAlerts:
@SheldonOct 12.2005 — Do you want to pull the users info, display it into a form and then if they edit it you save the changes?
×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...