16/05/2011, 07:45
|
(Desactivado) | | Fecha de Ingreso: septiembre-2010
Mensajes: 498
Antigüedad: 14 años, 4 meses Puntos: 5 | |
Respuesta: quiero hacer que cuando registren elimine un numero <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print($charset); ?>" />
<title>:: <?php print($longtitle); ?></title>
<link rel="shortcut icon" href="images/favicon.ico">
<link href="css/main.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
checked=false;
function checkedAll (adduser) {
var aa= document.getElementById('adduser');
if (checked == false)
{
checked = true
}
else
{
checked = false
}
for (var i =0; i < aa.elements.length; i++)
{
aa.elements[i].checked = checked;
}
}
</script>
<script language="JavaScript">
function onlyNumbers(evt)
{
var e = event || evt; // for trans-browser compatibility
var charCode = e.which || e.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
</head>
<body onLoad="focus();adduser.username.focus()">
<table width="780" border="0" align="center" valign="top" cellpadding="0" cellspacing="0" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; text-align: left;">
<tr bgcolor="#FFFFFF">
<td height="22" colspan="6"> </td>
</tr>
<tr bgcolor="#0066FF">
<td width="15" bgcolor="#808080"> </td>
<td width="751" height="120" bgcolor="#808080"><?php require("includes/header.php"); ?></td>
<td width="15" bgcolor="#808080"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18"> </td>
<td height="18"><center><?php require("includes/menu.php"); ?></center></td>
<td height="18"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18"> </td>
<td height="18"> </td>
<td height="18"> </td>
</tr>
</table>
<table width="780" height="20" border="0" align="center" valign="top" cellpadding="0" cellspacing="0" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; text-align: left;">
<tr bgcolor="#FFFFFF">
<td width="21" height="20"> </td>
<?php
$conn = @mysql_connect($dbhost,$dbuser,$dbpass) or die ("Error connecting to database");
mysql_select_db($dbname, $conn);
$sql = mysql_query("SELECT * FROM cmum_settings WHERE id='1'");
$line=mysql_fetch_array($sql);
mysql_close($conn);
if ($line["addusercol"] == "2") {
require("includes/addusrtwocol.php");
} else {
require("includes/addusronecol.php");
}
?>
<td width="25" height="20"> </td>
</tr>
</table>
<table width="780" height="20" border="0" align="center" valign="top" cellpadding="0" cellspacing="0" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left;">
<tr bgcolor="#FFFFFF">
<td height="20" width="780"> </td>
</tr>
</table>
<?php
require("includes/footer.php");
?>
</body>
</html> |