RE: [PHP] Database problem?

2005-11-29 Thread Ford, Mike
On 28 November 2005 19:28, Jim Moseby wrote: > > Damn! It Worked. Thanks :) > > > > > Even so, John's excellent advice should still be taken. You should > not generally code with a dependence on register_globals, for reasons > you have just seen. Also, it seems likely that register_globals wi

Re: [PHP] Database problem?

2005-11-28 Thread William Stokes
"You should not generally code with a dependence on register_globals" OK. I have to consider that. Apparently the, ISP's production server has this setting "on". Don't know why... -Will "Jim Moseby" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] >> >> Damn! It Worked. Thanks :) >>

RE: [PHP] Database problem?

2005-11-28 Thread Jim Moseby
> > Damn! It Worked. Thanks :) > Even so, John's excellent advice should still be taken. You should not generally code with a dependence on register_globals, for reasons you have just seen. JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

RE: [PHP] Database problem?

2005-11-28 Thread Jim Moseby
> > This page works on a operator hosted production server but > not my own test > server. I have no idea what's causing this and I REALLY need > some help or > ideas what to check. > > This is the browsers address line: > http://localhost/index.php?team=F10a > > I have this in my page and i

Re: [PHP] Database problem?

2005-11-28 Thread William Stokes
Damn! It Worked. Thanks :) "Jay Blanchard" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > [snip] > OK. Where can I change the register_globals setting? > [/snip] > > In the php.ini -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Database problem?

2005-11-28 Thread John Nichel
William Stokes wrote: OK. Where can I change the register_globals setting? In the php.ini and/or in a .htaccess (if you're using Apache, and that Apache server is configured to allow such changes in a .htaccess). However, let me be the fist to suggest that you leave register_globals off, an

RE: [PHP] Database problem?

2005-11-28 Thread Jay Blanchard
[snip] OK. Where can I change the register_globals setting? [/snip] In the php.ini -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database problem?

2005-11-28 Thread William Stokes
OK. Where can I change the register_globals setting? Thanks for the fast replies. -Will "Jay Blanchard" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > [snip] > http://localhost/index.php?team=F10a > > I have this in my page and it doesn't work: > $sql = "select jouk_nimi from x_jun

Re: [PHP] Database problem?

2005-11-28 Thread Curt Zirzow
On Mon, Nov 28, 2005 at 08:37:36PM +0200, William Stokes wrote: ... > I have this in my page and it doesn't work: > $sql = "select jouk_nimi from x_jun_jouk where jouk_id='$team' "; > $kysely = mysql_query($sql); > $tulos = mysql_fetch_row($kysely); > $jouk_nimi = $tulos[0]; > > $jouk_nimi -varia

RE: [PHP] Database problem?

2005-11-28 Thread Jay Blanchard
[snip] http://localhost/index.php?team=F10a I have this in my page and it doesn't work: $sql = "select jouk_nimi from x_jun_jouk where jouk_id='$team' "; $kysely = mysql_query($sql); $tulos = mysql_fetch_row($kysely); $jouk_nimi = $tulos[0]; $jouk_nimi -variable will be empty. This works (replac

[PHP] Database problem?

2005-11-28 Thread William Stokes
Hello, This page works on a operator hosted production server but not my own test server. I have no idea what's causing this and I REALLY need some help or ideas what to check. This is the browsers address line: http://localhost/index.php?team=F10a I have this in my page and it doesn't work: $

Re: [PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Mike Mannakee
Your MySQL servers may be set to refuse anonymous connections. Mike "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Lee P. Reilly wrote: > > >Hi there, > > > >I'm moving an application from Windows -> Linux, and am having a problem > >with the d

Re: [PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Chris Hewitt
Lee P. Reilly wrote: Hi there, I'm moving an application from Windows -> Linux, and am having a problem with the database. I have the following script to test my database connection (Linux): -=-=-=-=-=-=-=-=-=-=-=-=-=- snip =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I'd put in a mysql_error

[PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Lee P. Reilly
Hi there, I'm moving an application from Windows -> Linux, and am having a problem with the database. I have the following script to test my database connection (Linux): -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $connection = mysql_connect("localhost","","") or die

[PHP] database problem?

2001-12-02 Thread christian.donhofer
hi all! i have the following problem: 1.im loading 5 colums from a mysql-table into an array: $threads = db_query("SELECT title, date, body, poster, board_posts_ID FROM board_posts WHERE msgkind = 'thr' ORDER BY date DESC"); everything fine so far... 2.im trying to list them lin