Hola gente!!!
Un saludo cordial a todos y logicamente un feliz año!!! (un poco tarde lo, sé...)
Pues resulta que ya estoy metido de lleno, pero me estoy quemando las pestañas con esto y no encuentro la razón del porqué aparece el error "Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /var/www/vhost/hoyeseldia.es/home/html/report.php on line 27
Error en la petición al servidor".
Necesito ayudaaaa... plis
Este es el dichoso código... muy normalito tirando más bien a mediocre pero por algo se empieza no???
<?php
$first_name = $_POST['firstname'];
$last_name = $_POST['lastname'];
$when_it_hap*****d = $_POST['whenithap*****d'];
$how_long = $_POST['howlong'];
$how_many = $_POST['howmany'];
$alien_description = $_POST['aliendescription'];
$what_they_did = $_POST['whattheydid'];
$fang_spotted = $_POST['fangspotted'];
$email = $_POST['email'];
$other = $_POST['other'];
$dbc = mysql_connect('-------', '-----', '-----',
'-----') or die(mysql_error('Error en la conexion con el servidor'));
$query = "INSERT IN TO aliens_abductions (first_name, last_name, when_it_hap*****d, how_long, " .
"how_many, alien_description, what_they_did, fang_spotted, other, email)" .
"VALUES ('$first_name', '$last_name', '$when_it_hap*****d', '$how_long', '$how_many', " .
"'$alien_description', '$what_they_did', '$fang_spotted', '$other', '$email')";
$result = mysql_query($dbc, $query) or die('Error en la petición al servidor');
mysql_close($dbc);
echo 'Thanks for submitting the form.<br />';
echo 'You were abducted ' . $when_it_hap*****d;
echo ' and were gone for ' . $how_long . '<br />';
echo 'Number of aliens: ' . $how_many . '<br />';
echo 'Describe them: ' . $alien_description . '<br />';
echo 'The aliens did this: ' . $what_they_did . '<br />';
echo 'Was Fang there? ' . $fang_spotted . '<br />';
echo 'Other comments: ' . $other . '<br />';
echo 'Your email address is ' . $email;
?>
Mil gracias de antemano...