By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,359 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

what happens when you print an entire table

tolkienarda
100+
P: 316
hi all

i am trouble shooting somthing and i was curious what happens when i try to print the results from a mysql query
example

[PHP]
$result = mysql_query("SELECT bubbles, fairys FROM holes WHERE plants='$grow'");

echo $result;
[/PHP]
Feb 20 '07 #1
Share this Question
Share on Google+
3 Replies


ronverdonk
Expert 2.5K+
P: 4,258
That will just give you the OBJECT #n number. You will have to retrieve the results from this object in order to get to the selected rows of the table.

Ronald :cool:
Feb 20 '07 #2

Motoma
Expert 2.5K+
P: 3,235
PHP.net will give you a lot of information, in particular, the return values and types of functions and classes.
Feb 20 '07 #3

tolkienarda
100+
P: 316
thanks

eric
Feb 20 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.