Alex1646 Posted March 5, 2011 Share Posted March 5, 2011 Ive been having trouble. Im getting this error: $select = mysql_query($query1); echo $select; $rows1 = mysqli_fetch_array($dbc, $select); I dont understand whats wrong. Link to comment https://forums.phpfreaks.com/topic/229695-warning-mysql_fetch_assoc-expects-parameter-1-to-be-resource-help/ Share on other sites More sharing options...
Pikachu2000 Posted March 5, 2011 Share Posted March 5, 2011 That error is unrelated to that code; it has to be coming from elsewhere. You're mixing mysql_* and mysqli_* extensions. They don't co-mingle, so you need to use one or the other. Link to comment https://forums.phpfreaks.com/topic/229695-warning-mysql_fetch_assoc-expects-parameter-1-to-be-resource-help/#findComment-1183344 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.