Resource ID no.2
Posted: Tue Jun 03, 2003 6:13 pm
I am having a problem with a very simple mysql query, basically all i get as an output is resource id #2. I have spent ages on this trying to figure it out, and i would certainly appreciate any help you guys could give me.
This is the code I am using:
thankyou very much 
This is the code I am using:
Code: Select all
<?php
$db = mysql_connect("localhost", "admin", "tingkyl6");
mysql_select_db("northeastcleaners1",$db);
$main = mysql_query("SELECT maintxt FROM overview",$db);
print("
<form method='post' action=$PHP_SELF>
<textarea name='pop' rows='10' cols='60'>$main</textarea>
<br><input type='Submit' name='edit' value='Edit'></input>
</form>
");
?>