my friend i have this next part.... what it does , is just insert the
values of a survey. look...
<?php
include 'conexion.php';
$conn=get_db_conn();
mail("[email protected]","encuestas hotel avandaro","una nueva
encuesta ha sido ingresada de - Nombre: '$_POST[nombre]' Correo:
'$_POST[email]' Habitacion: '$_POST[num_hab]' ");
if(!$_POST['telefono']){
$_POST['telefono']="0";
}
//this next part is a storage procedure in order to insert all values in
all tables .. how i can change all this script in order to use PDO¨s
$consulta="call
insertadatos('$_POST[nombre]','$_POST[num_hab]','$_POST[email]','$_POST[telefono]','$_POST[supo]','$_POST[reserv]','$_POST[medio]','$_POST[botones]','$_POST[recep]','$_POST[tel]'
,'$_POST[segu]','$_POST[limp]','$_POST[mant]','$_POST[camar]','$_POST[ilum]','$_POST[limpi]','$_POST[funcio]','$_POST[ilu]','$_POST[comentarios]','$_POST[recibi]','$_POST[servibar]','$_POST[alimen]'
,'$_POST[menu]','$_POST[bebi]','$_POST[ambi]','$_POST[orden]','$_POST[alim]','$_POST[entre]','$_POST[toallas]','$_POST[limareas]'
,'$_POST[compis]','$_POST[recibimiento]','$_POST[spareserv]'
,'$_POST[spaam]','$_POST[calserv]','$_POST[varied]','$_POST[spautilizo]','$_POST[sino1]','$_POST[sino2]');";
$inserta=mysql_query($consulta, $conn);
if(!$inserta){
die('Invalid query: ' . mysql_error());
}else{
echo "Datos Agregados Correctamente, Gracias por Ayudarnos a Mejorar
Nuestras Instalaciones";
mysql_close();
}
?>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.