This question already has an answer here:
The following command is not working.
Both $row['webaddress']
and $row['webhomepage']
contain values such as: http://example.com/web/whatever.php
Here is the code
$webaddress = $row['webaddress'];
$webhomepage = $row['webhomepage'];
$textquery = "INSERT INTO web_rotate (id, webaddress, webhomepage) VALUES ($id, $webaddress, $webhomepage)";
$result = $conn->query($textquery);
This does work when I do this: VALUES ($id, 'http://example.com/whatever.php', 'http://example2.com/whatever2.php')
And I am not getting any errors.
</div>