Jump to content

Notice: Undefined index: AND Notice: Undefined variable:


DaveLinger

Recommended Posts

what about for something like this?

[code]
if($id == ''){
$query="SELECT *, DATE_FORMAT(Date, '%W, %M %D %Y') AS my_date FROM wg_pages WHERE id=\"$id2\" ORDER BY datetime DESC";
}else{
$query="SELECT *, DATE_FORMAT(Date, '%W, %M %D %Y') AS my_date FROM wg_pages WHERE id=\"$id\" ORDER BY datetime DESC";
}[/code]

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.