Link to home
Start Free TrialLog in
Avatar of breeze351
breeze351

asked on

Problem with fetch statement error

Php problem with a query returning undefined error message.

I can't see what is wrong with the following code
	$SqlString1 = "SELECT * FROM survey_data WHERE SEQ = '$Building_Id' and STOREKEY = '$Space_Id'";
	$Survey_Data = $conn->query($SqlString1);
	$row_survey = $Survey_Data>fetch_array();

Open in new window


It returns:
Fatal error: Call to undefined function fetch_array() in /home/langsyst/public_html/seabreezesoftware/Retail/Update_Space.php on line 383

It's probably me.  I'm having a bad day
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

It looks like you are using 'mysqli' and that is the wrong syntax.  See here: http://php.net/manual/en/mysqli-result.fetch-array.php
ASKER CERTIFIED SOLUTION
Avatar of NerdsOfTech
NerdsOfTech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of breeze351
breeze351

ASKER

Found it.  My eyes are getting bad