It is currently Sat Feb 29, 2020 4:36 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Mysql
PostPosted: Sat May 19, 2007 5:44 pm 
Offline
New User
New User

Joined: Sat May 19, 2007 1:46 pm
Posts: 8
Location: Vienna, VA
Can you please give me a example of how to connect, search, add and deleted a record from mysql database please?

Thanks
Phil


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 19, 2007 7:57 pm 
Offline
Addict
Addict

Joined: Wed Aug 24, 2005 8:39 am
Posts: 2736
Location: Southwest OH - USA
I've only used sqlite, but the principles are the same.

Have you tried a search? There should be examples available. If you can't find anything relevant, let us know.

Welcome to the PureBasic forums.

cheers

You might see if this helps - http://www.purebasic.fr/english/viewtopic.php?t=26413


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 19, 2007 8:03 pm 
Offline
PureBasic Bullfrog
PureBasic Bullfrog
User avatar

Joined: Wed Jul 06, 2005 5:42 am
Posts: 8027
Location: Fort Nelson, BC, Canada
Flype has a userlibrary for this which includes full sourcecode so you should find it instructive:

http://www.purebasic.fr/english/viewtopic.php?t=21862&highlight=flype+userlibraries

_________________
Veni, vidi, vici.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 19, 2007 9:16 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Feb 24, 2004 3:43 am
Posts: 538
Location: Israel
Making this is more related to SQL language.

Connecting a database and Querying is the most easy thing you can do.
(using flype lib or Paul's MDB lib)
but how to do it that is the quetion.

for quick tutorial:
http://www.w3schools.com/sql/default.asp


Top
 Profile  
Reply with quote  
 Post subject: Using mysql with Linux
PostPosted: Sun May 20, 2007 4:14 am 
Offline
New User
New User

Joined: Sat May 19, 2007 1:46 pm
Posts: 8
Location: Vienna, VA
Thank you for providing a good example and it works for windows. What if you going to use mysql for linux what code you would use to open, read, write and search for a record? Does the dll only work for windows and not linux?

Thanks
Phil


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun May 20, 2007 4:17 am 
Offline
Addict
Addict
User avatar

Joined: Tue Jan 02, 2007 8:16 pm
Posts: 4327
Location: Cypress TX
I think the SQL commandset within PB will do what you need... in fact I know it can as I do it in several programs.

Use the DatabaseUpdate() command... this holds the correct SQL request.

Read the tutorials in the HELP file to see how to structure your request.

What command are you attempting to execute? Maybe I could provide a better example.

_________________
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye