now i am trying the query the record ( only 1 record, which selected by the newsid)
the problem is my codes cant work from the function
$campusnews_sql = "select * from campusnews where campusnews_id = '$newsid'";
$campusnews_result = mysql_query($campusnews_sql, $conn);
$result = @($query);
$result = @mysql_fetch_array($result);
//echo "$result";
return $result;
there is no record output.
those echo "good"; or echo "bad"; is use for me to check the function is it run properly.
and then output is :
good<br>output bad
eg:
index.php?newsid=80
--------------------------------------output that i want --------
title : bla bla bla
index : bla bla bla long text
date : xxxx-xx-xx
query the record 80 from the database..
like that....
by the way, do you have the actual codes for the detailed query?