my sql databse

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

juansoul
New php-forum User
New php-forum User
Posts: 29
Joined: Tue Oct 08, 2002 6:33 pm

my sql databse

Postby juansoul » Tue Nov 05, 2002 8:01 pm

I need help with the following :
I have a mysql database, in it a table named Feedback inside the table I have the the following columns: id, First Name, Last Name, Email, Comments

can somebody show me the exact code fror retrieving the data inside these columns and print those codes on to a page

everything stating with how to connect to the database please

Jay

Postby Jay » Tue Nov 05, 2002 9:50 pm

I'm sure you can look up how to connect to the db on your own, it's good to read the manual sometimes.

You can do:
$result = mysql_query("select * from Feedback");
while($row = mysql_fetch_array($result)) {
print $row['id'];
print $row['First Name'];
etc
}


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest