insert variables into MYSQL
Posted by:
jason chan
Date: February 13, 2012 05:42AM
int f = 23;
mysql_query(connect,"INSERT INTO t(d) VALUES(%d)",f);
lets say f for the above case is an unknown integer obtained from another function, How do i insert the value f into mysql. The above statement gives me an error of:
error C2660: 'mysql_query' : function does not take 3 arguments
Subject
Views
Written By
Posted
insert variables into MYSQL
2417
February 13, 2012 05:42AM
1340
May 08, 2012 02:40PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.