0 Members and 2 Guests are viewing this topic.
message = mysql_fetch_array(sql_query("SELECT MAX(`id_msg`) FROM `omnitempboard_messages`"));mID = message[`ID_MSG`];tID = message[`ID_TOPIC`];mPoster = message[`posterName`];topic = mysql_fetch_array(sql_query("SELECT * FROM `omnitempboard_topics` WHERE `id_topic` = %s",tID));tBoard = topic['ID_BOARD'];tFirstID = topic['ID_FIRST_MSG'];fMessage = mysql_fetch_array(sql_query("SELECT * FROM `omnitempboard_messages` WHERE `id_msg` = %s",tFirstID));tTopicName = fMessage['subject'];echo sprintf("New Post by %s in %s http://omniurl.tk/%i/%i", mPoster,tTopicName,tID,mID);