Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $server="localhost";
- $database="";
- $dbpass="";
- $dbuser="";
- $link = mysql_pconnect($server, $dbuser, $dbpass);
- mysql_select_db($database, $link);
- mysql_query("insert eventos(Local, Evento, Direccion, Fecha, Hora, Afiche) values (".strFilter($_POST['local']).", ".strFilter($_POST['evento']).", ".strFilter($_POST['direccion']).", ".strFilter($_POST['fecha']).", "strFilter($_POST['hora']).", ".strFilter($_POST['afiche']));
- function strFilter( $string ) {
- return mysql_real_escape_string($string);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement