Our Scripts Vault contains many game scripts that you can use to create your own game!
yeah belive me i debated that option, but given my lack of php skills or coding skills in general I passed on that option.Especially considering all i need to do is display db info in a html table within say a article,possibly with options for different sorting methods if possible.
$sort = isset($_GET['sort']) ? $_GET['sort'] : 'field1';mysql_connect($dbhost, $dbuser, $dbpass);mysql_select_db($dbname);$rows = mysql_query("SELECT * FROM tablename ORDER BY $sort ASC");echo '<table>';echo '<tr><th><a href="/path/to/module.php?sort=field1">Field1</a></th><th><a href="/path/to/module.php?sort=field2">Field2</a></th></tr>';while($row = mysql_fetch_assoc($rows)){ echo '<tr><td>'.$row['field1'].'</td><td>'.$row['field2'].'</td></tr>';}echo '</table>';mysql_select_db($joomlaDatabaseName); // To go back to original database for joomla to continue
I made a userlist like that but bit different, i was able to exploit it so i used a array() and in_array(), to stop it. How i exploited it was like changing the $_GET['sort'] from the Url..