We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Strange MySQL query results

Development and Programming

spaceageliving's avatar
spaceageliving
1 posts
14 years ago
spaceageliving's avatar spaceageliving

Another EE newbie question…

I have a template which executes a MySQL query (I know, I know, probably not the best way to do things…). Mysteriously, the template renders fine when I access from Safari/Mac, but when rendering from FF4, the query fails!?! The query is using POSTed parameters from a form…I have been outputting the query text string for debugging purposes, and I can paste the query into phpMyAdmin and get the same result set I am getting in Safari. Very strange, any insight is much appreciated…thanks, David

Here is the query:

SELECT donor_donors.ser, donor_donors.donor_number, donor_donors.alias, donor_donors.birthday, donor_donors.proven, donor_donors.notes, donor_donors.photo_id, donor_profiles.info002, donor_profiles.physical005, donor_profiles.physical011, donor_profiles.info007, state.state AS state, donor_profiles.info004, donor_profiles.character001, donor_profiles.character0035
FROM donor_donors
LEFT JOIN donor_profiles ON donor_donors.ser = donor_profiles.donor_id
LEFT JOIN state ON donor_profiles.info007 = state.state_id
WHERE (
donor_donors.status_id =  '1'
OR donor_donors.status_id =  '0'
)
AND donor_donors.application_status =  'A'
LIMIT 0 , 30
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.