Código PHP:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '://google.com/images/001.jpg, 110, 0, 158, SUBSTRING('Ya se han reservado nueve m at line 9
Archivo: C:xampphtdocsSourcesSubs-Post.php
Línea: 2620
Este es la variable que agregue para guardar url, pero como dije ante da ese error solamente con url's.
Código PHP:
$imgportada = $_POST['subject2'];
Código PHP:
$categorias = $_POST['categorias'];
$imgportada = $_POST['subject2'];
db_query("
INSERT INTO {$db_prefix}messages
(imgport, ID_BOARD, ID_TOPIC, ID_MEMBER, subject, body, posterName, posterEmail, posterTime,
hiddenOption, hiddenValue,
posterIP, smileysEnabled, modifiedName, icon)
VALUES ($imgportada, $categorias, $topicOptions[id], $posterOptions[id], SUBSTRING('$msgOptions[subject]', 1, 255), SUBSTRING('$msgOptions[body]', 1, 65534), SUBSTRING('$posterOptions[name]', 1, 255), SUBSTRING('$posterOptions[email]', 1, 255), " . time() . ",
'$msgOptions[hiddenOption]', '$msgOptions[hiddenValue]',
SUBSTRING('$posterOptions[ip]', 1, 255), " . ($msgOptions['smileys_enabled'] ? '1' : '0') . ", '', SUBSTRING('$msgOptions[icon]', 1, 16))", __FILE__, __LINE__);