No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
How to replace this part with database fields instead of manual entry into the array? [CODE]// the email to validate $emails = array('[email protected]', '[email protected]');[/CODE]
Need help to [B]update 2 rows in the same table[/B], been searching & testing with no real luck. I need to update 2 rows based on the URL below... [ICODE]id=145&contactuname=json101&contactid=7&memberid=1&confirm=2[/ICODE] Updating these fields: [ICODE]ustatus, memberid, contactid, contactuname[/ICODE] Table structure: [CODE]CREATE TABLE `contacts` ( `id` INT(40) NOT NULL AUTO_INCREMENT, `ustatus` TINYINT(1) …
I haven't actually even seen a movie of Marilyn Monroe, classic quote if it was hers. [B]Here are a few of my favorite female movie star(s)[/B] [QUOTE]Cameron Diaz Catherine Zeta-Jones Charlize Theron Drew Barrymore Hillary Swank Kate Winslet Natalie Portman Nicole Kidman Reese Witherspoon Renee Zellweger Salma Hayek Sharon Stone[/QUOTE]
I had a look at this [URL="http://code.google.com/p/php-smtp-email-validation/"]PHP SMTP Email Validation[/URL] and found it pretty useful. [B]How would I be able to post results to a MySQL database, [/B] the info posted to the screen wont help if you have 100's of thousands of email addresses to validate. [QUOTE]>>> HELO example.com …
How to read a text file into PHP with set format? My text file: [QUOTE][email protected] [email protected] [email protected] [email protected] [email protected] [email protected] ...[/QUOTE] How do I add the text file to my PHP file like this: [B]'[email protected]', '[email protected]'[/B] [CODE]<?php function nl2br2($text){ return preg_replace("/\r\n|\n|\r/", "<br>", $text); } $str= file_get_contents("sheet5.txt"); echo nl2br2($str); ?>[/CODE] This …
Create a .htaccess file in the root folder of web server Put the following code in the .htaccess file and save it. [CODE]php_value upload_max_filesize 20M php_value post_max_size 20M php_value max_execution_time 200 php_value max_input_time 200[/CODE] Now you can upload of up-to 20MB
Is there a better way to write this if statement? Option1: [CODE]if (isset($_GET['item']) || isset($_POST['item'])){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE] Option2: [CODE]if ('item' != $_GET['news'] || 'item' != $_GET['events'] || 'item' != $_GET['download']){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE]
[B]trim (PHP 4, PHP 5)[/B] trim — Strip whitespace (or other characters) from the beginning and end of a string [QUOTE]While inserting data from web forms to databases, trim the posted values to remove the spaces from the left and right sides.[/QUOTE] [B]mysql_real_escape_string (PHP 4 >= 4.3.0, PHP 5)[/B] mysql_real_escape_string …
What about [URL="http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm"]Dynamic Ajax Content[/URL]?
Since happygeek sent me a welcome message, I thought it only right to say Hi!
The End.
json101