39,402 Topics

Member Avatar for
Member Avatar for xuexue

this is what i want to happen, the user uploads the file to the database, (i already have the upload file), now what i want is that the user will be able to download what he had just uploaded to the database. in this case, he will have a chance …

Member Avatar for xuexue
0
104
Member Avatar for Facte

The string below runs as a maintenance script on one of my sites and at the moment it emails anyone who's plan has expired (which is fine) but it also emails people who haven't selected a plan yet because the value is less than today. I was wondering if someone …

Member Avatar for =OTS=G-Man
0
175
Member Avatar for darthvegan117

This is effect I want: [URL="http://haptictheory.com/clients/jh/nav/"]http://haptictheory.com/clients/jh/nav/[/URL]. I want the current page to have the green image behind it so people know what page they're on. This is what I have: [URL="http://haptictheory.com/clients/jh/index2.php"]http://haptictheory.com/clients/jh/index2.php[/URL]. The current page doesn't display the background image except on hover. CSS here: [URL="http://haptictheory.com/clients/jh/css/global.css"]http://haptictheory.com/clients/jh/css/global.css[/URL] Thoughts?

Member Avatar for darthvegan117
0
126
Member Avatar for Facte

All I am trying to do is create an XML feed so that I can submit it to a site. However no matter what I do (albeit with my limited size of brain) all I get are errors. It hates pound signs and apostrophes even if I try the only …

Member Avatar for mschroeder
0
234
Member Avatar for Jintu

I dun quite understand how this program works....... Please advice... What is the output of this program? [CODE] <html> <!-- test01.php --> <body> <?php $x = 2; for ($i = 1; $i <= 6; $i++) { if ($i % 2 == 1) { $x++; } print $i . 'x' . …

Member Avatar for diafol
0
156
Member Avatar for ranjeetp

Hello All , I have integrate eWay payment gateway, My need is I have to insert payment history which is monthly in the database and display that history in the my account section. But I don't know how to do it?. I know In paypal there is IPN for this …

Member Avatar for chrishea
0
70
Member Avatar for buzzby8

Purchased Car dealer script from built2go.com about a week ago. Installed on test server (so I could work on design) and also on live server ready to transfer new design when approved by client. All working for about a week, then this morning started getting error messages, on both sites, …

Member Avatar for samarudge
0
92
Member Avatar for whiteyoh

Hi all, When i run the following script by giving a description, choosing file and clicking upload, it dies with error "you must enter both a description and file", line 29. Im a bit stumped, can anybody shed any light on this please? This is the code grabbing the file …

0
66
Member Avatar for NoID

Hello, i would like to know if its any chance of me being able to retrive data by typing ID, so for example if i type 100 and click on get, i want it to echo the "mobile" number. Can someone please help me with that Thank you

Member Avatar for NoID
0
124
Member Avatar for Menster

Hi there peoples of DaniWeb, Does anybody know how to authenticate that a request is coming to one of my pages from a specific server and not from any random script. Many thanks,

Member Avatar for Menster
0
131
Member Avatar for bthaxor

hey all, firstly, i have no php experience whatsoever, and that's the main reason i need help in the first place... you may have heard of this before, but there's an awesome server transfer script called RapidLeech basically, it downloads files from many popular file sharing sites to your server, …

Member Avatar for diafol
0
101
Member Avatar for mahakaal

hi i have to type of string like [url]http://localhost/galaxy/galaxy/register.php[/url] and [url]http://localhost/galaxy/galaxy/register.php?id=1[/url] or [url]http://localhost/galaxy/galaxy/register.php?id=1&err=no[/url] and i want to find "register.php" as out put can any one help me thanks

Member Avatar for diafol
0
88
Member Avatar for hassonook

Hi my friend I installed php helpdesk script on our intranet this script use phpSniff to capture client IP address and we have Proxy server in our network. I have problem: 1- If proxy setting was not set the script return the client IP true but if proxy setting was …

Member Avatar for cwarn23
0
143
Member Avatar for pabzzmike

hello, i have a mysql vehicle database with 5 fields: make, model, price, year and chasis no which is being searched by a php script to display user queries. script is working fine but i need to display the data in a table for better presentation. help greatly appreciated regards, …

Member Avatar for diafol
0
95
Member Avatar for rahul8590

i designed a simple php form which accepts the data and then displays it, (well its supposed to ) but its kinda not displaying the values it should.. [code] <html> <head> <title> Simple feedback form </title> </head> <body> <form method = "post" action="send_simpleform.php"> <p><strong>Your name: </strong><br> <input type = "text" …

Member Avatar for telcontar
0
155
Member Avatar for xuexue

hi guys, need help, the fopen () command does not run on my program, i don't think what's the problem, please help me [code] <?php $ourFileName = "C:\server\htdocs\samples\php\sample.txt"; $fh = fopen($ourFileName, 'r') or die("Can't open file"); fclose($fh); ?> [/code]

Member Avatar for ranjeetp
0
63
Member Avatar for vanessia_1999

I am having trouble displaying the item listed in my drop box. It is not showing up anything. The list is blank. I don't know what the problem is. At first I thought it was because of an undefine varialbe, but thanks to Keith help with the undefine variable issue, …

Member Avatar for vanessia_1999
0
187
Member Avatar for ionzone

Hello, I'm trying to write a program that will POST information when executed. I can't explain well so I'm going to show how the program works. This program is intended to run from console (not from web) like this: [code]php /home/user/upload.php /home/user/documents/2009Final/income.doc[/code] When executed, I want the program to fill …

Member Avatar for monkey56657
0
90
Member Avatar for Lolalola

I have heard that there is a general session. Such a session can be seen, the management of all users. But I do not find the information or samples. If it means session fixation or same like that. Would you have examples?

Member Avatar for Airshow
0
33
Member Avatar for vanessia_1999

HI everyone, I am getting an undefined variable code: Notice: Undefined variable: prod_options Notice: Undefined variable: color_options with this error it won't make my drop down option box show the list of colors or product. What am I missing? Am I coding something wrong? [code]<?php // manage colors // pull …

Member Avatar for vanessia_1999
0
177
Member Avatar for telcontar

Hi, kind of new in PHP since I'm reading a 'novice to pro' one :) I was wondering how php experienced users deal with these two (at least for me) hot topics? What's your way of implementing it? Is there any 'convention' about this and not a merely a personal …

Member Avatar for ShawnCplus
0
100
Member Avatar for siri_ajay

Hi every body i want to send youtube embedded code through php mail function. embedded code is: [code=php]<object width="500" height="380"> <param name="movie" value="http://www.youtube.com/v/<?=$_GET['url']?>&amp;hl=en&amp;fs=1&amp;rel=0&amp;showinfo=0&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" /> </param> <param name="allowFullScreen" value="true" /> </param> <param name="allowscriptaccess" value="always" /> </param> <embed src="http://www.youtube.com/v/<?=$_GET['url']?>&amp;hl=en&amp;fs=1&amp;rel=0&amp;showinfo=0&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="380"></embed> </object>[/code] Pls reply as early as possible. Thanks …

Member Avatar for diafol
0
161
Member Avatar for zeusofolus

Hello All, I have a order form that is using a foreach loop with an array. The loop displays correctly the first time it is displayed on the page, but when the totals are updated with the submit button the loop duplicates the second to last entry? [URL="http://cubicalstudio.com/wholesale/foreachlooperror.php"]Here is a …

Member Avatar for zeusofolus
0
217
Member Avatar for aditi_19

I have a clientvendor.php file with various filters in it. This file directs to updateclientvendor.php file. Now updateclientvendor.php has a Back button to go back to clientvendor.php . When the back button is pressed, I want the page to go back and display the filtered information which is not displayed …

Member Avatar for Airshow
0
236
Member Avatar for BillBrown

Greetings, I'm wanting to learn how to use PHP to check for things like how phpBB or PostNuke do during installation. For the PHP stuff, I would imagine that I'd use fread() (or a combination of functions like that) to check for a php.ini, then use it to determine the …

Member Avatar for diafol
0
143
Member Avatar for bluetonic

how can I separate values returned from a query or is that even possible? What I am trying to do is do is $query = "SELECT * FROM whitealbumreg.lps"; lps has a column called lp_origin. lp_origin is ENUM where values are either US or UK. I know how to pull …

Member Avatar for diafol
0
73
Member Avatar for xuexue

how could i run my php code using joomla? i've tried it embedding in the articles and it runs, however, i have buttons in my page and it executes a certain command, now what i want to do is that i have my separate php program and it is just …

Member Avatar for kvprajapati
0
93
Member Avatar for innocent.boys

I m trying to do pagination on array in which i m collecting Data..!!! as i can't use dynamic limit function at stored procedure...!! and without limit pagination cant be possible..!! so i thought to collect data in a array and put pagination on it....!!! hope anyone will help me..!! …

Member Avatar for kvprajapati
0
297
Member Avatar for arajapandi

Hi , I installed apache,php, mysql ( [url]https://help.ubuntu.com/community/ApacheMySQLPHP[/url] ) After installing when i submit the form i can't get the form values. all values r empty. plz help me to resolve this problem?

Member Avatar for arajapandi
0
154
Member Avatar for santhanalakshmi

Hi, I want to authenticate the "Username" and the "Password" using adldap in php. OS = linux machine Thanks in advance........ with regards, santhanalakshmi.

0
68
Member Avatar for zeusofolus

Hello All, I am fairly new to PHP ... I am trying to build a basic order form for a small wholesale database and am completely stuck. The function of this page is display items and their price from the database along with an input box that will allow the …

Member Avatar for zeusofolus
0
753
Member Avatar for dholt

I think this is the right forum as the Question pertains too php. I was just wondering as I think this is a very nice feature to Daniweb. The Text that is Displayed when you go to post in the background. I was wondering if someone could share that little …

Member Avatar for dholt
0
71
Member Avatar for Jintu

Pls advise, what is wrong with the PHP script: [CODE] <html> <head> <title>Calorie Calculation</title> </head> <body> <?php $calorie = ($_POST["fat"] * 9) / ($_POST["calories"] * 100); ?> Welcome, $_POST["foodname"] contains: <?php echo $calorie ."from fat" ; echo "<br />"; { if ($calorie > 30) echo ($_POST["foodname"]) 'contains $calorie % from …

Member Avatar for almostbob
0
82
Member Avatar for whiteyoh

Hi all, This is an error im recieving on server, BUT, no error on local hostWarning: mysql_fetch_array(): supplied argument is not a valid MySQL result line 49 This is the code it is referring to.... [CODE] <?php $sql_query = "SELECT * FROM `indexinfo` WHERE id = '1'"; //store the queried …

Member Avatar for whiteyoh
0
76
Member Avatar for bubbafunk1

Our website used to be hosted in the US, but has since been moved to the UK. The the problem is somewhere in the php code the time has been set to 6 hours behind UK time, which was correct for when the site was hosted in the USA. Now …

Member Avatar for jcacquiescent27
0
282
Member Avatar for praghna

Hi all I am getting the following error with readfile: Warning: readfile() [function.readfile]: URL file-access is disabled in the server configuration in /home/u7/zzjynz5usy/ssss.com/html/news/news_index.php on line 144 can anyone help me in clearing this problem. I am using the readfile() function for generating rss feeds. my code is like this: readfile("http://www.webrss.com/get_mysite.php?mysiteId=10786");

Member Avatar for almostbob
0
109
Member Avatar for veledrom

Hi, I want to run a script automatically in a php page. (e.g. everyday 10am). How can i do it? Except cron job. Thanks

Member Avatar for Josh Connerty
0
123
Member Avatar for BabyEyes

Hi everyone i really need help ASAP .I need to read from the file which saved the result of a survey and make a chart on the answers. i have 5 questions and the values are 1, 2, 3 .how can i make the readin from the file and making …

Member Avatar for Menster
0
172
Member Avatar for gagan22

Hi all, I am making one application. When user will submit a form from frontend and it will go all value in database. After that i am showind this frontend form value in backend. In backend or admin section i am using two button one for submit and other for …

Member Avatar for guru12
0
142
Member Avatar for mangel.murti

hi all i want to display news from other website and display them to my site using php & mysql.how to achive step wise???

Member Avatar for mangel.murti
0
109
Member Avatar for tulipputih

Hello everybody, anyone can help me with this problem? instead of just display the child (in array)..echo $Valuechild[$i]."; "; (see the below code)..I would like to make a link from $Valuechild[$i] to a details of that variable.. [code=php]<TEXTAREA NAME="comments3" style='width:50%' rows='4'> <?php for ($i =0; $i < $ValuenumtableChildren; $i++) { …

Member Avatar for tulipputih
0
4K
Member Avatar for apradhan

Thumbnails are basically a complicated yet effective way to save bandwidth. Although saving thumbnails as seperate images may make things simpler, generating thumbs on the fly help saving space and takes very little processing time in return. Check the file for code and instructions. [code=php] <?php /* Paramters --------- w: …

0
218
Member Avatar for borntowin_786

I have used this code for ajax pagiantion JS file - [code=JavaScript]document.getElementById('divname').innerHTML = content; ajax.callPage("URL"+str, ajaxSearchFilter); tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox imgLoader = new Image();// preload image imgLoader.src = tb_pathToImage;[/code] Php file - [code=php]<td colspan="2" align="center"> <?php if($page != 1) { $pageno=$_GET['page']; $pageprev = $pageno-1; if($_GET['city_name'] != "") …

Member Avatar for Airshow
0
59
Member Avatar for Grantmitch1

Hello Daniweb Community, Now im trying to make a website and have just thought that if it manages to succeed it will of course get much larger as will the navigation. As such I thought using the <?php include("navigation.php"); ?> would be a good idea. That way the navigation is …

Member Avatar for darthvegan117
0
163
Member Avatar for BzzBee

I have a web page and have different images on it. but when i press the left button of mouse and try to select image or try to drag its selected. i want to avoid image selection. do u know any code.

0
62
Member Avatar for DaveyMoyes

Afternoon everyone – Onclick of “contact “Pop-Up “Contact-Sms-Centre.php' Can anyone help with this – iv got a php page that returns the following as part of a set of results <a href='Contact-Sms-Centre.php'>Contact</a> $city $country<hr The contact sms centre is width=450,height=350' I also have the popup.php as shown below [code=php]<html> <head> …

Member Avatar for DaveyMoyes
0
397
Member Avatar for diafol

Hi all, didn't know into which other forum this should be posted, none of them seemed obvious, so I've placed it here. Here's my problem: I've got a domain ([url]www.example.com[/url]) registered with a host, let's call them 'smallhost', and I've got a website with my custom admin section there. Recently …

Member Avatar for diafol
0
95
Member Avatar for Magic8Computing

Is it possible to Echo a Web Page link in PHP? If it is can anyone supply the code please. Matthew

Member Avatar for diafol
0
169
Member Avatar for iThaos

Hey thanks for reading this. Say I have 3 classes and I want to combine those class into a core. Example [code=php] <?php class One { public function get_me(){ echo 'Hello from class One. '; } } class Two { public function call_me(){ echo 'Hello from class Two. '; } …

Member Avatar for iThaos
0
114
Member Avatar for whiteyoh

Hi, Firstly apologies as i shouldnt have set a previous thread as solved. The following script should: 1. get record with id of 1 and display in text box 2. after user changes it, it is written to mysql 3. the screen informs user that this has been achieved [code] …

Member Avatar for Josh Connerty
0
118

The End.