Phonebook code with MySQL database

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
MigSoft
Posts: 74
Joined: Sat Aug 02, 2008 5:51 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, FireBird
Location: Santiago - Chile
Contact:

Phonebook code with MySQL database

Post by MigSoft »

Hi,

Post code phonebook with MySQL database in http://migsoft.ml/2015/06/agenda-de-contactos-mysql
Attachments
2015-06-06_131341.jpg
2015-06-06_131341.jpg (51.8 KiB) Viewed 6084 times
Last edited by MigSoft on Tue Oct 29, 2019 3:34 am, edited 1 time in total.
Regards,

MigSoft.
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Phonebook code with MySQL database

Post by serge_girard »

Thanks Miguel!

Serge
There's nothing you can do that can't be done...
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Phonebook code with MySQL database

Post by bpd2000 »

Thank you for sharing
BPD
Convert Dream into Reality through HMG
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Phonebook code with MySQL database

Post by esgici »

May be more useful for us ( HMG users ) pure-HMG and English version :?

I'm sure something like this isn't difficult for you, Miguel :)

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Phonebook code with MySQL database

Post by Pablo César »

Yo en particularidad, no preciso otro idioma para admirar el código fuente o la técnica empleada y si lo considero útil. :)

Este tu ejemplo insentiva al uso de MySQL y eso es muy bueno para abrir cabezas... (me incluyo).

Gracias Daniel por tu aporte y me gustaria verlo funcionando en HMG tambien.

Un gran abrazo
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: Phonebook code with MySQL database

Post by dragancesu »

Nice, but

for an application of this type, when using only one table, the better solution is sqlite, everyone will work and only those who make the effort to raise mysql base
Last edited by dragancesu on Mon Jun 08, 2015 5:42 am, edited 1 time in total.
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Phonebook code with MySQL database

Post by Rathinagiri »

Rightly said about SQLite. By the way, it is easy to convert to SQLite.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Phonebook code with MySQL database

Post by danielmaximiliano »

Gracias por compartir Miguel...
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
nikko1960
Posts: 30
Joined: Fri Sep 13, 2013 8:55 am
Contact:

Re: Phonebook code with MySQL database

Post by nikko1960 »

thank you for sharing

a probably silly question :

if we need to connect to mariaDb in an another Pc connected via internet ( for example a pc far far away from ours ) which lines have to be changed ?

and / or wich driver we have to use

regards

domenico
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: Phonebook code with MySQL database

Post by dragancesu »

Code: Select all

*------------------------------------------------------------*
Function Main()
*------------------------------------------------------------*
    Local i := 0
    PUBLIC cServer := "localhost" /* this line is adress of server */
    PUBLIC cUser   := "root"
    PUBLIC cPaswd  := ""
    oServer := TMySQLServer():New( cServer, cUser, cPaswd )
    if oServer:NetErr()
        oServer := Nil
        msgstop( "Conexión no establecida","Error !!! ONE")
        Return Nil
    ENDIF
Adress can be symbolic like localhost, server1 or ip adress like 10.0.1.100, 192.168.1.155 or same
But server must enable remote connection
Post Reply