PHP and mySQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Ju-Pao
Forum Newbie
Posts: 9
Joined: Wed Feb 21, 2007 3:44 am

PHP and mySQL

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
User avatar
Ju-Pao
Forum Newbie
Posts: 9
Joined: Wed Feb 21, 2007 3:44 am

Post by Ju-Pao »

ok, thanks volka, will read the link :D
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply