Hi there.
I've been having a problem with an UPDATE query in my page. This are the instructions that I' using to get this to work, but doesn't get results, not even error messages.
Code:
<?php
// Retrieve values
$nc = $_POST["nc"];
$edo_civil = $_POST["ec"];
// Get connection to DB
$conn = mysql_connect("localhost","root","proyecto")or die("No se puede establecer la conexion");
// Selecting database
mysql_select_db("ITCHII_EGR",$conn);
// Forming the query
$ssql = "UPDATE t_alumnos SET edo_civil='$edo_civil' WHERE = '$nc'";
// Executing query
mysql_query($ssql,$conn);
// Shows results
$cuantos = mysql_affected_rows();
echo "modificados: $cuantos<br>";
// Close connection
mysql_close($conn);
?>
Anyone knows why is this?