Viewing file: select_modifica_participantes_V1.php (1.79 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
function showgenero(str)
{
if (str=="")
{
document.getElementById("listado").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("listado").innerHTML=xmlhttp.responseText;
}
}
//xmlhttp.open("GET","getuser.php?q="+str,true);
xmlhttp.open("GET","?q="+str,true);
xmlhttp.send();
}
</script>
<center>
<!-- <table border="1"> -->
<?php
$link=mysql_connect($server,$dbusername,$dbpassword);
$select=mysql_select_db($db_name) or die('No hay BD');
$cadena="select * from participantes";
$sql=mysql_query($cadena);
?>
<!-- <tr><td>
</td><td> -->
<?php
if (isset($_POST['boton4']))
{
$nominstancia=$_POST["nominstancia"];
$comentarios=$_POST["comentarios"];
$instanpart1=$_POST["instanpart1"];
}
//$comentarios = substr ($comentarios, 0, -2);
//echo $comentarios;
$cadena1="update participantes set nombrepart='$nominstancia', ".
"entidadpart='$comentarios' where nombrepart='$instanpart1';";
//echo $cadena1;
$sql1=mysql_query($cadena1);
echo "Se ha realizado la modificación correctamente";
/*
$sql="";
$cadena="";
$instanpart="";
$_POST["nominstancia"]="";
$_POST["comentarios"]="";
$solucionA="";
$solucionB="";
*/
?>
<!-- </td></tr>
<tr></table> -->
|