Ver Mensaje Individual
  #37 (permalink)  
Antiguo 13/10/2009, 14:59
quiero_aprender
 
Fecha de Ingreso: octubre-2009
Mensajes: 232
Antigüedad: 14 años, 7 meses
Puntos: 3
Respuesta: Donde publico los archivos corespndientes a un formulario php

lo hice asi: con este codigo:

<?php

$fecha=$_POST['fecha'];
$nombrerazonsocial=$_POST['nombrerazonsocial'];
$nit=$_POST['nit'];
$ciudad=$_POST['ciudad'];
$producto=$_POST['producto'];
$referencia=$_POST['referencia'];
$tono=$_POST['tono'];
$seleccion=$_POST['seleccion'];
$cantidad=$_POST['cantidad'];
$observaciones=$_POST['observaciones'];


$host="localhost";
$user="marroqui_yo";
$pass="abc";
$base="marroqui_pedidosnuevos";
$connection=mysql_connect($localhost, $marroqui_yo, $abc);
mysql_select_db($marroqui_pedidosnuevos);


$sql="INSERT INTO nombre_de_tu_tabla (fecha, nombrerazonsocial, nit, ciudad, producto, referencia, tono, seleccion, cantidad, observaciones)
VALUE ('$fecha', '$nombrerazonsocial', '$nit', '$ciudad', '$producto', '$referencia', '$tono', '$seleccion', '$cantidad', '$observaciones')";
mysql_query($sql,$connection) or die(mysql_error());
?>

y me salio este error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/marroqui/public_html/guardar.php on line 25

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/marroqui/public_html/guardar.php on line 26

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/marroqui/public_html/guardar.php on line 26

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/marroqui/public_html/guardar.php on line 31
Access denied for user 'nobody'@'localhost' (using password: NO)
que paso?