Jump to content

Recommended Posts

Hi,

I've got a sql statement which works on my local machine but when transferring to hosted site fails.

Yes my local version of mysql is 5.0.37 and on the host it is 4.1.22-standard.

From what I can see in the manual there isn't anything different concerning the syntax used (but i'm no sql expert!), can anyone suggest what's wrong?

 

$s = "SELECT ".$tn.".id, rip, time, response, method, link, agent, sid FROM ".$tn." left join ".$tnL." on link_id = ".$tnL.".id left join ".$tnA." on agent_id = ".$tnA.".id  left join ".$tnS." on sess_id = ".$tnS.".id  LIMIT ".$start.", ".$rows."";

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/68667-solved-mysql-version-prob/
Share on other sites

On the host nothing, I presume error messaging is turned off and because I use a wrapper with a try catch statement nothing is ever outputted anyway. I'll do a direct test page to check though.

I've tried removing the limit statements, then changing the 'left join' to just join etc, but no avail?

BRB

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.