Jump to content

grungefreak

Members
  • Posts

    69
  • Joined

  • Last visited

    Never

Everything posted by grungefreak

  1. 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.
  2. 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
  3. 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
  4. 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 info@xxxx.com to report this error, try again later!"); echo " Page Access logged"; } ?>
  5. 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
  6. 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
  7. 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
  8. 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
  9. Hi, Can anybody recommend a good Object Oriented PHP book. I have experience with OO programming (Java). GF
  10. 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
  11. 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
  12. 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
  13. 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
  14. I am trying to create a shopping cart. Here is what I have done so far. Users select a book from a list of titles (pulled from a mysql db - this is a hyperlink The book details are appended as a query string and the full book details are presented on the next page e.g. isbn, title, price etc The user can then press "Save to Cart" and the book details are saved in the session super global variable and presented to the user on a different page e.g. you just added this book to your cart [/i] That's as far as I have got. I am looking for high level or logical advice on how to achieve the following: The user will also see a link "continue shopping" which brings them back to the original list of books. I want to somehow save what was selected already and the unset the session variables so the user can start again. Each time they get beyond the "save to cart" page, they will be presented with all the items they have selected thus far. I am thinking maybe I should use an array e.g. $cart_array or something? I don't think I should save yet to the database until the "checkout" page. If you require further clarification please let me know. Any guidance at a high level would be most appreciated. In summary, how do I store what I have registered in my session variables so that I can empty these variables to allow them be filled again? GF
  15. I want to submit a form using a link. Is this possible in Javascript? GF
  16. err... i know that. any other advice? jh
  17. Yes, but it seems like it's right. Does anybody know if it's wrong? GF
  18. I want to submit a form using a link. I am writing the code within an "echo" as follows: $title = mysql_result($result,$i,"title"); $isbn = mysql_result($result,$i,"isbn"); echo "<form action='prod_info.php' method='post'>"; echo "<table style: border = 1><tr><td style: width='200px'><a href = '#' onclick = 'this.form.submit()'>" .$title. "</a></td></tr>"; echo "</table></form>"; It's not submitting the form though. any ideas? JH
  19. Ok thank you. Well I'm wondering if there is any "mobile phone browser emulator" of sorts available? So I can test how my site would look on a smaller device with restricted resources e.g. cpu etc. Something like the emulator used by Google Android developers? GF
  20. Hi, I want to develop a small learning website for primary school children. But this should be able to run effectively from a pda or mobile phone. I realise the main thing to take into consideration is the CSS but I want to store some data e.g. exams, test results, user profiles in a db. Can anybody let me know if there is anything else I would need to take into consideration? Also, maybe a new test would be uploaded each day by a teacher to the server, I need a standard form for doing this that would then be either converted to xml or stored in a db. Is this possible also? GF
  21. I know but I want to keep all my CSS in one external file. gf
  22. I have a form that "posts" to a processForm.php file. Is there any way I can get this processForm.php file to send the user back to the form page where a "Form Successfully Submitted" message appears? I know I can do this easily by processing the form on the same page but this isn't what I want. GF
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.