Page 1 of 1

PHP and mySQL

Posted: Thu Mar 08, 2007 2:26 am
by Ju-Pao
How can I retrieve a data from my mySQL database using PHP and save the data in a variable in in my PHP code

for example i have this table in the database


First Name|||||Last Name

Juan |||||||||||||||| Punkista


I would like to store 'Juan' in variable $first and 'Punkista' in variable $last

thank you for your notice

Posted: Thu Mar 08, 2007 2:29 am
by volka
There's a wonderful online manual telling you all the basic stuff you need to know about php and mysql, http://de2.php.net/mysql

Posted: Thu Mar 08, 2007 2:48 am
by Ju-Pao
ok, thanks volka, will read the link :D

Posted: Thu Mar 08, 2007 2:48 pm
by RobertGonzalez
It is probably a good idea to do some searching (and researching) before asking the community how to do it. Even a search of these forums would have yielded something for you I'm sure.