ricmetal Posted October 3, 2009 Share Posted October 3, 2009 hi im looking at the manual and i dont get it easily should i call num_rows() after fetch()? or should i call store_results() after execute(), and then num_rows() and not call fetch() if num_rows() == 0? Link to comment https://forums.phpfreaks.com/topic/176384-solved-mysqli-order/ Share on other sites More sharing options...
DEVILofDARKNESS Posted October 4, 2009 Share Posted October 4, 2009 mysql_query() if(mysql_num_rows() > 0){ mysql_fetch() }else{ // Else } In that order you should do it.. Link to comment https://forums.phpfreaks.com/topic/176384-solved-mysqli-order/#findComment-930044 Share on other sites More sharing options...
Mchl Posted October 4, 2009 Share Posted October 4, 2009 mysqli usage is very similar to mysql. What exactly are you having problem with? Link to comment https://forums.phpfreaks.com/topic/176384-solved-mysqli-order/#findComment-930048 Share on other sites More sharing options...
ricmetal Posted October 5, 2009 Author Share Posted October 5, 2009 okay, thanks devil i got it working in that order although i had to add a few functions i got it working like this: execute(), store_results(), num_rows(), bind_results(), fetch() thanks again mchl, just ordering the functions correctly Link to comment https://forums.phpfreaks.com/topic/176384-solved-mysqli-order/#findComment-930601 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.