AbydosGater Posted November 14, 2006 Share Posted November 14, 2006 Hey,With rows you can use mysql_num_rows, to get the number of rows, and then loop a code to get and display all the row information....But how would you go about getting the information on tables in a database?ThanksAbydos Link to comment https://forums.phpfreaks.com/topic/27226-counting-tables-and-getting-table-data/ Share on other sites More sharing options...
blear Posted November 14, 2006 Share Posted November 14, 2006 [code] $query= " describe userInfo ";$userInfoQuery=mysql_query($query);while($row=mysql_fetch_row($userInfoQuery)){ echo $row[0] . "<BR>";}[/code]This will display all the fieldnames of the table userInfo Link to comment https://forums.phpfreaks.com/topic/27226-counting-tables-and-getting-table-data/#findComment-124498 Share on other sites More sharing options...
AbydosGater Posted November 14, 2006 Author Share Posted November 14, 2006 Thanks thats great... But is there way to loop this through all the tables in a database? Link to comment https://forums.phpfreaks.com/topic/27226-counting-tables-and-getting-table-data/#findComment-124690 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.