Is it possible to retrieve one cell of data from a MySQL database? I need to put the ID from one row of a table into a php variable so that I can recall the correct row later on for editing purposes. If you know how to do this please help me! I will post my code if you ask me to.
sickly_man
0
Light Poster
Recommended Answers
Jump to PostYes. Just select that one column name and use a WHERE clause to limit it to the one row you want:
SELECT column_name FROM table_name WHERE spme_column = 'some value'
Jump to PostThis is pretty basic PHP/MySQL. Have you read any tutorials on this yet? How much code have you written so far?
All 7 Replies
stymiee
111
He's No Good To Me Dead
Team Colleague
sickly_man
0
Light Poster
stymiee
111
He's No Good To Me Dead
Team Colleague
sickly_man
0
Light Poster
Puckdropper
7
Posting Pro in Training
WhiteLeo
0
Newbie Poster
sickly_man
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.