Vivid Lust Posted September 3, 2008 Share Posted September 3, 2008 Just wondering what the correct syntax was... ive seen it done quite a few different ways such as... '$foo' '{$bar}' .$foo. \"$bar\" Help needed Link to comment https://forums.phpfreaks.com/topic/122596-correct-syntax-when-inserting-a-variable-into-mysql/ Share on other sites More sharing options...
fenway Posted September 3, 2008 Share Posted September 3, 2008 All of those have nothing to do with mysql... that's php variable interpolation & parsing. Just be sure to escape mysql special characters. Link to comment https://forums.phpfreaks.com/topic/122596-correct-syntax-when-inserting-a-variable-into-mysql/#findComment-633113 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.