Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $hostname = "localhost";
- $username = "root";
- $password = "amatory";
- $dbName = "uform";
- mysql_connect($hostname,$username,$password) OR DIE("FAIL CONNECTION"); // if fail
- mysql_select_db($dbName) or die(mysql_error());
- $select_post_query = "(Select ibf_topics.tid From ibf_topics, ibf_posts where ibf_posts.topic_id=ibf_topics.tid Limit 1) ";
- $Post_Query = "INSERT INTO ibf_posts SET author_id = '2007', ip_address='localhost', author_name ='System', post = 'post_text', topic_id= $select_post_query WHERE ibf_posts.topic_id = $select_post_query";
- mysql_query($Post_Query ) or die(mysql_error());
- echo $title ;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement