39,402 Topics

Member Avatar for
Member Avatar for rEhSi_123

Hello fellow members....... I have been learning a forum creation video tutorial lately and I found few errors in them but the author is just NOT responding to my emails..... Anyhow these are the errors which I am facing: The Error I am facing is 'uid' which it says is …

Member Avatar for rEhSi_123
0
356
Member Avatar for jeffc418

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 …

Member Avatar for pritaeas
0
105
Member Avatar for valsaraj

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 …

0
59
Member Avatar for ruwanaru

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.............

Member Avatar for ruwanaru
0
317
Member Avatar for prawin@123

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 …

Member Avatar for nav33n
0
162
Member Avatar for Aamit

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...??

Member Avatar for nav33n
0
82
Member Avatar for madristaa

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 …

Member Avatar for pritaeas
0
287
Member Avatar for kevin wood

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. …

Member Avatar for nav33n
0
1K
Member Avatar for HailttRedskins

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 …

Member Avatar for perpetualstiffy
0
104
Member Avatar for prawin@123

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 …

Member Avatar for prawin@123
0
105
Member Avatar for rouse

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

Member Avatar for rouse
0
58
Member Avatar for babyfrostie

hello, how can I display a data (ex. course) in a drop-down list whenever I add a data? thanks!

Member Avatar for ahmksssv
0
99
Member Avatar for ash_85

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. …

Member Avatar for ash_85
0
92
Member Avatar for rajeesh_rsn

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 …

Member Avatar for rajeesh_rsn
0
119
Member Avatar for madristaa

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 …

Member Avatar for madristaa
0
111
Member Avatar for theimben

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 …

Member Avatar for pritaeas
0
73
Member Avatar for valsaraj

mktime() not working for 04/06/2111. Which is the reliable alternative?

Member Avatar for mschroeder
0
111
Member Avatar for EdTheUniqueGeek

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. …

Member Avatar for EdTheUniqueGeek
0
113
Member Avatar for Bob Arctor

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 …

Member Avatar for Bob Arctor
0
110
Member Avatar for johnkhan

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. …

Member Avatar for ahmksssv
0
92
Member Avatar for johnkhan

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 …

0
66
Member Avatar for johnkhan

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 …

0
65
Member Avatar for sreya.n

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... :-)

Member Avatar for sreya.n
0
92
Member Avatar for samaybhavsar

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 …

0
44
Member Avatar for shasha821110

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 …

Member Avatar for Monalisaparker
0
155
Member Avatar for jeena1

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 …

0
55
Member Avatar for EmperorDass

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 …

Member Avatar for EmperorDass
0
688
Member Avatar for alexgv14

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 …

Member Avatar for Shanti C
0
364
Member Avatar for bchand25

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....

Member Avatar for SunnyY
0
157
Member Avatar for Merlin33069

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, …

Member Avatar for Merlin33069
0
94
Member Avatar for shasha821110

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 …

Member Avatar for shasha821110
0
90
Member Avatar for vaideesh4u

Hi friends, I have one save button in my html page and as soon as i click that button the html/static page should be saved with .doc extension. As of now i want only the text in the html page to be saved as word document. But if possible suggest …

Member Avatar for FlashCreations
0
115
Member Avatar for achiman

please how can i create a form with three drop down list menu and when submit button is clicked it return a result depending on the choice made from the drop down menu

Member Avatar for almostbob
0
75
Member Avatar for etc123

Any body knows how to page a search engine i made? i used mysql and php to construct it.

Member Avatar for pritaeas
0
93
Member Avatar for jeffc418

Hi everyone! I really love this forum, it's by far the best coding forum I've been to. I have been attempting form validation and login security for about a month now, and I made the mistake of using all JavaScript for validation (though my site requires JavaScript...sooo I could always …

Member Avatar for mschroeder
0
214
Member Avatar for dmorison

Hi Guys, I'm having a problem with the below code. It's probably a simple mistake as I'm relatively new to PHP, and even newer to socket programming. The background is that I'm developing a socket server for a multiplayer game. Here is the relevant code: [CODE]class PlayerList { var $plist …

Member Avatar for dmorison
0
112
Member Avatar for Craig2231

Hi everyone, Im making a game that requires a login. Ive got stuck on a problem; When a user tries to log in, it wont accept it, its in the database, the script checks the database, but it still says no Here is my login check: [code=php]<? session_start(); header("Cache-control: private"); …

Member Avatar for Craig2231
0
110
Member Avatar for shasha821110

Hi, all. when i run my code, i always got the xpath Invalid expression warning. So here is my question: Assume i have the xml file [code=php] <root> <items> <item id="1"> <name> item1 </name> </item> <item id="2"> <name> item2 </name> </item> </items> </root> [/code] And here is my php code …

Member Avatar for pritaeas
0
225
Member Avatar for rohnni

hi i design a php event calendar but it showing some error, anyone check it plz.. Parse error: syntax error, unexpected T_ELSE in W:\www\Calendar-php\admin\calAdd.php on line 149 [code=php]<html> <head> <title>Calendar: Add</title> <META HTTP-EQUIV="refresh" content="1;URL=../calendar.php"> <LINK rel="stylesheet" type="text/css" name="style" href="../calendar.css"> </head> <body bgcolor="#FFFFFF" text="#000000"> <?php //returns highest key in the database …

Member Avatar for peter_budo
0
198
Member Avatar for coyo80

Hello all, i am receiving this message only when i am loged in as a user, when i view the page as a visitor there is no error. this is the code in the file, if someone know what the problem coul be please tell me. thanx [code=php]<?php include("admin/config.php"); $ipgf=99; …

Member Avatar for cwarn23
0
173
Member Avatar for ckurtz

i was trying to configure about how to work with <select> tag, when i was stuck with this problem: when i choose the <select> tag with PHP, i just want that that value of the <option> tag on the <select> tag will be the value selected after i submit the …

Member Avatar for cwarn23
0
2K
Member Avatar for ahmksssv

Hi ... i need to inserting around 20 values...which method is best in ajax post or get..i dont know abt ajax..plz send me ajax registration or small form (which having inserting records into db) ...i can learn by using this.... Thank u..

Member Avatar for fskreuz
0
215
Member Avatar for aamresh1

We have integrated Paypal with our application and everything is working perfectly. But after the transaction is completed and successful we need that it should redirect to our application again. But its not happening. We have turned on the auto return option in the paypal too but its still not …

Member Avatar for somedude3488
0
119
Member Avatar for andrewsCWD

Hello, I'm just trying to gauge how often this is used in real world development, it would seem that most would use databases for storing information instead of putting them in text files right? I'm in my first PHP MySql college course. Last week we just finished a chapter on …

Member Avatar for andrewsCWD
0
165
Member Avatar for xodus1

Hi Guys, I'm new to PHP and need help with passing variables from my form to multiple pages. I have global registers turned to off. I am able to retrieve my form inputs on the second page.. however unable to retrieve the same on the other pages after. for example …

Member Avatar for xodus1
0
1K
Member Avatar for Coward
Member Avatar for nmakkena

Hi everybody, I am trying to install php,apache,mysql through xampp-win32 installer. But i am getting an error that "apache installation failed. port 80 and 443 already in use". I am using windows xp os. How to resolve this problem pls help me

Member Avatar for ShawnCplus
0
101
Member Avatar for janicefernandes

we are a small website company. I make the user interface of the website while my colleague develops the admin side in asp or php. The admin pages alow our client to change the text and images on certain pages like products, gallery etc. i want to study code examples …

Member Avatar for almostbob
0
61
Member Avatar for OmniX

Is it possible to retrieve the number that the error line of code is on? Closest I have come to is mysql_error() but that does not tell me the correct number the line of code is on just like line 1 and it isnt? Line of Code: In your text …

Member Avatar for ahmksssv
0
117
Member Avatar for quill2

I keep getting the following error: [b]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/b] on line 17. I'm trying to figure out if there's some problem with my SQL query statement, or what. When I try to print $result, nothing is displayed. I've included my code below. …

Member Avatar for ahmksssv
0
119

The End.