Jump to content

[SOLVED] PHP/MYSQL...WHERE Syntax...


alexander007

Recommended Posts

Im having an error with this and cant find what its the correct syntax...

 

<?php 
$nombre = $_SESSION['nombre'];
$visited = $_SESSION['visited'];
echo $nombre, $visited;
include"config.php";
$tbl_name="visitantes"; 

mysql_query("INSERT INTO ".$tbl_name." (visited) VALUES('','".$visited."') WHERE nombre = $nombre ") or die(mysql_error());
?>

Link to comment
https://forums.phpfreaks.com/topic/71296-solved-phpmysqlwhere-syntax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.