tadziu
10-25-03, 03:34 PM
When I do this :
$fn = tom;
$query = "INSERT INTO users (first_name) VALUES ( '$fn')";
$result = @mysql_query($query);
print_r($query); echo "<br>";
print_r($result); echo "<br>";
I get this:
INSERT INTO users (first_name) VALUES ( 'tom')
1
This way it works ok.
*********
$query = "SELECT * FROM users WHERE (first_name = '$fn') ";
$result = @mysql_query($query);
print_r($query); echo "<br>";
print_r($result); echo "<br>";
I get this:
SELECT * FROM users WHERE (first_name= 'tom')
Resource id #3
What is this result? (Resource id #3)
************************************************** ***************************************
Any ideas why I get the Resource id #3 result when I do a SELECT?
.
thanks in advance
$fn = tom;
$query = "INSERT INTO users (first_name) VALUES ( '$fn')";
$result = @mysql_query($query);
print_r($query); echo "<br>";
print_r($result); echo "<br>";
I get this:
INSERT INTO users (first_name) VALUES ( 'tom')
1
This way it works ok.
*********
$query = "SELECT * FROM users WHERE (first_name = '$fn') ";
$result = @mysql_query($query);
print_r($query); echo "<br>";
print_r($result); echo "<br>";
I get this:
SELECT * FROM users WHERE (first_name= 'tom')
Resource id #3
What is this result? (Resource id #3)
************************************************** ***************************************
Any ideas why I get the Resource id #3 result when I do a SELECT?
.
thanks in advance