
grungefreak
Members-
Posts
69 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
grungefreak's Achievements

Member (2/5)
0
Reputation
-
What a clever answer. Thanks.
-
Can somebody please help with this. I developed an online learning tutorial in Chrome. I just checked it in firefox and chrome and it's fine. But IE is not displaying as it should. If anybody could help that would be great. Here's the link: http://hanlonthesis.com/lesson1_webdev.php Ed Ved.
-
Thanks for the pointer. If i subtract timestamps I can get a value which is fine. The bit i'm unclear about is how I then store this in a variable for insertion into a database? GF
-
Hi, I want to record the time each logged in user spends each web page of my site. I do not want to use google analytics but would prefer to use custom code or a jquery plugin. This time would then be sent to a database for analysis later. Any guidance would be great as I am not to good with javascript. gf
-
I am simply trying to insert data into a db. The db connection strings are fine (included file) but when I wrap the code in a function and call it, it fails. It works if I don't wrap the code in a function. Is this a scope problem or something similar? <?php if (!isset($_SESSION)) { session_start(); } //open connection to database include("Connections/conn.php"); //register some session variables $_SESSION['pageID'] = 1; $_SESSION['pageType'] = "text"; //assign session variables to page variables $email = $_SESSION['MM_Username']; $pageID = $_SESSION['pageID']; $pageType = $_SESSION['pageType']; $ip= $_SERVER['REMOTE_ADDR']; insertStats();// this will not successfully run the code in the function below function insertStats(){ $db_conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error( mysql_error(),E_USER_ERROR); //select the database to use mysql_select_db($database_conn,$db_conn); //create the SQL statement $stmnt = "INSERT INTO stats values('','$pageID','$pageType','$ip','$email',now())"; //execute the sql statement $execute = mysql_query($stmnt,$db_conn)or die ("Error,please email [email protected] to report this error, try again later!"); echo " Page Access logged"; } ?>
-
using PHP to categorize links and send results to mysql db
grungefreak replied to grungefreak's topic in PHP Coding Help
Cheers. I like that idea. All suggestions welcome. GF -
Hi, I am trying to develop a prototype as follows: This is an online course in teaching Java programming. The user has the choice to follow a specific path throughout the lesson e.g. view some video tutorials, use the interactive quizes, just read text etc. Based on the decisions (links clicked), the system will then build a user profile of this persons learning style e.g. a visual learner, interactive learner etc. I am just setting out with this so I want to ask you the followingL Should I assign a value to each link and then send the result to a user profile table in my database? Or is there a better approach? I want to export the contents of my database and analyse the results using SPSS or PASW as it's now known (it's a statistical analysis tool that identifies clusters e.g. in this case, it will take the results of my databse on csv format, import them and identify cluster groups from this). Hope I haven't been too long winded but any guidance or suggestions, links etc would be most appreciated. GF
-
I have a link on my site to log in. I want a new window to pop up when the user clicks this. This new window will simply hold 2 textfields - username and password - is this a Javascript thing (prompt) or a CSS event. If this is Javascript, then is it possible to style this pop up with css? GF
-
http://www.amazon.com/PHP-Objects-Patterns-Practice-Second/dp/1590599098/ref=sr_1_1?ie=UTF8&s=books&qid=1251579261&sr=8-1 Thank you. The author of this one wrote another PHP book I had read. I've bought it. Thanks again. GF
-
Yes, but it doesn't explain certain concepts in a user friendly way. I always find documentation more useful as a reference when fully comfortable with a programming language i.e. having learned from a book or website etc. I suppose we all have different learning styles. Thanks though. GF
-
Hi, Can anybody recommend a good Object Oriented PHP book. I have experience with OO programming (Java). GF
-
Hi, This is probably asking for a lot, but is there any such thing as (object oriented if possible) a 'generic' form validation class i.e. a class that will validate 'most' forms. I am thinking of maybe something that puts the form components into an array and validates them that way. GF
-
Hi, I want to try develop a dynamic,adaptive web app i.e.the system records user actions and adapts the system to suit, e.g. a person may have the choice to view a tutorial displayed in text or images, if the user chooses images, the rest of the web app uses images and so on. A bit more complex than that but you get the gist. What I would like to know is this, would it be better to use xml or databases to store info i.e. build a user model or profile. Because this is an ajax forum, I would like to hear your opinions or even some guidance on where to best start and to make the right decisions at the beginning. Thank you GF
-
Hi, Could anybody offer guidance on how to set a link to show a bubble "onClick" e.g. user clicks my link and it shows a dialog bubble pointing to the link with some text in it. GF
-
I am not sure if it's Javascript or CSS for this one. Like some other websites, I want to show a small window preview of the destination web page when the user hovers over a link. any help appreciated. GF