Jump to content

brain fart


dmccabe

Recommended Posts

Please help me out I am having a complete brain fart here:

 


	$aid = $_GET['aid'];
	$query = "SELECT * FROM `tbl_corpaccount` WHERE `aid` = $aid";
	$result = mysql_query($query);
	if (!mysql_query($query)) {
		die('Error: ' . mysql_error());
	}

	echo $query;

	$accname = $result['accname'];

 

$accname is never containing a value. but why?

 

I have run the query on my db and it works fine.

Link to comment
https://forums.phpfreaks.com/topic/98787-brain-fart/
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.