Jump to content

PC Nerd

Members
  • Posts

    1,122
  • Joined

  • Last visited

    Never

Everything posted by PC Nerd

  1. ok, firstly, if each user is on record in a table, then simply go SELECT User_ID FROM Table then go mysql_num_rows. thats the number of users, almost the same for onlin, simply have a field, that when a user logs in, it writes to that field, "logged in" or something, and go SELECT User_ID FROM Table WHERE Logged_In = 'logged in' then mysql_num_rows if you give a bit of code, ill do a quick example if you need gdlk
  2. huh? ok, IVE FIXED IT!!!!!!! i was giving output ,and stuff, and low it loops through about 5 different pages to login (yes its a lot!!!!!) thankyou guys for all your help
  3. ok ill try that.,....... however it has been working untill i added the new code, then it stopped??? thanks
  4. can you echo out the $q variable ( i assume thats meant to be the sql?) check if its setting properly. also instead use $_REQUEST instead of post...... see what happens
  5. um, im simply updating the login method from my already working site, shich uses cookies, and its stopped working. the entire site already uses cookies, and it would be easier simply to fix this problem. also, i dont know wif my host allows sessions
  6. http://www.phpfreaks.com/forums/index.php/topic,135650.0.html we found in the above post, that my browser is storing cookies too long, and the php is still stoorign them as timestamps..... does anyone know why theyre storing so long, and why their storing the timestamps? thanks
  7. you HAVE to use mysqli if its certain versions, its just syntax...... its like trying to use "random_number(between 10 and 20)" instead of "rand(10, 20)" my mysqli is fine, its works perfectly...... ill help if you need buut i think youll be needing to use that
  8. ok, if the string uses double quotes, dont escape others in the string, use single insead of & use and see what happens..... also, check your using the right table, sounds stupic, but mak sure there isnt a spelling mistake or something..... gdlk
  9. sometimes you get this erro when you are using mysql instead of ,myqli, different versions of mysql.... whic version of mysql are you running, if its 4.1.14 of higher ( from memory) it needs to be mysqli, other than that..... try mysql_fetch_array it gets both numbered arrays: eg $array[1] & $array['text_index']; gdlk
  10. Thanks guys, its working really appreiciate your help, ttyl
  11. well id use CSS, but would this work live? and with searching set words?
  12. um, well firstly use" name = 'value' instead of: name=value in terms of your database. simply loop through the result and echo out relevent values to checkboxes.
  13. um, in your body tag, look at the attributes for that ..... ( eg bgcolor is the background color the image one should be there gdlk
  14. um, im not going to read your entire code, but find where the mail() is, and loop there gdlk
  15. um, roughly youd simply find the variable holding the values for the pagination, and simply go if(< 5 || > 15) {echo "next";} just format and add the values as set gdlk
  16. any ideas or suggestions????? thankx
  17. um, ph installation board.... ??? i dont know muchb about manually installing php etc, but download xampp, its like a pre packaged version of everything........ it might take you abotu half an hour to an hour to install and sopy over your scripts........ simply export your current database through SQL, and import if in the new one let us know if it works, PC Nerd
  18. um, are you running this script on which page? look at the $_GOLABAL array ( i think its called that), it storea info about the server, client, and page etc.
  19. well it sounds like any GPL forum, like SMF or phpbb simpyl download those, and loose at the source it might take a few minutes to find the login section, but then just adapt that code if thats what you want
  20. ok, now its relocating but the timestamp is always the same.......... would it be better for me to post all the files as attachemnts, or post them here...... theres about 3 or 4 files that are required to login. thanks for all you help
  21. thankx this is my error, Warning: shuffle() expects parameter 1 to be array, null given in FILEon line 20 $Def_Start_Query = mysqli_query($DB_Server, $Def_Start_SQL) or die("Could not retrieve Defenese Players."); $Def_Start_len = mysqli_num_rows($Def_Start_Query); echo $Def_Start_len; echo "<br><br><Br><Br><Br><Br>"; for ($i=0; $i<$Def_start_len; $i++) { $Def_Start = mysqli_fetch_array($Def_Start_Query, MYSQLI_ASSOC); $Def_Options[$i+1] = $Def_Start['User_ID']; } $Def_ID = shuffle($Def_Options); $Def_ID = $Def_Options[0]; #$Def_ID = array_rand($Def_Options); whats happening do you think, shouldnt that work as reassigning the array?
  22. yeah i do, thankx um, shouldnt it be returning a "output sent by ..........." im logging the page request..... which is querying the database.......... if i user setcookie, then header, in another page, would that still work, becauase its all header information? i still dont know, becauase whenever i login again, the timestamp changes to the current ( i think its the current one) so ill try to change it, but i dont htink that itll work becauase of the timestamp..... thanks though, ill give it a go
  23. um, thats wort of getting there, its eliminating the repeated array, but now for some reason its not returning an array my code as it is....... $Def_Start_len = mysqli_num_rows($Def_Start_Query); echo $Def_Start_len; echo "<br><br><Br><Br><Br><Br>"; for ($i=0; $i<$def_start_len; $i++) { $Def_Start = mysqli_fetch_array($Def_Start_Query, MYSQLI_ASSOC); $Def_Options[$i+1] = $Def_Start['User_ID']; } shuffle($Def_Options); $Def_ID = $Def_Options[0]; #$Def_ID = array_rand($Def_Options); thankx guys
×
×
  • 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.