i'm not running it on my local computer. the sql is on a server seperated!! If I run the php query as localhost it will run on my pc and not on the server pc.. But if I put the ip address it will return to the server and make the query there..
It's the setup of the mysql_connection that sell be need to be changed..
In my other php program it make the query perfectly, weil the config.php have a mysql_connection with an ip address. so it can by runned from the server to my pc and reload in server...
New the big questen is how to split the
$dbhost="localhost";
$dbusername="root";
$dbpassword="";
$dbname="invoice";
in to a normal connection, because it have $db..ect and the $db is requred!!