[MySQL] How to stop creating more then 1 of the same row?
#9

Quote:
Originally Posted by Calgon
Посмотреть сообщение
I don't understand what you're trying to do. If you're trying to ensure certain values aren't the same, then use the select w/ the where conditionals in your query.
Well, this is what I meant.

That code I posted up there (CreateBusiness function), will add a business to the database even if it already exists.

Say I did this:
pawn Код:
CreateBusiness("A Test"....);
CreateBusiness("AnotherTest"...);
Every time I start my server, it will add those 2 business's again, and again, and again, every time I reset my server.

EDIT:
Never mind...its all good. I figured it out.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)