Jump to content

MrAdam

Members
  • Posts

    489
  • Joined

  • Last visited

Everything posted by MrAdam

  1. MrAdam

    Possible?

    ahh, i get you. what is your actual aim with this btw? be easier if i knew what you were trying to do with it ..
  2. MrAdam

    Possible?

    for the popup to contain the username etc. I imagine you'll either need to set it on page load, or use AJAX.the popup window would be fairly simple to create. There's an article on the javascript forum about centering a div; width and height. Then just use javascript timing to remove the popup after a number of seconds.
  3. MrAdam

    .shtml editing.

    do you mean like, templated pages using includes?my way of doing it is to create a file called "templates.php" or something. have a few functions within it, mainly "writeHeader($title)" and "writeFooter()". The variable $title obviouslly to change the title of the page.then include templates.php, and run the functions where i want them.
  4. I know how to use cookies - i think the problem is that the sessions simply won't last a day without having access to the php.ini file. I think the best way to do it would be to save their session data in a database. if anyone thinks otherwise though, please le'me know !-cheerrs!
  5. MrAdam

    Possible?

    Umm, i'd say you'd have the user in the database, then when they login a field in the database changes to "online". Then next time the users refresh (or you periodically update their contact list or w/e) they see the user as online.
  6. i don't want to be creating a member system, it wouldn't be useful enough. Is there a way of saving the session using cookies ? (for extended periods of time - not the default session cookie)
  7. i think it depends on the configuration of sessions. what i want is so that people can do stuff on the webpage with their session; exit the browser; upto a day later return to the website and it have saved their session. So anything they add to the shopping cart for example, will still be there up to a day later ..
  8. How can i make a session survive after closing the browser? What's the best way of doing this when i don't have access to the php configuration files? - thanks
  9. i'd start looking into PHP or ASP .. and then MySQL
  10. MrAdam

    Update DB help

    $update = mysql_query("Update studios set tour = '$tour', studio = '$studio', address = '$address' where id = '$_GET[edit]'"); try that .. There was a comma after "address = '$address' "
  11. MrAdam

    help me!

    does it actually work?
  12. onclick="document.forms[0].submit(); ... onclick="document.forms[1].submit(); goes up for each form on the page in the order they appear.
  13. MrAdam

    PHP Auth

    if you want to simply, compare the two to ensure you have the right person: save the IP in the database, when they register or something, then use a select statment to verify it's the same.you can then save that in a session - and as the user cannot modify the sessions themselves, it's secure enough to compare in the future - saving time.
  14. MrAdam

    help me!

    where did you find it?
  15. i was messing around on access earlier, managed to create this:http://www.newbiestyle.co.uk/excelTest.html (requires excel)im not sure how limited as to saving and editting it is.. but i shall find out !
  16. got it working, thanks alot!
  17. hi, does anybody have a quick way of removing all the spaces from within a string?
  18. ah sweet! i'll look into that! - cheers bruv!
  19. yeah .. im creating a web site for my boss, for his company. at the moment he has all his stock saved in an excel document - what i was hoping to do was to allow him to change the stock on the excel document.. which i could then write a script to apply the changes to the database.
  20. i managed to sort it: $id = "72"; // usually i would have run some statements to be left with the array[x] matching my id$test = Array();$test[0] = "72,72,72";$len = strlen($id) + 1; // length of ID plus 1 more for the comma$rem = strlen($test[0]) - $len; // the remainder from length of the array[x] minus $len$test[0] = substr($test[0],$len,$rem); // use substr() to only select after the first id, effectivelly, only removing one of the IDs
  21. no no, thing is, i don't want the unique.. i want to get rid of just one of the identical id's .. so if the variable contained "33,33,33,33" .. i want to be left with "33,33,33".
  22. thanks-but not quite what im looking for.
  23. hey all!i've been on with this for past half hour, and im a bit frustrated now!i have a variable which contains an id. In some cases the id may be repeated (multiple times), and a comma inbetween the id's. for example: "33" OR "33,33" OR "33,33,33" etc.im trying to create a simple function to remove just one of the id's: so, "33,33" becomes "33".my question is; how do I do it ?! -Thanks!
  24. is it possible to link a webpage to an excel document, an be able to delete entries, add new entries etc??? -cheers !
  25. i can't see that coming out too well ! i'd use PHP/ASP to redirect the user!
×
×
  • Create New...