39,320 Topics
| |
Hey all! I have a question that I just need a real solid answer to ;) Basically, I need a PHP script that checks values inputted by a form for special characters (only allows letters, numbers, and apostrophes). For form validation :D. I'm really not the best with regexes otherwise … | |
HI, My website has an import csv feature. how can I identify that user uploaded a csv file. when I make uploaded csv file from two different systems it shown two separate types like 'application/download' and 'application/octet-stream'. It is confusing. Is there any idea to validate a csv file. file … | |
Pleas help me on this i am a new one for php and i want to upload a picture to database can u plz help me to do this ................ thanx............. | |
Hi can any one Fix this problem, I am Uploading images to a folder , There i displays images but unfortunately display only the file name and not the image can any help me, BELOW IS THE CODE [CODE][LIST=1] [*]<?php [*] include 'dbcon.php'; [*]?> [*]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 … | |
Hi, [code] function xyz() { <a href="<?=$rame['img_link']; ?>" ><img src="img/<?=$rame['preview']; ?>" width="<?=$w;?>" height="<?=$h;?>" alt="<?=$rame['name']; ?>" /></a> } [/code] Using function I get image and url suppose image->url=http://www.daniweb.com I want to do like... when user click on this image i want to save count(hit) into database(mysql) How to do this...?? | |
Hello friends, I am displaying want to display Comments column. It will display the 1,2,3,4,..n where n is the number of application in proposal_application table. The code dispaly the other information with 2 different color for alternate rows. Can you please help me out to display the Comments column. Here … | |
i am trying to get this code to work but there is something wrong with the array (not to good at these). the main part of the code works it is sending out the email but only ever to one registered user. here is the code i have so far. … | |
I was wondering if anyone could help me out with finding the penguin php code. I've looked all over the place for it, and have had no luck finding it what so ever. The on im talking about is where the penguin is sitting, or maybe hes standing, I forget … | |
Hi i am new to php, can any of u help me, I am storing details such as name , address, email id, phone no, fax no and all. and i am creating edit form to edit those details , i am returns almost all values except address and select … | |
I am looking for a PHP tutorial or a script to write a small email contact form in OOP not the procedural method. I would like to use the mail server connected to my hosting services as opposed to sending it through Google. Thanks! WBR | |
hello, how can I display a data (ex. course) in a drop-down list whenever I add a data? thanks! | |
I can encrypt with ENCRYPT ------------ $pass = $_POST['sort_code']; $query = "INSERT INTO customer(sort_code) VALUES (AES_ENCRYPT($pass,'key'))"; the above code take a value from form and puts in the database as encrypted value. The field type of the sort_code in my database was varchar but now i have changed to BLOB. … | |
Hi I had a php page with some datas. When a visitor visit this page I need to show a div until the page loads completely... I tried many but cant.... Please any one help me with right idea or a bit of script ...... Thank you for your time … | |
Hello friends, I am displaying the comments suggested by 4 faculty members for each student. I want displaying three columns. Let me start with the second column first, which displays the Faculty 1, faculty 2, faculty 3, faculty 4. The third row display respectively comments given by faculty. Ok. Now … | |
Im trying to detect the format of an image. But I get a parse error [PHP]<?php $filename = 'http://static.php.net/www.php.net/images/php.gif'; $file = fopen($filename, 'rb'); $size = getimagesize($file); switch ($size['mime']) { case "IMAGETYPE_GIF": echo "Image is a gif"; break; case "IMAGETYPE_JPEG": echo "Image is a jpeg"; break; case "IMAGETYPE_PNG": echo "Image is … | |
mktime() not working for 04/06/2111. Which is the reliable alternative? | |
Hello. I am completely new to web development but want to learn PHP. I am currently a Sys Admin working in a Windows environment but I am very familiar with Linux OS server platforms also having built and run both a Windows and Linux web, MS SQL, and MySQL servers. … | |
Hello, I have this snippet of code to echo out the "mailer_id" with the largest value - [CODE]<?php $result = mysql_query('SELECT MAX(mailer_id) FROM mailer_directory')or exit(mysql_error()); echo 'the max mailer_id is ' . mysql_result($result, 0); ?>[/CODE] My question is how do I echo out the corresponding email value for that field … | |
I'm not very good at MySQL stuff, so I need a little help with a problem I'm having. I'm trying to make a script that will open up a text file and print the contents of the list onto the screen. Additionally I wanted the contents of the file (a.k.a. … | |
Hey Guys, I'm hoping to have a form where someone can enter a url to download a file only my net connection has access to, then it will use php/wget/curl to download that file and save it on the webserver. E.g, they enter [url]www.blah.com/pic.jpg[/url] and it will download and save … | |
I would like to remove and add the following to an auction script I own and I was hoping somoen or a bunch of people could possibly help me do this. I feel this information isn't need for what I'm trying to do with the script. Alright I was looking … | |
Hi all, I want to store some values in an array with the elements id and parent like array(id,parent).And i want to display the values in a tree structure. How will i do this using php? Any body knows this?If so please do reply. Thanx in advance... :-) | |
HI All, I want to make my own chat system, something similar to HCL, CrafySyntax. To start with I have some questions. 1) When does a session ends ? 2) How do I get to know on the server end if the session has ended ? 3) How will I … | |
Hi, all. Really new on php!! I want to implement one function which could get the price depending on different size and calculate the total price. So i made foo.php and bar.php. Which people could choose the size and the price in foo.php and want to pass which they choose … | |
Hello, I have a small login script written in PHP, everything in that regard is written. The Login is in one frame on top. However, when the user logs in I want another frame to display a set of links only available to those logged in. How can I do … | |
This is an error message i get, [B]Warning: get_meta_tags([url]http://www.fashionworld.co.uk/[/url]) [function.get-meta-tags]: failed to open stream: HTTP request failed! HTTP/1.1 500 Document follows in /home/skmehta/public_html/test/show_booked_1.php on line 671[/B] i am designing a website where the user can save the URL's of the webpage they like most with some pictures from that webpage … | |
I have a .htaccess file which forwards non www request to www [code] Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] [/code] However, I have a problem if i were to put into the url mysite.com/test.php it will not forward to the www site. Any help … | |
hi this is chandu.....i realy in a mess...plz do help...i just want to know how to begin within order to create quiz software using php.........plz explain in brief...plz plz.... | |
Hello Daniweb community firstly i would like to thank you for reading this So i am working on a server for a friend of mine, and i am fairly new to PHP, the server is at ambience.selfip.org site is going fairly good so far, i went through a few ideas, … | |
Hi, all i want to have the "add to cart" function in my website which use session function: Well basically the cart is mostly like others website cart: remember which have already been added and could add something more Assume i have class.php, A.php and B.php In my A.php [CODE=php]<?php … |
The End.