The function UNIX_TIMESTAMP converts a timestamp to an integer. I think you would want FROM_UNIXTIME() for selecting the data. FROM_UNIXTIME() converts from an integer to a timestamp.
Unfortunately, you have to worry about the character set of everything that touches the data. That includes character sets of the database and of your server. Computers are filled with helpful...
You can use variables in the file name. Since you are using full quotes, you could just create the user name by putting a user id, eg. $uid, in the file name as "app$uid.html". Personally, I prefer...
Replace the "or die()" structure with an "if () else ()" structure. You can then put header() statements in the if then structure. The following structure puts an error entry in a .txt file,...
The updating is generally done by a default trigger called: CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP . It is possible to remove or control the behavior of triggers.
Max(), Min(), Sum(), Count(*), etc. are group functions. They go in a select part of a statement. A group function essentially rolls up long table into a single row.
The quotes seem freaky to me. I am assuming that you want something that prints "King" if $_SESSION['my_array'][2] is "M". I would write such a line as:
The is a spurious comma in the opening part of the query "SELECT code, FROM". You probably put that in when you added the post. I tried the query on MySQL and it...
I find this subject interesting as I am currently writing an upgrade where I am doing the reverse of the suggestion. My sites had the design where I would enter new user data in a table with a status...
You might try giving the columns name an alias in the SQL string. Let's assume the column in question is called mycol, and your tables are called First_Table and Second_Table. You could write the...
The amateurish way to do this is to carry the data from one form to the next in hidden fields. If everything goes well, when you get to the ninth page all of the data will be...
I probably misunderstood your question. My take on your question is that you want the browser to popup a file download box when a person clicks a link to a link. If you go to the page Ryan Hiller...
I looks like you have the padding for the cell defined in both the cellpadding attribute for the table and in the style for the TDs. If you are using style sheets, you probably should nix the...