Start sample for a (My)-sql project
- Marc Venken
- Posts: 1485
- Joined: Tue Jun 14, 2016 7:51 am
- Location: Belgium
Start sample for a (My)-sql project
Hello,
I want to make a program for my football club. A Member system that can be accessed from several computers by the coaches.
Who can share the basic start code to get me going? Once this setup to work, i can create the rest ...
Setup :
There a several options possible, but in FWH there is one where we don't need to install any extra software on the coaches computers.
Only the folder with my program would be the most easy thing to install.
My program won't need high level security, complex sql's, more a pretty simple membership software.
That option if possible for the start sample.
Login to a online database (One Database = Members, with one of the field 'Team' Like Team1,Team2,Team3,...)
User gets a level for data access (4 levels needed) Coache for Team 3 (only sees the members in team 3)
Scope selected data that they only see Team 3
Start XBrowse with this data
From there, I can start. (So the connection and the login is most important)
Two extra functions :
The scope for selecting only team1
A loop for updating data like
replace member->naam with cNaam
replace member-data with dDate
My thanks for any working sample.
BTW : For this club i'm doing it : www.kaboutersopglabbeek.be
I want to make a program for my football club. A Member system that can be accessed from several computers by the coaches.
Who can share the basic start code to get me going? Once this setup to work, i can create the rest ...
Setup :
There a several options possible, but in FWH there is one where we don't need to install any extra software on the coaches computers.
Only the folder with my program would be the most easy thing to install.
My program won't need high level security, complex sql's, more a pretty simple membership software.
That option if possible for the start sample.
Login to a online database (One Database = Members, with one of the field 'Team' Like Team1,Team2,Team3,...)
User gets a level for data access (4 levels needed) Coache for Team 3 (only sees the members in team 3)
Scope selected data that they only see Team 3
Start XBrowse with this data
From there, I can start. (So the connection and the login is most important)
Two extra functions :
The scope for selecting only team1
A loop for updating data like
replace member->naam with cNaam
replace member-data with dDate
My thanks for any working sample.
BTW : For this club i'm doing it : www.kaboutersopglabbeek.be
Marc Venken
Using: FWH 23.08 with Harbour
Using: FWH 23.08 with Harbour
- Marc Venken
- Posts: 1485
- Joined: Tue Jun 14, 2016 7:51 am
- Location: Belgium
Re: Start sample for a (My)-sql project
Hello,
I also see that I can use standard FWH with DBF if I use the program on my own NAS.
I'v been ably to run a program from 2 locations via NAS, but then there was a connection needed by VPN.
Is there a easy way to have my coaches install VPN on there computers or even better, can I make a connection from my program in FWH from there computer to my NAS ?
I also see that I can use standard FWH with DBF if I use the program on my own NAS.
I'v been ably to run a program from 2 locations via NAS, but then there was a connection needed by VPN.
Is there a easy way to have my coaches install VPN on there computers or even better, can I make a connection from my program in FWH from there computer to my NAS ?
Marc Venken
Using: FWH 23.08 with Harbour
Using: FWH 23.08 with Harbour
Re: Start sample for a (My)-sql project
Marc ,
I use MS SQL with Fivewin .
I also live in Belgium (Liege)
You can contact me if you want .
ph.jacquet@skynet.be
I use MS SQL with Fivewin .
I also live in Belgium (Liege)
You can contact me if you want .
ph.jacquet@skynet.be
- Antonio Linares
- Site Admin
- Posts: 42595
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 38 times
- Been thanked: 86 times
- Contact:
Re: Start sample for a (My)-sql project
Marc,
You may review FWH\samples\yunus.prg for a great databases management example, full source code provided.
We are going to adapt it to use FWH built in MySQL/MariaDB support
You may review FWH\samples\yunus.prg for a great databases management example, full source code provided.
We are going to adapt it to use FWH built in MySQL/MariaDB support
-
- Posts: 85
- Joined: Wed Nov 19, 2014 1:04 pm
- Contact:
Re: Start sample for a (My)-sql project
Antonio Linares wrote:Marc,
You may review FWH\samples\yunus.prg for a great databases management example, full source code provided.
We are going to adapt it to use FWH built in MySQL/MariaDB support
Sir,
Can we have Mysql/Mariadb sample similar to yunus.org in next version 17.05?
Thanks & Regards
Yunus.
Regards
Yunus
FWH 21.02
Yunus
FWH 21.02
- Antonio Linares
- Site Admin
- Posts: 42595
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 38 times
- Been thanked: 86 times
- Contact:
- nageswaragunupudi
- Posts: 10729
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 10 times
- Contact:
Re: Start sample for a (My)-sql project
Mr Yunus
Please see latest post in mariadb samples
Please see latest post in mariadb samples
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
-
- Posts: 85
- Joined: Wed Nov 19, 2014 1:04 pm
- Contact:
Re: Start sample for a (My)-sql project
Dear Mr.Rao/Mr.Atonio
Thanks for the valuable sample. It helps us to learn professional programing.
Thanks & Regards
Yunus.
Thanks for the valuable sample. It helps us to learn professional programing.
Thanks & Regards
Yunus.
Regards
Yunus
FWH 21.02
Yunus
FWH 21.02
- Marc Venken
- Posts: 1485
- Joined: Tue Jun 14, 2016 7:51 am
- Location: Belgium
Re: Start sample for a (My)-sql project
I totaly agree !!
Without the samples, I could not do it ....
Without the samples, I could not do it ....
Marc Venken
Using: FWH 23.08 with Harbour
Using: FWH 23.08 with Harbour
- Antonio Linares
- Site Admin
- Posts: 42595
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 38 times
- Been thanked: 86 times
- Contact:
Re: Start sample for a (My)-sql project
nageswaragunupudi wrote:Mr Yunus
Please see latest post in mariadb samples
viewtopic.php?p=201218#p201218
https://bitbucket.org/fivetech/fivewin-contributions/downloads/mariainv.zip
- Marc Venken
- Posts: 1485
- Joined: Tue Jun 14, 2016 7:51 am
- Location: Belgium
Re: Start sample for a (My)-sql project
Hey Antonio,
We have seen the sample's in the other topic.
It was ment as a compliment for FW and the forum, and espacialy for Mr. Rao and you ...
Keep on the work.
We have seen the sample's in the other topic.
It was ment as a compliment for FW and the forum, and espacialy for Mr. Rao and you ...
Keep on the work.

Marc Venken
Using: FWH 23.08 with Harbour
Using: FWH 23.08 with Harbour
-
- Posts: 85
- Joined: Wed Nov 19, 2014 1:04 pm
- Contact:
Re: Start sample for a (My)-sql project
Dear Sir,
If we want auto generated invoice no. LIKE INV00001 , INV000002.
and How to update clients balance according to invoices? should we use trigger? How?
Regards
Yunus.
If we want auto generated invoice no. LIKE INV00001 , INV000002.
and How to update clients balance according to invoices? should we use trigger? How?
Regards
Yunus.
Regards
Yunus
FWH 21.02
Yunus
FWH 21.02
- nageswaragunupudi
- Posts: 10729
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 10 times
- Contact:
Re: Start sample for a (My)-sql project
dagiayunus wrote:Dear Sir,
If we want auto generated invoice no. LIKE INV00001 , INV000002.
and How to update clients balance according to invoices? should we use trigger? How?
Regards
Yunus.
For updating clients' balances, use triggers.
For generating sequential numbers like "INV????", we better have another sequence table and use it.
It is not safe to:
(1) Take Max( INVNO ) and increment it or
(2) do it in triggers
Both may result in duplicate numbers in case of multi-user environment
We will publish examples soon.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
-
- Posts: 85
- Joined: Wed Nov 19, 2014 1:04 pm
- Contact:
Re: Start sample for a (My)-sql project
Dear Mr.Rao
*Mariainv.prg*
How to prevent user to change items code?
How to create database on localhost using fivewin?
Thanks and regards
Yunus.
Sent from my SM-M515F using Tapatalk
*Mariainv.prg*
How to prevent user to change items code?
How to create database on localhost using fivewin?
Thanks and regards
Yunus.
Sent from my SM-M515F using Tapatalk
Regards
Yunus
FWH 21.02
Yunus
FWH 21.02
- Otto
- Posts: 6412
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 26 times
- Been thanked: 2 times
- Contact:
Re: Start sample for a (My)-sql project
Hello Mark,
did you ever create the program for setting up your football players?
I am currently working on a solution for work scheduling in companies.
I originally made the program in Fivewin but am now redoing it as a web application.
This approach should actually be suitable for a football lineup as well.
Best regards,
Otto

did you ever create the program for setting up your football players?
I am currently working on a solution for work scheduling in companies.
I originally made the program in Fivewin but am now redoing it as a web application.
This approach should actually be suitable for a football lineup as well.
Best regards,
Otto

********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************