Take a look at http://dev.mysql.com/tech-resources/articles/embedding-mysql-server.html
But I don't think EA's allow pointers like MYSQL *mysql;
Maybe you can put the pointer code in the dll, and the while loop in the sample script (at the bottom) in the EA code?
But I don't think EA's allow pointers like MYSQL *mysql;
Maybe you can put the pointer code in the dll, and the while loop in the sample script (at the bottom) in the EA code?
// php sample $sql = "SELECT time, ... "; $res = mysql_query($sql, $link); while ($row = mysql_fetch_assoc($res)) { echo $row["time"]; } mysql_free_result($res);
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm connecting at present using the libmysql.dll and some code found on MT4 forums (see below). What I'm having a nightmare with is returning and viewing the result set from a simple select query. I can update the mysql db via insert and append queries without any problems. The code I've found is as below. If anyone can help with an example of returning results from a simple select query I'd be most grateful. Obviously this is possible, I just can't get my head around the declarations in the dll needed to get it to work.
Many thanks.