No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi Gentlemen Please help the following code shoots error, my purpose is to view the table value for checking purpose, but it fires error, <?php include ('main_config.php'); //get all web settings $web_settings = array(); try { $db = new PDO($mysql_host_db, $mysql_user, $mysql_pass); $query = "SELECT * FROM t_lfs_web_settings"; //$result = … |
|
the following is the error message, Undefined index: gld in F:\xampp\htdocs\lfs\site_globalfn.php on line 14 |
|
<?php include ('main_config.php'); //get all web settings $web_settings = array(); <?php include ('main_config.php'); //get all web settings $web_settings = array(); try { $db = new PDO($mysql_host_db, $mysql_user, $mysql_pass); $query = "SELECT * FROM t_lfs_web_settings"; //$result = $db->query($query); $result = $db->prepare($query); $result->execute(); foreach($result as $row) { echo $row['gld'].'<br />'; echo $row['gname'].'<br … |