39,316 Topics
| |
Can someone clarify me the difference between CHAR and VCHAR and which one is best to be default type in my all SQL queries? Is it VCHAR or CHAR? :D | |
can you include arrays[] in header urls? I have the following but it doesn't work so I am thinking it might not be possible. [code] $name = strtolower($_POST["name"]); $name = stripslashes(ucwords($name)); $email = strtolower($_POST["email"]); $emailx ="/^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$/"; $alphaspace ="/^[a-zA-Z]+((['\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/"; if ($name=="") { $error[] ="Name is a required field please … | |
does anyone know of any good resources for php regex for form validation. I am looking for good regex for name: (including -.' and no spaces in the first space no doubles of ..''-- phone: again no spaces at the start allowing + and - alpha: only lowercase letters no … | |
Hello all, first time working with PHP, had a question. Working on a friend's website, we thought we'd be wicked cool and add a dynamic photo gallery. I stunbles across this neat pile of code: [code=php] <?php $columns = 2; $thmb_width = 120; $thmb_height = 80; function resizeImage($originalImage,$toWidth,$toHeight){ // Get … | |
I'm beginner in PHP, and for long have been doing my site in XHTML. Now I want to make a News box and have made PHP code for that function as shown below: [CODE=php] <?php function pop_boxes($words, $class) { $string = "<div $class> $words </div>"; print($string); } ?> [/CODE] And … | |
Hello, I call the imagettfbbox function like so `imagettfbbox($font_size, 0, 'monofont.ttf', $code)` but its generating the following error: 'imagettfbbox() [function.imagettfbbox]: Could not find/open font' monofont.ttf is in the same folder. And the code executes fine on the server. It just won't work on my computer. This leads me to believe … | |
Hi, I need to discuss some problems regarding handling of text boxes using php which are as follows: [LIST=1] [*]Can we set focus of a text box when an if condition is true in php? [*]Can we disable a text box when an if condition is true in php? I … | |
I am trying to parse the the following xml code below, I need to retrieve only totalhits="376719" in the "resultset_web" child. I also need to use code similar to the following: [CODE]<?php $doc = DOMDocument::loadXML($information); $result_node = $doc->getElementsByTagName('resultset_web'); $tHits = $result_node->item(0)->getAttribute('totalhits); ?>[/CODE] /* XML TO BE PARSED */ [CODE]$information = … | |
Hi All, Here is my Index code. How can I make footer be at the bottom of other div. In css I floated to left the leftbar and to right the main contents. The header is fine but footer comes just below main content instead of being at bottom of … | |
Hi frnds.... I have a page with different topics and explanations.... the total description in a single page..and all headlines at one place... now iam clicking on nth headline, than the page shows that nth topic description location... plz tell me how can i do that? | |
hi, I am trying to complete a script that sends an email along with html, the html changes the colors and the font, positions ...etc. I am in need of help. thnx in advance | |
hi If the user changes his photo i want the [B]else[/B] to work.if u the does not change his old photo i want the [B]if[/B] to work.but my below code is not working like that....only the if part is working[CODE] if(isset($_REQUEST["update"])) { $uploadedfile=$_REQUEST['uploadingfile']; $upload="comphoto"."/". $_FILES['uploadingfile']['name']; $filename=$_FILES['uploadingfile']['name']; echo $filename; move_uploaded_file($_FILES['uploadingfile']['tmp_name'],$upload); if($filename!="NULL" … | |
Firstly, can I just say. I know this is really badly written but its to the best of my ability. Right, on index.php it makes a query which should go to search.php. Search.php handles everything. It makes a request to ajax.php which makes the request from the database. The problem … | |
I will be needing to use PHP and MySQL to create a small application. But I need some help setting this up. I need to create a database for my application. I went to mysql.com, but couldn't determine what application I needed for creating my database. What do I need … | |
I have a PHP (version 5) site on a Windows server that allows uploading of files into our Windows server. I currently allow the user to upload up to 10 files at once. If users upload files as big as 20 mb or more slows the upload process down. Should … | |
I am new to sockets and fsockopen(). I am trying to send SMS using a gateway. But the fsockopen always shows the following error. Warning: fsockopen() [function.fsockopen]: unable to connect to alertbox.in:80 (A connection attempt failed because the connected party did not properly respond after a period of time, or … | |
Hi, i'm totally newby here and with php/mysql too. I have a form with some textboxes and checkboxes. The form action is: $_SERVER['PHP_SELF'] . '?changes=1' I want to give a possibility for the user, to change the values in them. So submit button when the submit button is clicked the … | |
Hello, can you help me by my Site? [URL="http://www.huette-walddorf.de"]Link[/URL] or [url]http://www.huette-walddorf.de[/url] My Counter is sometimes away! Greats, M. Weber | |
Hello, I have a script which uses a colorpicker in which the user can select a color, and in the preview section the color of one div is changed to this color value. This is done by a javascript function of the color picker. called setcolor. The code for this … | |
hello! i recently downloaded [U]dirLIST[/U] php script and uploaded it to my webserver.. script works well, but there is one problem - script doesn't count the folder size.. Please help me to solve this problem script is located here: [URL="http://dir-list.sourceforge.net/"]http://dir-list.sourceforge.net/[/URL] | |
I keep on getting this message: Parse error: syntax error, unexpected T_ECHO in /home/lsschnln/public_html/Registration Form/quiz_regedit_2.php on line 32 after running the script [code=php]<html> <body><?php if (isset($_POST['submit'])) { $to = "quizentry@lagosschoolsonline.net" ; $subject = "Quiz Entry" ; $SchoolName = $_POST['SchoolName'] ; $SchoolAddress = $_POST['SchoolAddress'] ; $Locality = $_POST['Locality'] ; $MobileNumber = … | |
I allow a member to create new styles for a program. They can save each style to a table called style_custom. A person can have more than one style in that table and the name of each can be found in the column called name. All I want to do … | |
I am using php 5.1 version and in dom module domxml is enabled. I am generating xml with php and i checked it generates correct xml. But when I use if( !$dom = domxml_open_mem() ) { // } then i got the following error: Fatal error Call to undefined function … | |
Hi frnds.... i have a colmn in database like [B]CONTENT[/B] ..it contains 20 lines of of data....but i need to select only 5 lines of data to a single variable...... plz tell me how can i do? | |
please tell me the algorithm serveruptime.com and how ping and get ping result in php [url]http://www.kampanye-damai-pemilu-indonesia2009.comyr.com[/url] | |
hey, kind of a noob to php. need help with line 17. this is a form email script. this is what i get when i submit. Parse error: syntax error, unexpected T_STRING in /home/a8407233/public_html/sendmail.php on line 17 this is line 17 if (mail ( "apcorpinc123@gmail.com", "From: $email", "Feedback Form Results", … | |
Guys, I need some help. I installed a mod on oscmax for updated product attributes. It works fine, BUT now the products in my site won't pull up. Everything looks fine on the site until you actually click on a product, then you get. Warning:mysql_fetch_array(): supplied argument is not a … | |
Hi frnds.... i am inserting bulk data into database...here i phase small problem...when the data having (') single quotes it shows error...because php takes ' as many ways..... i think htmlentites() tag is there in php...i dont know how it uses perfectlyy... plz resolve this problem asap.. | |
Hi Could anyone help me with this problem, I am trying to use php to insert user record into table (tblusers) using mysql command but I do get this error (Parse error: parse error, unexpected ';' in register.php on line 30 ) I don’t know what is wrong with it … |
The End.