implode(', ', array_values($insert_fields)). implode(', ', array_keys($insert_fields)). $insert_fields = array( // Field list, add as many as needed $realmas6= date("Y/m/d", strtotime("$camporigen +6 day")) $realmas5= date("Y/m/d", strtotime("$camporigen +5 day")) $realmas4= date("Y/m/d", strtotime("$camporigen +4 day")) $realmas3= date("Y/m/d", strtotime("$camporigen +3 day")) $realmas2= date("Y/m/d", strtotime("$camporigen +2 day")) $realmas1= date("Y/m/d", strtotime("$camporigen +1 day")) $camporigen = date("Y/m/d", strtotime(" +5 day")) $camporigen = date("Y/m/d", strtotime(" +4 day")) $camporigen = date("Y/m/d", strtotime(" +3 day")) $camporigen = date("Y/m/d", strtotime(" +2 day")) $camporigen = date("Y/m/d", strtotime(" +1 day")) $camporigen = date(“Y/m/d”, strtotime(" +6 day")) $camporigen = date(“Y/m/d”, strtotime(" +5 day")) $camporigen = date(“Y/m/d”, strtotime(" +4 day")) $camporigen = date(“Y/m/d”, strtotime(" +3 day")) $camporigen = date(“Y/m/d”, strtotime(" +2 day")) $camporigen = date(“Y/m/d”, strtotime(" +1 day")) Sc_select(dsorigen,$sql) // selecciona el documento a asentarįoreach( as $camporigen) // recorre el dataset $sql = “SELECT * FROM hojas_temp WHERE usuario =’”."’" Thanks for the quick response.How I said for now I have more than 10027 lines of code and I need to add many more, but I can show you some part of it, by the way I tried splitting the code in PHP methods and I think it is working. Elementary or not, it makes a big difference in the usefulness of my site, so I'm offering 500 points. This may be elementary stuff, but I've been unable to come up with the right combination of search terms to find what I need online. Develop Systems and Applications 80 Faster with. Try online with a cloud demo Download free trial for 20 days. A powerful PHP generator for you to develop fast, simple, secure and with a low cost. If more information or code is required, I'll be glad to supply it. Get started with Scriptcase today Start building applications using only your web browser with the most efficient web development environment. (I'm referring to the experience described above, where the redirection code is higher up than the category-testing code.) I've simple-mindedly tried placing my "session_start()" and related lines at the bottom of the document, but no luck.Īs usual when asking a question here, I'll start by asking if there's a generic solution to the kind of problem I've described. In the course of debugging attempts, I've seen evidence that the cellphone browser may be reading in the php documents from the bottom. I'm testing the site on a couple of late-model NTT docomo cell phones here in Japan. If I get past this point by using "else" and not "elseif ()" for the last category test, I reach the next page but encounter the same kind of problem with session variables. It fails to do so and dumps me back on the login page. ![]() On a mobile device I can get from my login page to my "success" script, which should distinguish among users in different access categories by checking a session variable passed from the login page. ![]() Please note also that the site continues to run as it should on PCs. ![]() User agent detection is not an issue, as I'm successfully using an open-source function for that purpose. I know that PHP itself runs, because PHP if-conditionals are working they successfully hide PC-only sections of code or redirect the user to a specified page when a session variable does not exist. In adapting my educational site for students to access from cell phones, I find that session variables are not being recognized. Problem: A PHP/MySQL-driven website basically runs on mobile devices, but session variables don't.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |