[PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
output page we have $list-render( $db, $start, COUNT ); Not sure if that is a clue or not, anyway let me know if you me to post all the related classes and functions. Cheers Gav...

Re: [PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
-runquery( $q ); $row = $db-getrow(); print $row-name; print /h5\n; ProfileList::render($db, $start, $count); } } Evert On Sun, Aug 31, 2008 at 11:21 AM, Gav [EMAIL PROTECTED] wrote: Hi All, I moved a site across from one server to another, and now

Re: [PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
!= \\ ) { window.location.href=newPage; } } // --\n; $this-head .= /script\n\n; } } Thanks Gav... On Sun, Aug 31, 2008 at 1:16 PM, Evert Lammerts [EMAIL PROTECTED] wrote: The code you've sent seems to be fine, and if I check your website it does everything

Re: [PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
of the var_dump($q); *string(66) SELECT id FROM designers WHERE view=1 ORDER BY id ASC LIMIT 0, 30 HTH I am still looking at it myself, but going round in circles, so thanks for your help. Gav... On Sun, Aug 31, 2008 at 10:15 PM, Gav [EMAIL PROTECTED] wrote: On Sun, Aug 31, 2008 at 9:27 PM

Re: [PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
, thanks. Gav... On 8/31/08, Gav [EMAIL PROTECTED] wrote: On Sun, Aug 31, 2008 at 9:27 PM, Evert Lammerts [EMAIL PROTECTED]wrote: You don't need to print the query anymore - I already did that. You need to change your code because right now it is open for SQL injection attacks: I

Re: [PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
On Sun, Aug 31, 2008 at 10:45 PM, Gav [EMAIL PROTECTED] wrote: On Sun, Aug 31, 2008 at 10:36 PM, Evert Lammerts [EMAIL PROTECTED] wrote: In PHP5 register_globals defaults to off. You can either switch it back on through your php.ini and restart your webserver, or change all PHP_SELF

Re: [PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
-load with $db2 instead of $db. aha, excellent explanation , and $db2 = clone$db; worked fine! I was reading my way round php.net and getting closer I think, your explanation and probably saved my a few days , so thanks. -- Gav...

Re: [PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
On Mon, Sep 1, 2008 at 10:10 AM, Gav [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 9:23 AM, Evert Lammerts [EMAIL PROTECTED]wrote: I'm pretty sure I found the problem - I should've spotted it earlier. The function ProfileList::render gets a reference to the $db object by its parameter

Re: [PHP-DB] Problem after moving servers

2008-08-31 Thread Gav
On Mon, Sep 1, 2008 at 10:38 AM, Gav [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 10:10 AM, Gav [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 9:23 AM, Evert Lammerts [EMAIL PROTECTED]wrote: I'm pretty sure I found the problem - I should've spotted it earlier. The function