Search found 1 match
- Sun Dec 22, 2013 7:53 am
- Forum: PHP - Code
- Topic: function getTableData($table){}
- Replies: 2
- Views: 475
function getTableData($table){}
hey guys.. Im trying to create a function that gets any table's data.. I dont seem to code it logically.. function getTable($table) { //fetch data $sql = "SELECT * FROM " . $table; $q = mysql_query($sql); while($row = mysql_fetch_array($q)) { echo $row[0] . "<br>"; echo $row[1] ....