hola a todos es que tengo este problemita
Fatal error: Call to undefined function modifica() in C:\AppServ\www\ejemplo\cambiar_vencimiento.php on line 6
y este es el codigo
Código PHP:
Ver original<?php
if ($_ConectaBD) {
if (isset($_POST["action"]) and
$_POST["action"] == "Cambiar") { $status = modifica($_POST['usuario'], $_POST['fecha']);
}
function modifica($usuario, $fecha) {
conectar();
mysql_query("UPDATE usuarios SET Fecha='".$fecha."' WHERE usuario='".$usuario."") or
die ("Error deleting user"); desconectar();
return("Corregida la decha del usuario.");
}
}
?>
<script src="src/js/jscal2.js"></script>
<script src="src/js/lang/en.js"></script>
<link rel="stylesheet" type="text/css" href="src/css/jscal2.css" />
<link rel="stylesheet" type="text/css" href="src/css/border-radius.css" />
<link rel="stylesheet" type="text/css" href="src/css/steel/steel.css" />
<table cellSpacing=0 cellPadding=0 width="540" border=0 valign="top">
<tr>
<td align="center"><span class="style11CVerde"><b>Correguir fecha de vencimiento</b></span></td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td>
<form name="form1" id="form1" action="" method="post">
<label style="margin-right:34px">
Usuario:
</label>
<input type="text" name="usuario" id="usuario" value="" /><br />
<label>
Fecha nueva:
</label>
<input name="fecha" readonly type="text" id="fecha" value="" size="10"/>
<img src="images/calendar_date.png" name="trigger" width="24" height="24" id="trigger" />
<script type="text/javascript">//<![CDATA[
Calendar.setup({
inputField : "fecha",
trigger : "trigger",
onSelect : function() { this.hide() },
dateFormat : "%Y-%m-%d"
});
//]]></script><br />
<input type="submit" name="action" value="Cambiar" class="submit"/>
</form>
<br />
<?php
if ($status <> "") {
print("<br><font color=\"#347C2C\">".$status."</font><br><br>");
}
?>
</td>
</tr>
</table>
por que me tiraria ese eror en la linia 6 gracias