39,402 Topics

Member Avatar for
Member Avatar for Taffd

Hello again, Can anyone give me any pointers on how to make a 'teaser' or 'preview' of an article. Thanks Taffd

Member Avatar for Taffd
0
100
Member Avatar for emmanueloladele

Hello All, Do anybody know any good free report generating tool i can use in my php application ? Emmanuel.

Member Avatar for emmanueloladele
0
87
Member Avatar for bhupents

Hi, I am Bhupen, I am doing my inventory project in PHP & MYSQL. I am working in both plate form, i.e. Windows XP and Linux 9 My problem. The array code which given below is fine working in Windows xampp server where the same code needs to modify in …

Member Avatar for nav33n
0
120
Member Avatar for kings

hi i want to know how to attach a file along with my email $headers = "From: [email]xyg@gmail.com[/email]"; $to = "xyg@yahoo.com; $sent = mail($to, $subject, $message, $headers); } if($sent) { print "Your mail was sent successfully"; } else { print "We encountered an error sending your mail"; } using the …

Member Avatar for nav33n
0
69
Member Avatar for emarkus

Can someone please help, I have this code below and every time i execute it i get this error: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/dbconnect1.php on line 14 I can work out what i am doin wrong. <?php $dbhost = "localhost"; $dbuser = …

Member Avatar for black_ip82
0
118
Member Avatar for dsujatha_uns

Hi! can any body help in this! This is to draw a graph in php. but, i am getting 'x' mark image . but, not the graph image. i think it has error in header ("Content-type: image/gif"); . if i remove this i am getting some png code . but,i …

0
43
Member Avatar for dsujatha_uns

Hi! I need code to draw a dynamic graph by taking values from database in php. i need in windows. Plz replie as early as possible. byee..

Member Avatar for johnrobert
0
59
Member Avatar for ytregnn

Hey, I wondering how I can make a "popup"-window (think it is done with Ajax) in the same browser-window? Click on one of the images in the link below for an example of what I mean. [url]http://www.railbirds.com/pictures/2/[/url]

Member Avatar for ytregnn
0
70
Member Avatar for vardhani

if my url is [url]www.x.com[/url] n i have an inner directory [url]www.a.x.com[/url] how do i check the url is right or not n lead it to an error page

Member Avatar for FireNet
0
189
Member Avatar for emmanueloladele

Hello All, I learnt Curl can solve some of my pressing PHP problems. I can't seem to get enough documentation on how to fully use the power of Curl- I need a helper. Can Somebody so kind, send me an electronic document on Curl ? It will be impossible to …

Member Avatar for FireNet
0
158
Member Avatar for kings

hi i have a database ..it contains employee details like name,emil,phno.....when admin sents a mail it must be forwrded to all the emp in the table..plese do tell me how to do tat

Member Avatar for kings
0
71
Member Avatar for kings

hi this is not working.how to do that..... form1 <form method="get" action="email2.php"> <table> <tr><td>Subject:</td><td><input type="text" name="subject" size="70"></td></tr> <tr><td></td><td><textarea name="body1" cols="70" rows="20"></textarea></td></tr> <tr><td><input type="submit" name="send" value="submit"></td></tr> </table> </form> php page <form> <?php $subject1=$_REQUEST['subject']; $message=$_REQUEST['body1']; $hostname = "localhost"; $username = "splendor_lydia"; $password = "jesus"; $dbid = "splendor_aletheia"; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or …

Member Avatar for kings
0
118
Member Avatar for Rankenian

I have been working through an "Introduction to PHP" book that has been very useful but i'm stuck on the mail() function. The syntax looks pretty simple but when i actually try and run the code on my pc and try to send an email to my hotmail account i …

Member Avatar for maiese
0
160
Member Avatar for hemgoyal_1990

Hi Frends, I am Working on a Database Project. I am New in PHP. I Want to Create a Search Page for My City Web Directory. How Can i Use MSAccess Database with PHP. Can Any one Give me Script for Accessing Database in PHP. I am Using Linux Hosting …

Member Avatar for nav33n
0
294
Member Avatar for vardhani

In a form if i have a radio box say yes n no... on clicking on yes i want a text area to pop up how do i do this

Member Avatar for vssp
0
120
Member Avatar for Taffd

Greetings all, I'm in the process of writing my own forums. I'd like to insert a 'teaser', showing a few lines of a post, displayed when a user rolls over a thread link. Much the same as happens here on daniweb. Can somebody please explain how this is done. Thanks, …

Member Avatar for Taffd
0
101
Member Avatar for gooky9

Hi, I need to calculate the number of working days between 2 dates entered in a page using PHP. The dates and the calculated number then need to be put into a MySQL database. I am new to PHP, but understand the linking to the database and basic fnctions within …

Member Avatar for gooky9
0
133
Member Avatar for killer007

[B]Hello Guys i know that you all are really helpful thanks for that . I am using this script[/B] [code] //************************************** // // Name: MP3 Archiver // Description:This script will grab all // the mp3's in a folder, get the Tags from // them, ie.Title, Author, Album, Copyright // , …

Member Avatar for Fungus1487
0
98
Member Avatar for killer007

[B]Well Guys i really need you guys help. I want to Show (display) Last 10 Categories Here is Sql Table for Categories.what i think is it can be done with 'cat_id',but i am not really getting this .anybody can help me ?[/B] [code]CREATE TABLE `categories` ( `cat_id` int(10) unsigned NOT …

Member Avatar for killer007
0
124
Member Avatar for dgarbarino

I am looking for the easiest way to set up a table on a page that needs a password to see. The table needs to be able to be sorted by clicking the header of the column you choose. Alternately, or inclusive I would like to search for data on …

Member Avatar for jenishkottaram
0
93
Member Avatar for cancer10

Hi, I have this question in my mind and have been searching for its solution for days. A forum (developed in PHP/Mysql) which gets 10,000 hits per day. Which of the following connection would be most appropriate for such a high traffic forum Or it does not matter which ever …

Member Avatar for ShawnCplus
0
89
Member Avatar for jay64

I contacted the host of my project for a problem I was having with inserting data from a form into a db on their server. One of the answers they gave me was: [quote]...for future reference, never declare a prefix, always leave this option blank.[/quote] I understand what a prefix …

Member Avatar for jay64
0
1K
Member Avatar for scru

Is there a mechanism for counting requests to specific files on a server. What is it? Also, what if the file is not php? What if I wanted to count how many times an image or xml feed is requested? How do I do this?

Member Avatar for w_3rabi
0
113
Member Avatar for amylawson

Hi, i am very new to php so please forgive me if i sound stupid.i have a tell friend php code [B]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>iTell from urQuiz</title> <style type="text/css"> <!-- .style2 {font-size: 12px} --> </style> </head> <body> <form action="<? echo …

Member Avatar for nav33n
0
134
Member Avatar for icarol.lyn

Good morning: I really need some assistance and would appreciate any input. I basically create static sites and I have concentrated on the 508 standards and using CSS. I was just tasked at my job to create a front end for: “a program that prepares documents, calendars and various other …

Member Avatar for icarol.lyn
0
81
Member Avatar for ybn1197

PHP newbie here again looking for some more help. I am trying to create a html table using information queried from a database. I would like three columns and the number of rows would be dynamic based on information gathered during the query. Briefly, it would look like: picture1 | …

Member Avatar for Nick Evan
0
851
Member Avatar for kings

hi i want to know how to use calendor control using javascript in php... please tell me the code

Member Avatar for nav33n
0
45
Member Avatar for miguel40

How can I put "text" directly next to a variable in a URL? My variable is $bandodd. It will have a numeric value. In the resulting URL, I want the value of $bandodd to be right next to the text - "AA" - so it will look like this: "?size=32AA" …

Member Avatar for nav33n
0
102
Member Avatar for tony.willson

We struggle to come up with a decent error handling function. I thought that I use a global variable $live to easily make a switch from testing to live. I will keep the function in an include file. I kind of got there to print a "user-friendly" message when the …

Member Avatar for hielo
0
104
Member Avatar for DaitoTsu

Hi again, This time am outputting some html using a switch statement, but the outputted html code is not acting as coded, seems a very strange error as in both the case statements (first and third) its plain html but the link is just not acting correctly, but the main …

Member Avatar for DaitoTsu
0
85
Member Avatar for ryy705

Hello, I need to create dynamic consent forms, meaning the admin should be able to upload a file and the visitor should be able to read the file and then hit the consent button. I don't have any experience with this. I don't see any such example in my text …

Member Avatar for ryy705
0
137
Member Avatar for Taffd

Hi everyone, Can anyone tell me the security issues when passing url parameters for a forum. I'm building my own forums using dreamweaver and as I understand it, using url parameters make the site susceptible to sql injection. Regards Taffd

Member Avatar for nav33n
0
102
Member Avatar for AskLeo

I have a client who's attempting to support a file upload script on several servers. All appear to have PHP configured with file_upload turned on, however *some* act as if it's not. This is an area I've not got a lot of experience in (yet) ... Any hints on what …

Member Avatar for Dsiembab
0
329
Member Avatar for javan96

hi everyone im trying to interagte my gallery with my phpbb forum but cant get pass some basic steps. this is what am up to. this is the instructions that came with the gallery on how to interagte the two systems this a very little description what you have to …

0
59
Member Avatar for HailttRedskins

I got the coding for uploading files to my website throug a simple browse option off a page. I choose the file upload size to be 150mb, but it wont allow anything under 10mb it seems. I am real good friends with my host, he told me something like, it …

Member Avatar for Dsiembab
0
165
Member Avatar for javan96

hi i want to integrate my gallery with my phpbb forum. i have some instructions that came with gallery1.5 but i don't know how to do some of the steps. here is the instructions. this a very little description what you have to do to make Gallery >=1.4.3 work with …

Member Avatar for javan96
0
127
Member Avatar for jay64

Ok, I thought I had gotten all the answers I needed and marked my thread as solved. But now I am having problems trying to put the code into use. I tried to insert the data from my form into my data base and got an error message. I obviously …

Member Avatar for jay64
0
390
Member Avatar for jay64

I have an html form from which I am trying to insert the data into a MySQL db. I have heard that the date needs to be in a specific format for inserting into the table, I believe it was YearDayMonth (20070612) Is this true? Because of that, I broke …

Member Avatar for TopDogger
0
105
Member Avatar for Charleslp2007

Hello !! Please, I have a question. I want to [U]create a form [/U]in which the person who fills this form can write: 1. His/her e-mail address 2. That person has [B]one drop menu [/B]in which there are 5 products to choose, he/she has to choose one. 3. There is …

0
64
Member Avatar for berlin

not sure if i'm using the right term... i'm having a prototype built and i found that the programmer I hired isn't using php to show form errors. he's using javascript. there are 20 different forms in this app, from user profiles to submitting photos and videos. the site is …

Member Avatar for berlin
0
121
Member Avatar for ruman_eee

hi everyone, I am in problem to get the array data from php to use it in js. $data[0]=88; $data[3]=44; $data[4]=2232; I want to use those data in js. Can anyone help me ??

Member Avatar for adorosh
0
112
Member Avatar for jay64

Ok, I am trying to insert the data from a form into a table on my MySQL database. I have been going through some tutorials on how to do this, and have found slightly different answers. I'm assuming that they both kind of do the same thing, but what would …

Member Avatar for jay64
0
103
Member Avatar for mortalex

Hey guys, I'm trying to write a peice of code that basically checks if the input field have been submitted, it is an update code so I have designed it so that when the user clicks "update" another page displays saying "well done object updated". However when i do this …

Member Avatar for Dani
0
159
Member Avatar for vardhani

i am new to php.... please send me a code tat will help me create a form n direct it to my home page and send the information of the form to my email

Member Avatar for vardhani
0
144
Member Avatar for Dsiembab

Good morning, I am sure this has been asked before. So here it goes. I've been playing with these two php functions and was wondering if I have the logic right. let's say I wrote a function called crazy encrypt [CODE] <?php function crazyencrypt($password){ $is="isthis"; $overkill="overkill"; $pass = $password.$is; $pass1=md5($pass).$is; …

Member Avatar for Dsiembab
0
78
Member Avatar for Pro2000

Hi, I tried this code: [ICODE]<?php session_start(); $id=$_GET['fileid']; if($id=="1") { $dwnld = "File1.zip"; } else if($id=="2") { $dwnld = "File2.zip"; } else if($id=="3") { $dwnld= "File3.zip"; } if($id) { header("Content-type: application/download"); header("Content-disposition: filename=$dwnld"); readfile($dwnld); } ?>[/ICODE] I want the user to download those files from a folder named Archives... Example: …

Member Avatar for nav33n
0
192
Member Avatar for lydia21

html page <form method="get" action="sort2.php"> <table> <tr> <td>id</td><td><input type="text" name="id"></td> </tr> <tr> <td>From</td><td><input type="text" name="from"></td> <td>To</td><td><input type="text" name="to"></td> <td><input type="submit" name="submit" value="submit"></td></tr> </table> </form> sort2.php <?php $id=$_REQUEST['id']; $to=$_REQUEST['to']; $from=$_REQUEST['from']; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $query="(select name,id from member where id=(select day,time from attend where day between '$from' …

Member Avatar for nav33n
0
152
Member Avatar for webguru07

I have a 2D array like this: [code]$cart = array(array("Item", 6.99), (array("Item 2", 13.99)); [/code] i am using this for a shopping cart i am making. I can add to it fine. What i need to be able to do is remove items from the array. I have been racking …

Member Avatar for nav33n
0
110
Member Avatar for eXceed69

I've Install this script to my site but It won't function that well Here's the code, which logs client side IP in a flat file or *.txt [code] <?php $filename = "uniqueLogs.txt"; $file = file($filename); $file = array_unique($file); $hits = count($file); echo $hits; $fd = fopen ($filename , "r"); $fstring …

Member Avatar for nav33n
0
86
Member Avatar for natep

I have a checkbox form where different check boxes need to send the form to different email addresses. Right now, no matter the check box, it goes to the same emails. <span class="clients"> <input type="checkbox" name="blah" value="checkbox" /> Blah</span></p> <p> <span class="clients"> going here: <SCRIPT LANGUAGE="php"> $email = $HTTP_POST_VARS[email]; $mailto …

Member Avatar for nav33n
0
107

The End.