PC Nerd
Members-
Posts
1,122 -
Joined
-
Last visited
Never
Everything posted by PC Nerd
-
thanks, will do
-
is there a way to echo out every value defined and set on a page, without manually doing so? if so wha is it. if not, how shoudl i go about it? thankx
-
anymore ideas???
-
dnt wry, i got it working, thankx anyway.
-
lol thankx guys
-
ok, after reading your reaply, ive found that it works, but thr original query, wasnt working properly, thankx anyway...
-
umm can i pass entire arrays to a function, simply by giving it the name of the array. im doing exactly that, but when the function tries to eecho out of the array, it echos nothing ill post ths code if you can pass arrays, but ill simply ask now thankx in advance
-
try $Query = mysqli_query() or die ( mysqli_error()); check the syntax, im not 100% sure
-
um, can you use something like the following: while(empty($Var_Name)) { DO STUFF} ??? the reason is that im selecting a random element from an array and puting it into another rarray, but if it isnt valid or doesnt select the element, then itll repeat is this valid code? thankc in advernce
-
um, read about the special charascyers, and the fnction ti replaces them
-
does anyone else have any suggestions?????
-
um, could you simply store their dob. then int it, so that you can simply go if $dob % 12 + 1 == 1, then avatar = this; that way you wouldnt have to type in everyu poability.... glk
-
that wont work. i am storing all login details in a database first it write a new"login record, with a unique login id. but what i want to do is to find the most recent login ( ie the one that just happened ) so thatg i can store the login id in a cookie, so that i can easily pass the database throughout the members are, if theres a better way of doing this, then please tell me. i originally wanted to just use cookies, but i want to store how much time a use is logged in for, so this is the best the database field is a timestampe, and is default to the the surrent timestamp, ie, NOW, but when we try to get that recond out again acording to timestamp, the timestamp will be different becausae of the number of milli seconds......... if theres a better way, or my plan is completely screwed up, please let me know thanks for your help, PC Nerd
-
yeah, i recomend you use include files, or databases ( however, id use include files) i use them al over the place if theres a database link, thats got an inclue, as do creat cookies for a login, retreiving user data etc. if theres something the same on every page, such as a menu, then i put it in an include file, and that way i only have to type it once, then include the file its much easier
-
im looping through all your logins, to determine what the most recent login time is. then storing it
-
um ok ive changed the post and i cant see that anywhere. ive fixed that and now only the error line is highlited blue. if you cant see it properly, then let me know, and ill repost the code.....
-
i dont understand?????
-
good point, its much simpler than mine. if confused, always ask the expert!!!!!
-
there you go, thankx whats wrong do you think?
-
ok, well if your getting the value from a form, use $_REQUEST array. then you need to send from the _GET array in the first value variable, then pass it to the second page eg on page with header $URL = $_GET['subid'] header("location:http://xyzwebsite.htm?$URL"); goo dluc, if you need more help just post
-
um, i get that its expecting an ";" on the while loop line, do{ $Login = mysqli_fetch_array($Login_Query); $Latest_time = $Login['Logged_In']; } while($Login = mysqli_fetch_array($Login_Query)) { if($Latest_time < $Login['Logged_In']) { $Login_ID = $Login['Login_ID']; } } there is it meant to go??? ive highlited the line where the ";" is expected. thanks in advance, PC Nerd
-
you were right thats the problem, it was defined inside a function, without returning the value thanks for your help
-
i have the followng code and its not setting the correct values to the variable $var1 = rand(1, 3); $var2 = rand(1, 4); this doesnt save the renaodm numbers, but it does create the variabl i know i havent reassinge the variable contence anywhere, so ts stayed the same i know this becauase i go if (empty($var1)) {echo "var1 is EMPTY!!!!!";} and the same with var 2 so is this the right way to asigne random numbers, becauase its worked in other parts of the site. thanks
-
um, i havent got time to read the code, but i think that this project wuld be best done n javascript... the only suggestion to your php version, is that you specify each button with a unique id, then random assing each id with either pressed, mine, or num. then write to a database or file each time a button is pressed, to specify which ones which. after thinking about it, simply write the file to wha tht e button is, butthe actuly php assingment..... that way it keeps updateing, and you could use a die() to stop if a mine appears in terms of the buttons being auto pressed, i think that paybe your accidently telling it to set as defult pressed, when a button is there good luck PC Nerd soz if ive just repeated you code.... :-\
-
lol, i downloaded SMF and looked at the code, and couldnt read the firts statement. its not designed well at all, in terms of readability..... all the code is simply in 3 or 4 lines, for the main mpage alone......... so i couldnt read it ive also looked at phpbb, but its the same ive also looked at joomla, and am looking at moodle if it has that function... anything elsed i should look at