PHP interesse |
|
Oke
Ik heb nu onderstaande code maar hij slaat niks in de tabel op, in de session overigens wel.
@wimmarien
In het search resultscript heb ik van alles gedaan om te beveilingen , zoals mysql_real_escape_string.
if(isset($_POST['submit']))
{
$af_stats_search_string = $_POST['q'];
mysql_query($query_update="
INSERT INTO
af_stats_search
(
af_stats_search_date ,
af_stats_search_string,
af_stats_search_requested
)
VALUES
(now(),
".$searchstring.",
1)
ON DUPLICATE KEY UPDATE requested = requested +1");
$_SESSION['zoek'] = $_POST['q'];
}
if(isset($_POST['submit'])) { $af_stats_search_string = $_POST['q']; INSERT INTO af_stats_search ( af_stats_search_date , af_stats_search_string, af_stats_search_requested ) VALUES (now(), ".$searchstring.", 1) ON DUPLICATE KEY UPDATE requested = requested +1"); $_SESSION['zoek'] = $_POST['q']; }
|