-6

i want to retrieve particular cell data from mysql. and it should display in a php page.

details-

db name: register, table name: users

columns are: username, fullname, email, password.

i want to display 'fullname' column first row data in php. how to do that.

2

1 Answer 1

-2

NOTE: MySql is deprecated. You should use MySqli or PDO.

This would help you.

$sql = "SELECT fullname FROM users";
$row = mysql_query($sql);

while($data = mysql_fetch_assoc($row)){
    echo $data['fullname'];
}
Sign up to request clarification or add additional context in comments.

1 Comment

@Dagon : didn't get you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.