Help :D
#1

i need to do this if(inputtext == filetmp){ in mysql

now i need to make inputtext something in mysql what should i do give example so you can help me guys
Reply
#2

Use a string comparer. "==" is for comparing values.

Код:
if(!strcmp(inputtext,filetmp,true))
Reply
#3

pawn Код:
format(string, 128, "SELECT * FROM tablename WHERE fieldname='%s'", inputtext);
mysql_query(string);
mysql_store_result();
if(mysql_num_rows())
{
// your code
}
mysql_free_result();
If you're trying to find out if the inputtext exists from a table of a certain field name with MySQL, that's how you do it.
Reply
#4

Thanks
Reply
#5

If that's for me, then glad to be of help. Don't forget to add a reputation point, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)