View Single Post
ישן 21-06-07, 20:13   # 5
Nati_Man
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 444

Nati_Man לא מחובר  

PHP קוד:
    $sub $_POST['submit'];
    
$stext $_POST['stext'];
    
$spic $_POST['spic'];
    
$title $_POST['title'];
    
$text stripslashes$_POST['FCKeditor1'] ) ;
    
$text mysql_escape_string($text);
    if(isset(
$sub)){
    @
mysql_query("INSERT into articles(`title`,`spic`,`stex`,`text`) VALUES (`$title`,`$spic`,`$stext`,`$text`)") or die (mysql_error()); 
קוד עריכה:
PHP קוד:
$sub $_POST['submit'];
$title $_POST['title'];
$spic $_POST['spic'];
$stext $_POST['stext'];
$text stripslashes$_POST['FCKeditor1'] ) ; 
$text mysql_escape_string($text);
if(
$sub){
$sql "UPDATE `articles` SET `title` = '$title', `spic` = `$spic`, `stext` = '$stext', `text` = '$text' WHERE id='$id'";
$result mysql_query($sql) or die(mysql_error()); 
תנסה את זה
__________________
בברכה, נתי.


icq: 6006085
msn: nati-moyal@hotmail.com
e-mail: moyal25@012.net.il

Nati_Man - תכנות וקידום אתרים:
-----------------
www.Intek.co.il
חברת איחסון האתרים הגדולה ביותר בישראל!
  Reply With Quote