Page 2 of 2

Posted: Thu Aug 19, 2004 9:17 am
by ody
I assue you have remembered to put http:// in the href? i.e.

<a href="http://www.google.com"> google </a>

Posted: Thu Aug 19, 2004 9:20 am
by ody
also try instead of:

$insert = "insert into news (post) values ('$post')";

use

$insert = "insert into news (post) values ('".addslashes($post)."')";

Posted: Thu Aug 19, 2004 11:49 am
by d3ad1ysp0rk

Code: Select all

<?php
$post = $_POST["news"];
$insert = "insert into news(post) values('$post')";
mysql_db_query("sb", $insert);
?>
Try that.
Also, is the data getting saved correctly? (ie. is it in the db when you check)