The logic in working with the data should remain the same, you are just going to have to work out a different way of retreiving the data. Will the server be passing this data as a single string, or...
This is going to be a fairly complicated script, that I would not want to begin writing/testing in my free time, but I will offer some pointers that may help you get started. Once you have a script...
I am thinking PHP is not going to be the best language to use for this. Many years ago I programmed a text parser adventure game in Basic, and I am thinking VB or C++ are going to be your best...
Actually, from this example I think it is apparent what the problem is. You have whitespace between SUM and its argument, which is causing the syntax error, just remove the space and it should work....
This indicates a problem with your syntax, if you still have the semicolon in your query, it could be causing the problem, otherwise, try going back to single quotes instead of backticks and see if...
I don't think ASCII would work in a URL, but you are right in that I doubt the HTML escape would work either. I think the HTML entity is the best bet, or you could try turning the entire URL into a...
Just curious as to why you are suggesting the use of backticks here? I have never seen this done, and am not even sure it is a valid replacement for any type of quote in PHP. Also, the query...
There are several differences, both in configuration, and the way certain functions and expressions are handled. PHP 4 has a larger installed base at this point, but since PHP is server side, this...
It will be helpful to know some JavaScript if you plan to do alot of php programming, and in some cases it will be absolutely essential. That said, however, I do not think learning JavaScript is...
You can use the substr() function to return the portion of the string you want to keep. The position and the length of the string portion need to be predictable, however. In the date format you are...
I am not sure why it is truncating the part of the variable before the comma, and skipping the witespace, but urlencode() is doing exactly what it is supposed to do with the remaining portion.
...
When you submit your form, any form element that is set as <input name = ""> will be passed to the php script that you set with the <form action = ""> element. So, in this line:
I was referring to your OP where you said "(eg "jpg", with no dot)". The mime function would not get exactly what you are looking for, but it depends on how you are using the data as to whether or...
He may be referring to mime_content_type() which does not return the extension, but does return the file type. Using BigMoosie's example, it would not return "jpg", but would instead return...
In order to change the setting from .htaccess, you will need to have the proper directory permissions. You will need to make sure that the directory entry in httpd.conf is set to "AllowOverride All"...
Also note that you should use !== instead of != to test the value returned by readdir(), otherwise some directory entries may evaluate as false and stop the loop.
You will need to pass that variable to the php script before you can use it in the script. For example, if the price of the system is $1365, you would need to call the php script with a URL similar...
I checked out the website and discovered the problem. Your variable $nSerId is not passing the cost of the system to the script, it is rather passing some kind of identifier. I selected a system...