Jump to content

help why this code is not working


brown2005

Recommended Posts

any help why this does not work please? doesnt echo anything.

 

	$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');

$dbname = 'selmgec';

$id = $_GET['id'];

mysql_select_db($dbname);

$query  = "SELECT * FROM emails_members";
$result = mysql_query($query);

while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{

 	$test = $row['members_first'];

    	echo"$test <br>";
} 

Link to comment
https://forums.phpfreaks.com/topic/201671-help-why-this-code-is-not-working/
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.