Exclude current page from MySQL results
-
I have a sidebar that i made that shows some recent posts and am using MySQL to select everything from the table that has a certain post parent.
On thing that i am trying to do now is exclude the current page from the results. Does anyone know how to do that? Is there a certain place where an $except would go within the MySQL query or the foreach bit of php (e.g. foreach($pages as $page $exceept(8141)):)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Exclude current page from MySQL results’ is closed to new replies.