فنكشن php function عرض جميع الجداول من قاعدة البيانات mysql tabels
// GET ALL TABLES function mysql_tables($database=''){ $tables = array(); $list_tables_sql = "SHOW TABLES FROM {$database};"; $result = mysql_query($list_tables_sql); if($result) while($table = mysql_fetch_row($result)) { $tables[] = $table; } return $tables; }
0 التعليقات:
إرسال تعليق