Jump to content

SELECT Issue


ainoy31

Recommended Posts

Hello-

 

I have a simple select statement:

 

$ml_id = $_POST['ml_id'];

$sql = "SELECT listname FROM ml_lists WHERE ml_id = '$ml_id'";

 

$result = mysql_query($sql) or die("Error: " . mysql_error());

$row = mysql_fetch_array($result);

$listname = $row['listname'];

 

I have echo out the $ml_id and it is giving me the correct number.  I can not echo the $listname but get the message of Resource id #5.  I have looked over this multiple times and can not figure it out.  Much appreciation.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/70749-select-issue/
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.