Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SimpleShop
#1
Hi there,

I'm coding a simple Shop plugin to GS from existing shop. I'm stuck to situation where I'm trying to fetch data from db to gs plugin admin area and nothing gets printed...

Test code looks like this:
PHP Code:
require 'plugin/config.php';

    
$query "SELECT * from " $db_database "." $db_table "_category";
    
$result mysqli_query($db$query);

    if (
mysqli_num_rows($result)>0) {
        while (
$row mysqli_fetch_assoc($result)) {
            echo 
'<pre>';
            
print_r($row);
        }
    } 

config.php is the file where the connections are made and they are ok.

Anyone who could help me with this...?
Reply


Messages In This Thread
SimpleShop - by villeristi - 2013-03-13, 20:20:52
RE: SimpleShop - by timme - 2013-03-13, 20:43:46
RE: SimpleShop - by villeristi - 2013-03-13, 22:09:54
RE: SimpleShop - by shawn_a - 2013-03-13, 23:12:50
RE: SimpleShop - by villeristi - 2013-03-13, 23:15:47
RE: SimpleShop - by shawn_a - 2013-03-13, 23:24:33



Users browsing this thread: 1 Guest(s)