Jump to content

Pleas help convert queries from MySQL 4 to MySQL 5


mrban

Recommended Posts

Please help my whit this code i can find what need to change , spend all day and nothing.

it works on mysql 4, in version 5 it does not.

$dbu->query("select distinct car.*, type.name as type_name, make.name as make_name, member.dealership as member_dealership, member.member_type as member_member_type, member.first_name as member_first_name, member.phone as member_phone, member.city as member_city, market_segment.name as market_segment_name from car
inner join type on car.type=type.type_id
inner join market_segment on car.market_segment=market_segment.market_segment_id
inner join make on car.make=make.make_id
inner join member on car.member_id=member.member_id
where car.car_id='".$glob['car_id']."' and car.exp_date > '".$now."' and car.active1='1'");

   

Link to comment
Share on other sites

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.