sql - If not found insert into -


i initate insert sql incase select not found. code far

res, err, errno, sqlstate =     db:query("select * stream_session username = " .. quoted_user,0)  if not res     res1, err, errno, sqlstate =     db:query("insert stream_session (username) values (" .. quoted_user .. ")") end 

it checking if user exists it's not inserting incase user not found.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -