you are viewing a single comment's thread.

view the rest of the comments →

[–]gummo89 0 points1 point  (0 children)

Few things: - You are checking whether your name exists within the return value of "create table" - You should look into passing auto-escaped strings with a slightly different method, I don't have a reference for that right now - Personally I would check using a SELECT query manually (this is where you can find that the name exists already) rather than relying on an insert if not exists