Mysql Check if PlayerName and Variable exist
#4

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
I am assuming you didn't mean to check if a table exists, but rather if a column exists. anyways you might just want to do try and error https://sampwiki.blast.hk/wiki/MySQL/R40#mysql_errno

just perform a select statement and see what happens.

You might want to look at this tho:

http://stackoverflow.com/questions/8...ng-select-from
Yes what i am trying to do is detect if those 2 collums are the same as my variable ingame and if not create a new row.
Reply


Messages In This Thread
Mysql Check if PlayerName and Variable exist - by Admigo - 30.12.2016, 20:37
Re: Mysql Check if PlayerName and Variable exist - by BiosMarcel - 30.12.2016, 20:42
Re: Mysql Check if PlayerName and Variable exist - by SoLetsGO - 30.12.2016, 20:44
Re: Mysql Check if PlayerName and Variable exist - by Admigo - 30.12.2016, 20:53
Re: Mysql Check if PlayerName and Variable exist - by BiosMarcel - 30.12.2016, 20:59
Re: Mysql Check if PlayerName and Variable exist - by Admigo - 30.12.2016, 21:39
Re: Mysql Check if PlayerName and Variable exist - by BiosMarcel - 30.12.2016, 22:09
Re: Mysql Check if PlayerName and Variable exist - by Admigo - 02.01.2017, 20:35

Forum Jump:


Users browsing this thread: 1 Guest(s)