Hi all !!<br><br>I did! I can now connect and query to mysql <br><br>fpc 2.2.4, console, Macosx 10.5 leopard, Mac book Intel<br><br>But I can't (may be I dont know :-( ) insert data in a table<br>------------<br> connect mysql ... ok<br>
select db ... ok<br>.....<br> new(consulta);<br>
consultastr:='INSERT INTO lugares (lugar) values (''Sala'')';<br>
strPCopy(consulta,consultastr);<br> writeln ('Executing query : ',Consulta,'...');<br> if (mysql_query(sock,consulta) < 0) then<br> begin<br> Writeln (stderr,'Query failed ');<br>
writeln (stderr,mysql_error(sock));<br> Halt(1);<br> end;<br>----------<br><br>What is wrong?<br>Thanks in advance<br><br clear="all"><br>-- <br>-------<br>César Espinoza Soto<br>---------<br>