I would like to ensure my PHP queries are 100% injection free, does the following suffice or do I need to do more/do something different:
$sqlquery = mysql_query(sprintf("SELECT * FROM tabl...
I need to sort an array by string size....the array has around 8500 elements and each element has multiple strings, seperated by the pipe ( | ) character. Example:
element[0] = word1|word2|...
I am having some issues with this function I am writting. Basically, it gets the assigned company (persons name) through a mySQL query. Then it either displays the persons name, and makes it...
Hi E's, I try to execute a php script by email.
In practice I send a email to a specific box, and that email execute a php script. That php script send a email message to the sender again. Th...
I need a PHP condition that looks at a string for the following conditions:
No more than 10 character string, must be numbers/letters only, and the first character must be a letter character....
I need a way to store sensitive data in a database, and be able to decrypt it later. I can't think of a solution, nothing like base64 would do it, even with a salt, I can't use a one-way hash...
Hi E's, I have about 20 folders in my server, and sometimes I have to delete all files in that folders. I do that with ftp program, manually I open each folder and delete files.
Have any func...
In PHP I wanted to know how I can check if a IP is up Basicly, I currently check via going to the IP and making sure the main page is blank.. Aka the home page, for example http://66.66.66.6...
The code below works fine. But what I can't understand is why the output for the variable <?php echo $thiss;?> is always the LAST result within the $offset.
Is there a way to select a certa...
Hi,
I have a webform with a submit button on it, which when clicked goes to a php page, displays a message to the user and saves the form's input values to an xml file. I handle the file na...
Hi guys,
I want to post a form through Curl. But I am getting some errors.
See http://stage.sigmatec.com.pk/schoolfocus/kodak.html
This is a Form that post data to a URL. In result You wi...
Ive set up my companies invoicing with fpdf to generate the weekly invoicing from our mysql database. The invoice description is set up with a multicell, and all has been going well until i c...
Hi All,
I'm trying to create a menu using php and mysql as the menu item database container.
All i want to do is create a simple menu (just plain text) and under the main items some sub ...
I have an array that I need to insert into an outgoing email.
The syntax is proving to be tricky.
Assistance gratefully appreciated.
PS: The array in the snippet works by itself however whe...
Hello,
I have a file browse/upload filed in an HTML page. I used the PHP tutorial for the upload found hear: http://php.about.com/od/advancedphp/ss/php_file_upload_4.htm
Everything works...
I'm currently trying to download a text file with the following link to some code. It downloads just fine except it is putting the HTML Code for that page in the text file then at the bottom i...
echo 'words, want to put an ahref mailto link here here, more words';
Dear Experts,
Is PEAR broken on PHP 5.2.11? If so which version of PHP is compatible with PEAR?
Thanks :)
Hi,
I'm currently working on one of my first PHP systems which captures information for people to use in my company and it requires a form to add clients to the database. I've put the code ...
Hello,
I think I've encountered this before but not sure how to fix it. I've upgraded my server from php4 to php5. fckeditor was displaying fine when i was using php4 but now with php5, it'...
hi
i have a dynamic table that i use to action certain records. however, at the moment i am doing them 1 at a time. taking ages with like 200 records to enter or update etc. is there a way to...
I am trying to make a simple module for my job.
Basically, this is a formula to determine a "savings plan" for our clients. Basically, the user inputs 3 values - total debt, total number...
I have a page (shopping-cart.php) where if the user is not logged in, and they click the checkout button, it takes them to the login.php page instead of the checkout page. My issue is, once t...
I am working on a font preview script for a photography website. I need a font previewer script so people can see their name in each font, similar to http://www.rockyourheadshot.com/fonts.aspx...
I am getting the following error from the PHP code:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.ebi.ac.uk/microarray-as/atlas/...