yo_da84
01-13-2005, 07:30 PM
Hi Guys,
im new to PHP and MySQL. im trying to get a very very very simple query from a MySQL db using the following code, but it keeps giving me
"Resource ID#4"
Any ideas?
###########################################
<?php
//Call the MySQL location, user and password from the mysql_db.php file//
require("mysql_db.php")
?>
<?php
$query="SELECT * FROM products";
$results=mysql_query($query)
or die(mysql_error());
echo $results;
?>
###########################################
cheers
Yo_da84
im new to PHP and MySQL. im trying to get a very very very simple query from a MySQL db using the following code, but it keeps giving me
"Resource ID#4"
Any ideas?
###########################################
<?php
//Call the MySQL location, user and password from the mysql_db.php file//
require("mysql_db.php")
?>
<?php
$query="SELECT * FROM products";
$results=mysql_query($query)
or die(mysql_error());
echo $results;
?>
###########################################
cheers
Yo_da84