Re: possible Error in Querydefiniton

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 07 October 2002 16:16, Ruprecht Helms wrote:
> Hi John W. Holmes,
>
> > You can find out why with mysql_error(), but it's probably because you
> > haven't selected a database with mysql_select_db().
>
> now I have this code, but with the same result
>
>   <?
>   mysql_connect("localhost","root");
>   mysql_select_db("finance");
>   mysql_db_query("finace","INSERT INTO buchung (Bezeichnung) VALUES
> ('b')")or die("Queryfehler");
>   ?>
>
> I always become the die-message. I'm using PHP Version 4.0.6

Try adding some error checking code. Have a look at the numerous PHP/MySQL 
tutorials to find out how it should be done.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
Anarchy may not be a better form of government, but it's better than no
government at all.
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux