Jump to content

oen sql command


runeveryday

Recommended Posts

$sql = 'INSERT INTO joke SET joketext="' . $joketext . '", jokedate="today's date"';  

i don't understand the line

 joketext="' . $joketext . '",

why it use the single quote and the concatenation . i feel those are a surplus, use this is joketext="$joketext ", ok, but when i test it ,it's show an error, anyone can tell me the reason.any tips would be appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/195633-oen-sql-command/
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.