Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-02-01 Thread Berthold
Hi again! If it would be so simple I would not ask... OK, once more: #!/usr/local/bin/php -q ?php $link1 = mysql_connect(localhost,user,passwd) || die (Fehler! Zeile .__LINE__.:\n.$php_errormsg.\n.mysql_error()); echo Link 1: $link1\n; if (mysql_select_db(test, $link1)) { echo Successful

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-02-01 Thread Jason Wong
On Friday 01 February 2002 16:23, Berthold wrote: Hi again! If it would be so simple I would not ask... OK, once more: #!/usr/local/bin/php -q 1) Has the mysql functions ever worked for you on that system? 2) Are you only get this problem when using php from the command line? -- Jason

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-02-01 Thread Berthold
Hi! 1) Yes of course. I only have to delete the $link-variables... But then - of course - I can only use the last connection. 2) It made no sense. Shell or Apache. And the settings in php.ini are '-1' for 'unlimited'. And I use the right php.ini, even with the shell-version. Jason

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread Berthold
Hi! mysql_error returns nothing... The error arrives while selecting the database via: $link = mysql_connect(host,user,passwd); mysql_select_db(bla, $link); echo $link returns always '1'! David Robley wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... So, I've testet

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi! mysql_error returns nothing... The error arrives while selecting the database via: $link = mysql_connect(host,user,passwd); mysql_select_db(bla, $link); echo $link returns always '1'! David Robley wrote: In

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread Berthold
Hi! Thank you. But I cannot use that $link1 and/or $link2 to select two databases on different servers... If I use $link1 the first time to select the first database on the first server I got that error. But without that $link1-variable AND only one connection in the script it works. And it

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread Jason Wong
On Friday 01 February 2002 15:38, Berthold wrote: Hi! Thank you. But I cannot use that $link1 and/or $link2 to select two databases on different servers... If I use $link1 the first time to select the first database on the first server I got that error. But without that $link1-variable AND