This is really more of a PHP question, than it is a MySQL question....
mysql_query returns an integer which is the identifier that you will use to
call other mysql functions which utilize the results from your query.
For example:
$row_count = mysql_num_rows($result) ;
...this will set $row_count equal to the number of rows returned by your
query identified by $result).
See www.php.net/mysql for some good information on this as well.
HTH
Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]
-----Original Message-----
From: Randy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 2:38 PM
Cc: [EMAIL PROTECTED]
Subject: Resource id #2
When I run any kind of query this is the value of result Resource id #2
Example
$result= mysql_query (" Select * from ACCT_TBL ") or die
("Error".mysql_error());
print result;
any ideas?
randy
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php