PDA

View Full Version : external script send a new thread


loginek
06-22-2003, 03:31 PM
hello
sorry 4 my bad english because it's not my native leanguage

i want write external script using php which could send a new thread

i tried


<?php
require("./global.php");

$forumid="37";
$postusername="Bot";
$userid="629";
$iconid="2";
$visible="1";
$subject="My new TOPIC";
$message="dsds test";
$allowsmilie="1";
$signature="dddsad";
$ipaddress="127.0.0.1";

$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','$subject','$postusername','$use rid','".time()."','$attachmentid','$message','$allowsmilie','$sign ature','$ipaddress','$iconid','1')");

$postid=$DB_site->insert_id();

?>


but without result ;[
any proposition how make it
thx :)

Gimp
06-22-2003, 05:22 PM
theres a table called threads to which you should insert too.

Erwin
06-23-2003, 05:01 AM
I made a hack like this. Look in my profile.