kvishnu_13 Posted June 13, 2007 Share Posted June 13, 2007 Well, the topic says it..will mysql_fetch_array() work, when returned result is a table? I have worked with codes where the returned result is a row(a one-dimensional array), but when it is table, a multi-dimensional array, how do I work with them? It will be really grateful if someone can explain the process of accessing the values of a returned table. Link to comment https://forums.phpfreaks.com/topic/55354-will-mysql_fetch_array-work-when-returned-result-is-a-table/ Share on other sites More sharing options...
ToonMariner Posted June 13, 2007 Share Posted June 13, 2007 yes - it will fetch a row at a time you normally use it like so... while($row = mysql_fetch_assoc($res)) { // do stuff with each record set like fill-in a html table row etc etc. } Link to comment https://forums.phpfreaks.com/topic/55354-will-mysql_fetch_array-work-when-returned-result-is-a-table/#findComment-273579 Share on other sites More sharing options...
kvishnu_13 Posted June 13, 2007 Author Share Posted June 13, 2007 Thanks a lot man Link to comment https://forums.phpfreaks.com/topic/55354-will-mysql_fetch_array-work-when-returned-result-is-a-table/#findComment-273587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.