Jump to content


SQL HELP....


1 reply to this topic

#1 Jynxis

    Young Padawan

  • Members
  • Pip
  • 132 posts
  • Location:The Shadows

Posted 27 July 2005 - 09:46 PM

okay im trying to do this...
$sql = "SELECT * FROM 'topics' WHERE category = '$cat' AND id = '$tid' AND  cid = '$tid' ORDER BY 'id' DESC";

but it dont work... no error or nutin.. just dont work..

and help... in doing MULTIPLE ANDs or w/e

#2 Jynxis

    Young Padawan

  • Members
  • Pip
  • 132 posts
  • Location:The Shadows

Posted 27 July 2005 - 10:18 PM

nvm i figured out that
$sql = "SELECT * FROM topics WHERE category = $cat AND id = $tid UNION SELECT * FROM topics WHERE cid = $tid";

is wut was needed





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users