<?php
$data = array("oh" => "D:");
$sql = "INSERT INTO ".'cms_lol'." (" . implode(', ',array_keys($data)) . ") VALUES (".str_repeat('? ,', count($data)-1)." ?)
ON DUPLICATE KEY UPDATE ". implode(' = ?, ',array_keys($data)) . " = ?";
echo $sql
- Output for 5.4.0 - 5.4.20
- Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/WgXSu on line 7
Process exited with code 255. - Output for 5.3.0 - 5.3.27
- Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/WgXSu on line 7
Process exited with code 255.
preferences:
182.22 ms | 1386 KiB | 56 Q