Stupid PHP question
Posted by: Ramses
Posted on: 2005-05-17 18:08:00
Ok, I've got a real simple question about a php script I'm trying to develop.
I'm trying to access a database, and display information based on the search. This is the code I am using to query teh DB and display the info regarding the query:
$query = "select * from DB_TABLE where domain=$domain";
$result = mysql_db_query ("DATABASE_NAME", $query);
echo "
$domain<BR>
$username<BR>
$password<BR>
$storefront<BR>
$admin<BR>
";
Is there any reason that this code wouldn't work at all? I can get no results using this.
Thanks.
================================
I'd give my right arm to be ambidexterous!