Forum Moderators: coopster
PS
If I rem the SUBSTRING query it all works fine
Thanks
Henry
$result = mysql_query("select topic_id, month, day, year, excerpt, title, user_id, unique_page, SUBSTRING (main _content,1,100) as substrvar
from $database_table where topic_id = $last_topic_id",$db)
baze
SELECT substring( articletext, 1, 6 ) FROM article
Sorry if that's not much use, I just looked at the manual and picked that syntax from one of the user comments attached to the appropriate manual page.
[edit] beaten to it :) must type faster... [/edit]