colap Posted February 7, 2011 Share Posted February 7, 2011 How can i use single quote for values? $qry='insert into tablename values('a','b');'; Quote Link to comment https://forums.phpfreaks.com/topic/226925-php-insert-info-mysql-table-query/ Share on other sites More sharing options...
Zurev Posted February 7, 2011 Share Posted February 7, 2011 $qry='insert into tablename values(\'a\',\'b\');'; Or $qry = "insert into tablename values('a','b');"; Quote Link to comment https://forums.phpfreaks.com/topic/226925-php-insert-info-mysql-table-query/#findComment-1170888 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.