Hey,
I'm a total n00b with PHP/MySQL and I'm learning so;
How do I grab the data from a MySQL table? I have a table called siteconfig and in there I want to grab the single result from sitename.
Now, I did:
and then:PHP Code:$sitenquery = "SELECT sitename FROM siteconfig";
$sitendb = mysql_query($sitenquery);
$sitename = mysql_result($sitendb);
But it doesn't work?PHP Code:<title><?php echo($sitename); ?></title>
Sorry if this is a stupid question but I am still learning!![]()







Reply With Quote


