You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
not sure if this is a bug or just me. INSERTS row just fine but shows the following errors running $params individually. I can understand, I think?, the class iterates over the elements so params1 and params2 look the same but what's fetch_field() doing?
Fatal error: Call to a member function fetch_field() on a non-object in on line 405
Call Stack
# Time Memory Function Location
1 0.0007 372968 {main}( ) ..\new16.php:0
2 0.0079 485912 Database->rawQuery( ) ..\new16.php:26
3 0.4641 492328 Database->_dynamicBindResults( ) ..\c_Database.php:119
$params = array('joe', 'blow', '3', '1');
Fatal error: Call to a member function fetch_field() on a non-object in line 405
Call Stack
# Time Memory Function Location
1 0.0007 372888 {main}( ) ..\new16.php:0
2 0.0052 485792 Database->rawQuery( ) ..\new16.php:31
3 0.0076 492184 Database->_dynamicBindResults( ) ..\c_Database.php:119
$db = new Database('localhost', 'user', 'password', 'test');
$sql ="INSERT INTO x_user (first, last, user, zoneId) VALUES (?, ?, ?, ?)";
$result = $db->rawQuery($sql, $params);
The text was updated successfully, but these errors were encountered:
not sure if this is a bug or just me. INSERTS row just fine but shows the following errors running $params individually. I can understand, I think?, the class iterates over the elements so params1 and params2 look the same but what's fetch_field() doing?
$params = array('first'=>'me1', 'last'=>'him1', 'user'=>'21', 'zoneId'=>'1');
$params = array('joe', 'blow', '3', '1');
$db = new Database('localhost', 'user', 'password', 'test');
$sql ="INSERT INTO x_user (first, last, user, zoneId) VALUES (?, ?, ?, ?)";
$result = $db->rawQuery($sql, $params);
The text was updated successfully, but these errors were encountered: