19.06.2010, 20:25
How do I check if a thing exists in an SQL table?
Example, in my Vehicle_Prices field, seeing if the 'Model' 525 exists?
Example, in my Vehicle_Prices field, seeing if the 'Model' 525 exists?
if(sql.................... != 0)
if(sqlaccountstatus != 0)
format(stringsize, sizeof(stringsize), "SELECT * FROM `Vehicle_Prices` WHERE Model = '525'",owner);
mysql_query(stringsize);
mysql_store_result();
if(mysql_num_rows() < 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"Theres no model 525 ");
}
else
{
//There is 525
}
Originally Posted by ♂ Antonio [G-RP
]
Thanks mate |