Jump to content

PC Nerd

Members
  • Posts

    1,122
  • Joined

  • Last visited

    Never

Everything posted by PC Nerd

  1. ok..... i deleted all cookies, and it didnt work..... then i restarted computer, and there were no cookies i logged in again and the cookoies were back, still sith the timestamp........ now are cookies in IE7 saved in the Temporary internet files folder, or somewhere else? thankx
  2. um i just relised that even after a few hours, and feleting all cookies from IE, that the cookies are stil there..... but im not actually creating any cookies..... whats happening do you think
  3. hey np, and spread word about battleages ( if you feel like it, its designed by me and mates in AUS!!!!!, taken us about a year) and it wouldt have been done without PHPFREAKS!!!!!, so thanks to everyione!!!!!
  4. thanks anyway, could one of the more experienced guys explain???? thanks for all your help Clown, i appreciate it
  5. but unset($Array) will delete the array, keys, values, even "if(!isset($Array))" wont run becauase its false i wanted to check whether or not it completely delets its existence, or whether it simply emptis it is there a function which simply empties a variable ( or an entore aray) or would i just loop through and reset to ( "" ) thakx
  6. um, FFD ????? Flat file Database? its definately got to be a proper database, im looking at hundreds of people, A DAY!!!!! and new ones signing up. its a game called battle-ages ( http://www.battleages.tk) and its almost ready to release ( excuse the site, its slightly out of date and very primitive) but the games a lot better. the backdoor i was tlking about is more of an option for Mods and Admin, that doesnt require them to login....... to an extent ( ie relogin every 30 min lke everyone else........) but thatll come later i think how much better would sessions be?????. i would prefer cookies
  7. lol, kk um, so do you have any more ideas??? untill this starts working, i cant edit much more of my site........... until the login works, ive built no back doors in for admin or mods. thankx PC Nerd
  8. um, is is a string, or a timestamp or what??? if string, then look at the string sormatting functions, look for one that will slice the string at every "x" characters. then simply format from the array output, if timestamp, then go $new_date = date("FORMATING STRING HERE") um, look at "date formatting" in tutorials good luck
  9. if i have a multi dimentional array, eg: $arr[x][y] = ''; and i want to delete the enrite thing, does unset($arr); rowk, or so i have to delet the second arrays, or how do i do it???
  10. um clown[NOR], what did you do to try to try and fix the cookie problem before you tried sessions? i dont think my host allows session, and i dont want to rely on sessions of i can help it......... just so i can give it a go
  11. ok, im 99% sure that the syntax is right, but i cant see the error. thankx
  12. um, i dont think thats it, becauase ive got that function that echos every value in the page, and all the arrays etc are full and the correct data thanks anyway can someone check if ive got my arguments for the cookies in the correct order?
  13. try: $sql1 = ""UPDATE players SELECT drugs, id FROM players where id = '".$stat['id']."' SET drugs = (drugs - '".$amount"') WHERE id = '".$stat['id']."'"; mysql_query($sql1); thats just the first query, try it and then adapt to the second query....... but can someone back me up on the embeded SELECT, i know it works in INSTER INTO queryies, but not sure about the UPDATE querys goodluck
  14. hi guys. im setting cookies for my login and instead of storing the values i want it to, its storing a timestamp instead my code is in a few pages, althoug ill summerise my data, and only post the code that creates the cookies: $User_Name = $_POST['User_Name']; $User_ID = $Login['User_ID']; $Login_ID = $Login['Login_ID']; #$Logged_In = "YES"; #$Active = "Yes"; setcookie("User_Name", $User_Name, strtotime('+ 30 minutes')); setcookie("Login_ID", $Login_ID, strtotime('+ 30 minutes')); setcookie("User_ID", $User_ID, strtotime('+ 30 minutes')); $Login is an array storing values retreive from the database. when loging in. it saves your login, time, user id to a table. $Login_Array is simply retreiving this record again, so that the Auto_increment field "login_ID" can be stored in the cookie. $DB_Login is a returned test to check whether or not the user_Name entered is even in the database..... $_POST['User_Name'] is the User_Name entered by the user to login. now my cookies are saving the following data, and theres still a "phanton" cookie that i used to use to have the expire time to check wherer or not their logged in.... The cookies are: User_Name => 1176012801 Logged_In => 1176012801 Login_ID => 1176012801 User_ID => 1176012801 these change everytime that the user logs in....... and gets deleted when the user logs out..... also, when i veiw the cookies on the page where they are created...... they are there, but i know that you shouldnt be able to veiw a cookoie on the page where its created.... i would really appreciate anyoes help in this problem, its been really annoying me for a few days now. thanks, PC Nerd
  15. yeah i ve had that some guy had a go for bumping it 24 hours of no response, and when i replied to say "thats what youd do..." then he try to reply, and becauase i posted first, he got he "another post and been posted" and had another go i agree with the new rule.........
  16. yeah iv got something similar im launching my webgame in the next few weeks, and the only things showing up in google are the phpfreaks posts ove made concerning my database etc, and code etc. is it possible for these not to come up in google?
  17. plz**** i really need helpon this one
  18. UPDATE queryies: i know that you can select multiple tables with SELECT queryies, but is it possible to update many fields from two tables?? eg UPDATE table1, table2 SET table1.field = '', SET table2.field4 = '' is that posible
  19. ok, um in your error it says that the value of your session is '1', is that the value that yu want?
  20. um, well if your using the next page simply to display different content, but same format then its your html otherwise i dont know what your asking!
  21. um, i dont know if theres a defualt, but i always specify "sort ASC" or "sort DESC" good luck
×
×
  • 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.