Am doing an insert amd then trying to generate the id of the srticle inserted so I an pass it to a preview page
$maxid =
"
SELECT MAX(id)
FROM celtic_news
";
$max_id = mysql_query($maxid) or die ("Error in query: $maxid.".mysql_error());
echo $max_id;
Max_id is always Resource id #2
any ideas?
Thanks.