Yep but I get this error:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT SQL_CALC_FOUND_ROWS ... FROM ... WHERE (p.topic_id = 2#post5 OR p.id = 2#post5) ORDER BY p.topic_id, p.date_posted LIMIT 0,10
[elided bits to conserve horizontal scrollbars - Weedpacket]
the problem seems to be the #
when i remove this:: WHERE (p.topic_id = 2#post5 OR p.id = 2#post5)
the error is gone. But I need the # so what should I do??
The code was taken from wrox book - PHP5, Apache, MySQL. Ch16 - Creating a Bullitin Board System.
Can be downloaded from wrox.com
http://www.wrox.com/WileyCDA/WroxTi...0764579665.html
Would really appreciate any help.
Cheers,
Kevin