Heh... Well I can\'t seem to get it to work properly. I tried it your way and a few other ways, but the only thing that would even slightly work was:
[php:1:8a620cf238] } else {
$published = date(\"Y-m-d\");
$newstory = mysql_insert_id();
$laststory = $newstory - 1;
$getlast = \"SELECT story_numb FROM stories WHERE story_id = $laststory\";
$query = mysql_query($getlast);
$getlastnum = mysql_fetch_array($query);
$lastnum = $getlastnum[story_numb];
$number = $lastnum + 1;
$sql = \"INSERT INTO stories (story_numb,story_title,story_pub,story_desc,story_body) VALUES (\'$number\',\'$title\',\'$published\',\'$desc\',\'$body\')\";
} [/php:1:8a620cf238]
That, though, only made the number 1, which it continued to do forever. I think the problem might be in the mysql_insert_id() but I don\'t know how to fix that... Have you sobered up enough to help? :wink: