Say for example a db table has x amount of fields, I want to run that same x amount of loops and in each loop I want to create a new array. Say x = 3 then I want to end up with array1[], array2[] and array3[]. How would I go about something like that if it's possible?
Hi people, quick question, I have a if statement that checks for a php session variable, If it is not found it starts a session and assigns the variable. Now every time I refresh the page the session variable is not set. So I have to put session_start() before running the if statement in order for this to work. So every time the page is refreshed it runs the session_start(). Is that right? I thought session_start() should only get called once and stay active even when the page is refreshed?
So you basically need to intercept the url's and provide a page or a 404 page if the url does not exist. @webarto You say php already has something like that?
Hi guys, on Joomla! when you turn on the SEF URL option, it will rewrite certian URL's. but when you access that url through your browser, it doesn't exist yet somehow the primary index.php file still intercepts it, I'm assuming it's apache that does that, how could I do something like that? anyone here did something like that before?
I want to store user data in a cookie so the user can be 'remembered' on the next visit. I've read that most people hash the user id and password and store it in the cookie, but how do you authenticate the cookie? The only way I can think that'll work is if you extract the cookie value, then hash EVERY user id and password and compare it to the cookie value until you find a match, but it seems unpractical. How would one normally do this?
@Esailija :( Noooooo.... I want to build my own as a project, otherwise I would've settled for tinymce or ckeditor. Is there really no way to do that in ie?
Hi guys, I want to turn selected text into h1, I do it with execcommand('heading',false,'h1') and it works fine in chrome and ff, but not in ie9... Does anyone know how to do this in ie9?