-
Posts
16,734 -
Joined
-
Last visited
-
Days Won
9
Everything posted by PFMaBiSmAd
-
About the only things I can suggest - are you debugging this on a system with error_reporting set to E_ALL and display_errors set to ON so that all the php detected errors will be reported and displayed and do you have error checking and error reporting/logging logic in your code to test if database queries are executing with/without errors and if rows are actually being updated/deleted as the result of those queries?
-
Frankly, without enough of the code, (sample) data, and knowledge of the data structures to simulate/reproduce the problem, there's not much anyone here or in any other forum can do to help. You're the only one here who has the ability to troubleshoot what the code/data is doing and to pin down at what point the code/data is doing what you expect and at what point it is not.
-
LOL That's not a URL.
-
Yes, but which one? The first one in the table, last one in the table, oldest one, newest one, longest one, shortest one, average of them, sum of them? Computers need to be told exactly what to do.
-
You are using the same name for all the form fields. Only the last one will 'win' Please see example #3 at this link - http://us3.php.net/manual/en/features.file-upload.post-method.php
-
If forcing your browser to reload the page isn't having an effect, be advised that a lot of web hosts have set the disk cache life-time to a high value, in an attempt to get as many accounts as possible to work on one server. This will prevent the server from operating on your changed source files until the cached versions of your files have become 'stale' and are read again from the disk. Are you still sure you don't simply want to set up a local development system on your computer? There are several all in one packages that normally only take a few minutes to download and install.
-
Those are formatted strings and the only way you can compare formatted strings is if each string has exactly the same format. You would need to use 24hr format with two hour digits (you would need the leading zero) in order for your comparisons to work.
-
Your database name, esolarch_admin2, looks suspiciously like it is your database username? Are you sure you haven't miked up your esolarch_admin2 with your esolarch_database?
-
The method (pun intended) by which you build the syntax of your query should be separate and different from the method by which you put program driven data values into the query statement. I would use place holders for the variable data, i.e. ? and use a different class method to build the query syntax from the class method used to populate any variable data in that query.
-
Programming help forums are not about writing scripts for you (see the freelancing forum section if you want to pay to have someone do this for you.) Programming help forums are about people attempting to write their own code and are asking for help with a specific problem or a specific error with their code.
-
Your array might be in with your php code now, but to do what you are asking would require that you rewrite that entire php code file every time you add or change the username/password.. information. You will eventually end up messing up your php code file by doing this. Your form processing code that adds/changes the information need to access the values and any page the needs to authenticate a visitor needs to access the values. You need to store the usernames/passwords... in a separate file and then include/read that information into your php scripts that needs access to that information.
-
Your (default) session.save_path setting is pointing to /public/tmp/ and that folder does not exist. Either the session.save_path setting is wrong and needs to be changed to the intended folder or the session.save_path setting is correct and that folder needs to be created. If you are on a shared web host, you should have your own private folder to store session data files in with your session.save_path setting pointing to that folder.
-
Storing sensitive information in a .txt file that is in a public accessible folder allows anyone who guesses or finds the name (many servers have directory listing turned on) of that file to simply request that file to get all the information in it.
-
The information that Krash posted was probably due to specific problems he was having and are not generally applicable to anything else and in fact since he specifically mentioned SMF and that has nothing to do with what you are doing, I would suggest that he didn't even read your thread before replying. There's nothing special about what you are doing. There are millions of web sites using session variables that work. You should be developing your code on a local development system, where you would have the ability to modify the settings in the master php.ini. You can also set the error_reporting/display_errors settings in a .htaccess file (when php is running as an Apache Module), in a local php.ini (when php is running as a CGI application), or even in your script (though this won't show fatal php parse errors because those occure before you script runs and the statements to set error_reporting/display_errors are never executed.)
-
You would either have an installation script (that gets removed after you use it) that creates the database record or you would register a normal account and then manually go into the database table and change the type to admin. You would create an admin page that only existing logged in admin's can access that would allow you to pick a username and edit his information stored in the database table.
-
Have you defined how you are going to store the information in the file? Are you going to write actual php code (the array() statements) to the file so that you can include it to get the array of information? Are you going to write just the information as CSV data so that you need to read and loop over it yourself? Are you going to serialize/unserialize the data so that you can convert it to/from an array in your code? Are you going to store it as XML?
-
You wouldn't ever assign admin privileges when someone registers. What's to prevent anyone from becoming an admin? If I could guess who you have designated to become admins, I could take over your site by registering as one of them first. You would assign admin privileges by having the 'super/owner' admin assign those privileges to the correct account(s) after they have been created. If you want to pre-designate specific users as admins, you would create those accounts yourself and then distribute the correct username/temporary-password to the correct person.
-
The code you posted as mm_dataminer.php in this thread, doesn't contain a function named outputAsSiteMap(), which is the function you are calling in your other posted code. No one can really help you until they see the code that produces/reproduces the symptom.
-
Once you fix the logic on your page so that it executes your OOP code when the form is submitted, you will find that you misspelled battle in the following variable name - $character_batte
-
What have you done to debug what your code is doing? If you check what execution path your code is taking when you submit the form, you will find that it is going to the main else{} statement which only outputs the "Character_xxx is not set.<br/>" when the corresponding character variable doesn't exist, but it does exist or you wouldn't have gotten to that else{} logic. You need to fix your basic form handling logic to do what you want it to do when the form is submitted.
-
Call external javascript file as a php file
PFMaBiSmAd replied to scanreg's topic in Javascript Help
The quotes that are in the posted code (both pieces) are curly/smart quotes and won't work in php, html tags, or javascript syntax. You need to use straight quotes. Either ' or " -
The problem is most likely a php.ini configuration value. What exact problems, errors, or other symptoms are you having? Also, do any other .php scripts work correctly on the same server?
-
Help: Retrieving data from an oracle db
PFMaBiSmAd replied to mits's topic in Other RDBMS and SQL dialects
From the oci_num_rows documentation - -
^^^ You need to make sure that all the content on the page is also accessed using https, such as external javascript, external css, images, other media files along with any secondary content that the javascript/css/media loads.