PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// sending query
$result = mysql_query("SELECT * FROM {$adgroup_data}");
if (!$result) {
die("Query to show fields from table failed");
}
I have tried numerous iterations of php code to retrieve data from a mysql database (php noob ya' see..) all to no avail.
Connection parameters are fine as far as I am aware (triple checked after I had triple checked) and presumably it would fail before the above code block if any of the connection parameters were incorrect.
So I hand this to expert sages (you!) in the hope that you may be able to help?
What is $adgroup_data? It hasn't been defined anywhere?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.