Jump to content

Resource Id#


Beeeeney

Recommended Posts

Hi all. I'm a complete nub at PHP so I was wondering if anyone could help me out?

 

This code:

 


<?php

mysql_connect("localhost", "XXX", "XXX") || die('Error:' . mysql_error());
mysql_select_db("newsite");

$query = "SELECT * FROM `newsite` . `content`";
$post = mysql_query($query);

echo $post;

?>

 

Returns "resource id #4" to the browser.

 

Any ideas on how to get it to return the actual DB data?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/269251-resource-id/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.