Tyler Durden
04-20-2011, 10:37 PM
Hello users,
I am fairly new to PHP/MySQL and would really appreciate some help on some topic's I am trying to tackle.
I am attempting to create a web site personalisation engine, whereby the page alters while the user interacts with it. The default page I will be working with is my Uni's intranet home page, as an example, there is a list of hyperlinks leading to different areas of the web site, the more a user clicks on a link, the larger the font gets or the higher up the list the link goes.
To begin with I need a database structure to store elements (not whole pages) that can be customised , the different elements will be text in links, plain text, lists and images.
1. What would be the best way to store the different web elements in the database?
2. How will I be able to display the different web elements combined on one page as it was originally? (I assume the elements will be jumbled up in the database meaning it wouldn't be as simple as connecting via php and echoing the contents)
Is this as simple as listing everything by their ID as they appear on the web page and then altering the order of the elements later / having an elements field for me to order with an algorithm.
Finally, is there a way that I can monitor mouse in/out of areas on the web page or to measure the time between page requests as an estimate for how long users spend on each page ?
Thanks for any help that anyone can give me, sorry if this is more of a MySQL problem and sorry for the wall of text.
Cheers, Tyler
I am fairly new to PHP/MySQL and would really appreciate some help on some topic's I am trying to tackle.
I am attempting to create a web site personalisation engine, whereby the page alters while the user interacts with it. The default page I will be working with is my Uni's intranet home page, as an example, there is a list of hyperlinks leading to different areas of the web site, the more a user clicks on a link, the larger the font gets or the higher up the list the link goes.
To begin with I need a database structure to store elements (not whole pages) that can be customised , the different elements will be text in links, plain text, lists and images.
1. What would be the best way to store the different web elements in the database?
2. How will I be able to display the different web elements combined on one page as it was originally? (I assume the elements will be jumbled up in the database meaning it wouldn't be as simple as connecting via php and echoing the contents)
Is this as simple as listing everything by their ID as they appear on the web page and then altering the order of the elements later / having an elements field for me to order with an algorithm.
Finally, is there a way that I can monitor mouse in/out of areas on the web page or to measure the time between page requests as an estimate for how long users spend on each page ?
Thanks for any help that anyone can give me, sorry if this is more of a MySQL problem and sorry for the wall of text.
Cheers, Tyler