aqui estan los code
Código:
<html> <body> <form name="bihost" action="insertar_datos.php" method="post"> <table width="354" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="92">R.U.T.</td> <td width="262"><input type="text" name="rut"></td> </tr> <tr> <td>Nombre</td> <td><input type="text" name="nombre"></td> </tr> <tr> <td>Honorarios</td> <td><input type="text" name="honorarios"></td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="enviar" value="Enviar"> </label> <label> <input type="reset" name="borrar" value="Limpiar"> </label></td> </tr> </table> </form> </body> </html>
Código:
ojala puedan ayudarme tengo ese cachito...<?php isset($_POST['rut'] && $emply($_POST['rut']) && isset($_POST['nombre'] && $emply($_POST['nombre'])) { $link = mysql_connect("localhost","cofreg1_bihost01","123456"); mysql_select_db("cofreg1_clientes",$link); mysql_query("INSERT INTO clientes (rut,nombre) VALUES ('{$_POST['rut']}','{$_POST['nombre']}')",$link); $my_error = mysql_error($link); if($emply($my_error) { echo "ha Ocurrido un error al insertar los valores. $my_error"; } else { echo "Los Datos han sido introducidos satisfactoriamente"; } } else { echo " Error, no ha introducido todos los datos"; } ?>
no se que estara fallando
gracias de ante mano