Page 1 of 1

Define variable value from mysql database

Posted: Sat Jul 04, 2009 12:12 pm
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?

Re: Define variable value from mysql database

Posted: Sat Jul 04, 2009 1:08 pm
by califdon