The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: MySQL Und html und so | December 4, 2008 @ 12:04pm
PHP Code
[
Download
]
<?php error_reporting(E_ALL); //HTML StandAlone include 'add.html'; //HTML StandAlone if (@$_GET['write'] == "1") { //MySQL ftw :> mysql_connect("localhost","asdasdasdasdasd","asdasdasdasd"); mysql_select_db("mymaker"); //Deklarationen $sql = "INSERT INTO " ."News(ID,Titel,Datum,Inhalt) " ."VALUES " ."('', '".htmlspecialchars(mysql_real_escape_string($_POST['titel']))."', " ."NOW(), '".htmlspecialchars(mysql_real_escape_string($_POST['inhalt']))."');"; //Ausführung mysql_query($sql); } else { } ?>
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.60 / 8
208 Votes
http://codebin.yi.org/197
page generated in 0.00 seconds