TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 07-23-2011, 01:25 PM   #1 (permalink)
Shonir IT Solutions
 
shonir's Avatar
 
Join Date: Jul 2011
Location: Sialkot, Pakistan
Posts: 10
Thanks: 0
shonir is on a distinguished road
Help fetching record from multipul tables

im going to fetch records from 4 table in one query just getting error in "not equal" oprater "<>" i dont why its not working i also try to use "!=" but same result. please check and let me know if there is something worng or how to im able to fix problem.

_____________________
select en.*, nt.*, mt.*, nl.*, en.id as en_id, en.title as en_title, mt.id as mt_id from {tbl}expiration_notice en, {tbl}noticetype nt, {tbl}mailtemp mt, {tbl}noticelogs nl where en.type=nt.id and nt.id=mt.parentid and en.expirytime<($shonirvartime+(".(60*60*24)."*mt.d ays)) and nl.noticeid<>en.id and nl.mailid<>mt.id
____________________________

thanks in advance for your consideration
Send a message via MSN to shonir Send a message via Yahoo to shonir Send a message via Skype™ to shonir
shonir is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Join Tables with Distance Calculation oceanrockn Advanced PHP Programming 1 10-11-2010 04:56 PM
Display mysql tables unitechy Absolute Beginners 3 02-28-2010 07:42 PM
i'm happy to say im going back with designing with some tables sarmenhb XHTML, HTML, CSS 39 04-01-2009 12:40 PM
Tables joining other Tables? Orc MySQL & Databases 6 02-09-2008 09:42 PM
Get data from 4 different tables Ultimatum MySQL & Databases 7 01-16-2008 12:34 PM


All times are GMT. The time now is 11:06 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design