Define variable value from mysql database

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
xiaomahe
Forum Newbie
Posts: 11
Joined: Sun Jun 28, 2009 10:14 am

Define variable value from mysql database

Post by xiaomahe »

Hai, i wan to define a variable whereby its value is taken from a table inside a database..

I had this member table, and inside it has login, whereby default login value is 0.

And i want to set this value into a new php variable called $login.. how do i code this?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Define variable value from mysql database

Post by califdon »

Post Reply