WebSite X5Help Center

 
Nicole B.
Nicole B.
User

Need help finding options for a database  en

Autore: Nicole B.
Visite 4261, Followers 3, Condiviso 0  

So, a little background so you guys know specifically when I'm looking for. My site is set up to help connect care givers with special needs experience, to families who are looking for special needs care givers.  I wasn't entirely sure what I'd need to do at first, but I know now that I need to be able to have a site that does some rather specific things. I bougth the professional version because I got the impression that version would be my best option, but now I'm just extremely frustrated because it's far more limited than I thought. 

At this point I’ve figured out how to set up the registration and log-in page, and I understand how to direct my users to fill out an additional registration page that will email the information to me, however because I’m dealing with a LOT of people, and two different groups of people, I need the ones that say they are care givers to go to one set of permissions, and the ones that say they are families to go to another set of permissions.  What’s difficult about this is there doesn’t seem to be a way to automatically do this.  I can get them to register, and fill out my additional form, but then I have to manually set each person’s permissions, manually create profile pages for each of them, and manually send registration confirmation emails, which leaves a HUGE space for error, especially when doing this for so many people. I need to find a way to make all of this automatic.

I also need the website automatically create modifiable profile pages for every registered user.  My users can register, but their registration information either goes to a database that I can’t access, or it gets emailed to me.  Either way it because useless because I can’t seem to do anything with it other than put it in a word file or something.  Even in CSV format doesn’t seem to be able to help me.

I have a feeling this is a problem I’m just not understanding because it has to do with a database.  I don’t know much about db’s, but maybe someone can help me understand where my information is going when it says “send data to database”?

Is there a way Website X5 can do this, or is there an add on that someone knows about that will help me in creating a system that will do this? I know I’ll have to pay additional for this, but my problem is in finding it.  Any help would be EXTREMELY appreciated.  

Postato il
8 RISPOSTE - 2 UTILI
Incomedia
Riccardo P.
Incomedia

Hallo Nicole,

is not possible see automatically the datas of the clients on the site, you need create a script to see these.

I can't help you for personally code, wait more information about this by another users of this community.

Thank you.

Leggi di più
Postato il da Riccardo P.
Paul M.
Paul M.
Moderator

Hello Nicole,

WebSite X5 has built-in support for MySQL databases.  MySQL is open source and therefore free to use, which is obviously a good thing.  Furthermore, virtually all web hosts support MySQL by default.

WebSite X5 can write data to a MySQL database as an alternative to sending via email (as you already know).  To put it simply, the data is still sent to your server and you still have full control and ownership of it; however, the information is retained in a table-like structure with rows and columns, as opposed to an email format.

This brings huge benefits, as you can interrogate the data, sort it any way you like, change it, or even delete it completely if you so wish.

WebSite X5 can write data into the database natively; but at this point in time it cannot read the data back and display it on your web page(s).  The software is evolving fast and I expect it might only be a matter of time before this extra functionality is included.  In the meantime, you can use scripts freely available on the internet to 'bridge the gap' as it were.  These scripts use the PHP programming language and can be inserted into WebSite X5 projects in many convenient places...  e.g. the HTML Object

However, there is another way to easily view any data which clients might submit to you, and that is by using a piece of freeware called phpMyAdmin  -  this is almost always available from the online control panel of your web hosting space.

phpMyAdmin is not difficult to use, and allows you to view and edit submitted data with ease, simply by supplying your MySQL database user credentials (which are again set via your web host).  Here is a link to the official web site:

http://www.phpmyadmin.net/

I suppose only you would know yourself, Nicole, if phpMyAdmin could do what you wanted it to...  you might like to give it a try to see if this is the case.

WebSite X5 is very powerful and full-featured, but the kind of project you are building will stretch it to its limits.  However, version 11 incorporates new Optional Objects which allow third-party developers to write plug-in code to enhance existing features and even introduce new ones.

I feel greater database support is not very far away in WebSite X5, whether Incomedia themselves provide it, or some other developer via the Optional Objects.

I've tried to give a broad overview of database functionality in WebSite X5, but if we can help you more specifically then please feel free to reply.

Kind regards,

Paul

Leggi di più
Postato il da Paul M.
Paul M.
Paul M.
Moderator

PS: As regards user registration, the Automatic Registration feature of Professional 11 is fairly advanced, and can cope with high volumes of users, with automated emails, and email address validation.

However, there is no way to create static user profiles for each individual, nor would you want to, as that would be bad programming practice.

Instead you could create a single profile display page in WebSite X5, the contents of which would change dynamically by pulling data from the database via PHP/MySQL scripts in HTML Objects.

Try to think of the database as holding all the user profiles, as opposed to WebSite X5, or pages within your project.

And if you do end up using a database to power your project then it's absolutely imperative that you take frequent snapshots of it as a backup.  If you were to lose the database the project would become almost worthless, and WebSite X5 doesn't backup databases on your behalf...  this needs to be done on the server.

Hope this helps in some way.

All the best,

Paul

Leggi di più
Postato il da Paul M.
Nicole B.
Nicole B.
User
Autore

This is incredibly helpful.  I've JUST started learning about how to edit the information in the database that I've been able to access through my hosting service.  I suppose now it's up to me as to how I get it to display back on to my site.  Thank you so much for your explanation.  Now I'm going to hunt down a script that could do what I need it to.  Thank you again. :)

Leggi di più
Postato il da Nicole B.
Nicole B.
Nicole B.
User
Autore

Another question pertaining to what you mentioned, it seems there is a massive amount of scripts when I did a general search for scripts.  Any suggestions on a direction for finding one more specifically to what I need? 

Thanks again,

Nicole 

Leggi di più
Postato il da Nicole B.
Paul M.
Paul M.
Moderator

I've had a good look through Google's top offerings and here are a few I would recommend to start with, Nicole:

http://www.w3schools.com/php/php_mysql_intro.asp

http://www.w3schools.com/php/php_mysql_connect.asp

http://www.w3schools.com/php/php_mysql_select.asp

The w3schools.com website has dozens of chapters on each aspect of PHP/MySQL with a very helpful feature which allows you to run code examples online to see the end results.

If you use any code from their site I suggest opting for the 'Procedural' versions over the 'Object-oriented' versions...  they both accomplish the same thing but the procedural is easier to code and understand when first starting out.

https://support.godaddy.com/help/article/216/connecting-to-mysql-using-php

This GoDaddy article is nice and simple, illustrating the most basic of database connections and queries.

http://www.formget.com/read-mysql-data-using-php/

This one is a nice, clear article...  well-written  -  I don't advise using any of the actual code as it references a slightly older version of MySQL, but the article does a brilliant job of explaining how the various web elements fit together (PHP, MySQL, HTML, CSS)

Note that when you use WebSite X5 to display data from a database your workload is immediately greatly reduced, as WebSite X5 takes care of virtually all the HTML and CSS parts, leaving you free to concentrate on the database side.  You can achieve visually stunning results really quickly with WebSite X5 by reading your MySQL data into one of WebSite X5's formatted Table Objects, for example!

If you're going to write or customise scripts yourself then a good book on the subject will prove invaluable to keep by your side whilst you work.  I would have no hesitation in pointing you to anything written by Larry Ullman:

http://www.larryullman.com/books/

Larry has a real gift for breaking down complex subjects into simple terms.  I have bought many of his books over the years and found them all very easy to read.  I also like his emphasis on tight programming and doing things the right way, including web security.

The latter is something which you will need to keep uppermost in your mind if you use a database in your project, Nicole, particularly one with sensitive, personal information in it.  Protect it as though it were the crown jewels!  

Best of luck with your venture,

Paul

Leggi di più
Postato il da Paul M.
Wayne B.
Wayne B.
User

Paul, you are amazing. I have said this before but will say it again - Incomedia is lucky to have people like you who give their time so freely to help other users. What a helpful amount of information you have provided above! Thanks on behalf of all X5 users.

Leggi di più
Postato il da Wayne B.
Nicole B.
Nicole B.
User
Autore

I agree with Wayne, this is exactly what I was looking for thank you Paul!!!

Leggi di più
Postato il da Nicole B.