Jump to content

PC Nerd

Members
  • Posts

    1,122
  • Joined

  • Last visited

    Never

Everything posted by PC Nerd

  1. Base this is the file that you gave me. as i said i cant test it becauase you have the database etc. this should do what you want. if not im not sure shat to do....... youll have to post on the forum hope it works PC Nerd [attachment deleted by admin]
  2. the values being saved to the cookies that arent working, not the expire time......... thankx anyway
  3. soz, im not familiar with that shorthand if
  4. youll want to go something like if(isset($value)) or if(!empty($value)) does that help???
  5. um, how would i make a simply calculator, in which given two timestamps, can calculate how many days between???
  6. um, would SELECT * FROM * LIMIT 1 then you would go $result ( all after query sent) foreach($result as $key => $value) { echo $Key."<br>"; } thats the basic and is how id start on the problem
  7. look, is there anything that i should be looking for, even just a "stab in the dark" ??? thanks if there is, and thankx if you can helkp solve it
  8. check the case of your keys, also, can you post all your code
  9. soz, trying to help, is it not what we do?
  10. exactly, but you dont need the second slash echo "<td class=\"tdback\">"; that should work.. ithink if is as "the slash the underlines the character trying to escape" lol
  11. use the other slash .... \ not /
  12. stab in the dark instead of opening a .txt as a file, try opening the directory insted?????
  13. ok, so you make your fields and then send it to a script as POST data..... foreach($_POST as $key => $Val) { if ($key != "%old") { $SQL = "UPDATE Table SET User_ID = ".$Val." WHERE User_ID = ".$Val."old"; $query = mysql_query($SQL) or die( "query failed".mysql_error()); unset($SQL, query); } else {continue;} this should work what you could do if catch this with a get value at the top of the page, then re get the user_ids and do al the stuff in the same page.... you want me to explain this????
  14. look at string formatting % means any char of any length. look at other wildcards that do stuf with only 1 character, so that you can loop through the string......... its all in string formatting and conditions good luck
  15. from memory, print is more for formatting, echo is simply displaying data and stuff
  16. backslash escapes that character, like for example if you have ' string's' its an apostrophe, but you coud go 'string\'s or "string's" its the same thing but for longer strings and that, the backslash should be used youll also see it in \n, newline \t ( tab i think) its al over the place glad its working
  17. um, use echo instead of print, and you dont need brackets around the multiplication....... how does that work???
  18. ok then you have a small input form next to the id, and then a button whereever to submit. somehow linkthe old id with the new then you loop through the $_REQUEST array in the next page, and "UPDATE table SET ID = "$_REQUEST[$indx]."WHERE ID = "$_REQUEST[$index."old"];, increment $indx at the end of the foreach......... this should work, i dont have time to have a full code for you, but if noone else answeres, then ask me in about 6 hours if imon, PM me.... good luck
  19. ok so the page displays the ids. the form resets the ids in order that you want them??? of the ids are organised acording to another field, eg presenter, co-preseneter, producer etc...?????
  20. yes good point, frost110 is must simpler. go with that!!!!!
  21. well thats where it gets complicated. ill be doing this sson with my site, but at the begining of every page you write a page request log to the database. fields = request_id, user_id, time, page_name what you do is search the records for User_Id = $User_Id, and time. find the most recent request ( via time ) and say if it was more than 20 minutes ago, then theyre inactive, and do your logout thing. its requires almost a new start. or at least a new version please note that i may be completely wrong, and there may be a really easy fool proof way of doing it that i dont know if....... either way, good luck. ill folliw this thred becauase ill be using it soon.
  22. in the sql, "ans password = (....." is that a special word and needs `baticks`???
×
×
  • 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.