Jump to content

Where Syntax..


takn25

Recommended Posts

Hey,

 

First of all I have joined 2 tables in the query below.This is my query

Query="SELECT user.*, comment.* "."FROM user, comment "."WHERE user.userid = comment.userid";

 

which is working as desired, but I want to be more specific, I want to use another WHERE or something in the query Example

WHERE page=$_SERVER['REQUEST_URI'];

  how can I join this with the above query or is there another simpler way thanks.

Link to comment
https://forums.phpfreaks.com/topic/225269-where-syntax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.