Evan James Dembskey wrote:
>
> Hi,
>
> I have this statement:
>
> res = mysql_query(&my_connection, "SELECT * FROM student WHERE studnum =
> 31665222");
>
for example something like this:
char query[96]="SELECT * FROM student WHERE studnum=";
int studnum;
studnum=get_studnum();
sprintf(&query[36],"%d",studnum);
res=mysql_query(&my_con,query);
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php