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
It returns:
Fatal error: Call to undefined function fetch_array() in /home/langsyst/public_html /seabreeze software/R etail/Upda te_Space.p hp on line 383
It's probably me. I'm having a bad day
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();
It returns:
Fatal error: Call to undefined function fetch_array() in /home/langsyst/public_html
It's probably me. I'm having a bad day
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found it. My eyes are getting bad