39,393 Topics

Member Avatar for
Member Avatar for tuse

Hi! I am using the following code for a file upload- [code=php] <?php if(isset($_POST['b1'])) { if($_FILES['uploadedfile']['name'] !="") { $target_path = "/home/infotech/myhomepage/uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); echo("Temporary Location is: ".$_FILES['uploadedfile']['tmp_name']."<br />"); echo("Target Path is: ".$target_path."<br />"); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; …

Member Avatar for tuse
0
214
Member Avatar for paddy_c

ive been getting loads of errors on a script that im trying to install.. so far ive fixed a few of them but now im stuck here Parse error: syntax error, unexpected T_RETURN in /home/wwwulti/public_html/network/install/index.php on line 668 [img]http://www.daniweb.com/forums/attachment.php?attachmentid=8340&stc=1&d=1227550169[/img] looks like the same things guna happen on line 670 any …

Member Avatar for PomonaGrange
0
130
Member Avatar for hassanzubair786

Hi Every Body Any one tell me how i add login form and database in my site <URL SNIPPED> PLz Tell me

Member Avatar for sayaan
0
82
Member Avatar for snowsurfer32

HI, If anyone could help me it would be great! So I am building a website for some snowboarders and they would like to collect Emails for their newsletter. this is the code i have put in. I know it is simple but when People submit there emails I want …

Member Avatar for PomonaGrange
0
112
Member Avatar for moerpheus

hey people, I want to develop my own social network. Do you think PHP and Mysql plus Javascript can do the magic?........ Thanks in advance.....

Member Avatar for moerpheus
0
265
Member Avatar for Crued

I'm trying to put together a registration form for little league baseball. I'd like to have a form where the parents can enter their information and the information for up to 5 children. I need a separate record for each player instead to one record for each family. So what …

Member Avatar for Crued
0
83
Member Avatar for Punkis448

Hello all. I am having some questions about a subject. I am running a small social community using SocialEngine and i want to include phpbb3 with an arcade mod or any arcade board that support high scores. My problem is that i do not want my users to re-register into …

Member Avatar for Punkis448
0
183
Member Avatar for anumitadas

I want to fetch data from Mysql database in list box..but it's not happening The code is: [code=php]<?php include("connection.php"); $sql= "select student_age from student_data"; $result= mysql_query($sql); if(!$result) { die('could not connect:'.mysql_error()); } while($row = mysql_fetch_array($result)) { echo "anumita"; ?> <option value="<?=$row[0]?>"> <?=$row[0]?> </option> <?php } ?>[/code]

Member Avatar for TopDogger
0
125
Member Avatar for macokovac

Hello all I need fast answer on this: How i can change(or) reset value ["referalvisits"] to ZERO? let's say that there is some value: for example 23220 I need reset it to zero and count again from zero.. "" [code=php]<th>Referral Visits</th> <td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?></td>[/code] "" thank you alot I …

Member Avatar for Aamit
0
167
Member Avatar for kevin wood

hope someone can help me with this. i am trying to update records in a mysql db with a new image but i keep gettin errors. i am using a hidden form input to post a variable across to a new page, i can echo the variable out at the …

Member Avatar for kevin wood
0
102
Member Avatar for rickya100

Hi there, So I thought this would be simple and it should be but I can't see what is wrong. Basically I am checking what language has been selected (via a code stored in a constant LANG_CODE) and then loading in a specific swf file. Except that the language code …

Member Avatar for rickya100
0
93
Member Avatar for marcmm

Ok... I have another problem. I have tryed to split the resultts of my query in to multiple pages with a fixed number of results per page... I used this tutorial for it: [url]http://www.php-mysql-tutorial.com/php-mysql-paging.php[/url] Originally, my page worked as follows: There was a search frame where the user would select …

Member Avatar for marcmm
0
223
Member Avatar for phpdude89

Hello to all who read this thread, I am currently developing a PHP web application (alone) which has gotten to a point where I alone cannot do developing on it anymore. I plan on hiring people to develop for me. My problem is I do not want to give away …

Member Avatar for phpdude89
0
87
Member Avatar for elajam

Hi, Can anybody please help me in writing this very simple script: This script will allow visitors on my site to order my services. The price will depend on the following factors: a) Number of pages b) Delivery time in days c) Format of the delivered files. After they select …

Member Avatar for pete911
0
95
Member Avatar for markaman

I have a php page listing all info entered into mysql. One of the fields is an email address, I would like the address to be mailto: All I could think of is [code] <a href= "mailto:?id=<?php echo $row_rsBday['id']; ?>"<?php echo $row_rsBday['email']; ?> </a></p> [/code] No luck with that Any …

Member Avatar for markaman
0
64
Member Avatar for rajeesh_rsn

Hai I am Rajeesh.... I am a little PHP programmer.... I likes to make a image code verification in my site.... Please give me the logic behind it........ Please Help me Regards Rajeesh

Member Avatar for buddylee17
0
57
Member Avatar for rogelioz

Hi, I'm looking for the equivalent in C# of this function: strip_tags(). I want to use it to validate some input and avoid SQL injection. Any ideas? Thanks in advance.

Member Avatar for raziane
0
1K
Member Avatar for Narayan15

i need help in php [code=php]<?php $num=2; ?> <a href="action.php?id='.$num.'">Text to be displayed</a>[/code] Here i m not getting $num value when i print echo $_GET['id'];

Member Avatar for Narayan15
0
152
Member Avatar for 123468743867143

[B][U]Question:[/U][/B] How to replace %20 characters in URL with a dash (-) when the information is coming from a MySQL db? Code:[B][COLOR="Red"] href='details.php?listid=$record[listingid]&title=$record[title][/COLOR][/B] It currently reads: [B][COLOR="Green"]http://www.mysite.com/details.php?listid=800&title=970%20South%20Bald%20Head%20Wynd[/COLOR][/B] It should read: [COLOR="green"][B][url]http://www.mysite.com/details.php?listid=800&title=970-South-Bald-Head-Wynd[/url][/B][/COLOR] I want to keep the title words for SEO purpose unless you think it is useless?? Thank you - …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for PomonaGrange

Hi Folks I am trying to make a php form processing script. The form would have a large text area in it where the visitors could type a few paragraphs of text. I want this script to break the text from the form after 75 characters or if that is …

Member Avatar for PomonaGrange
0
209
Member Avatar for hopalongcassidy

My problem is that I have a PHP application that needs to (in Windowsese) multi-task. I am relatively new to PHP and equally new to Linux. I need to know how to pass information from a parent process to a child process and vice versa. If somebody could please provide …

Member Avatar for digital-ether
0
798
Member Avatar for anumitadas

<?php <$conn=mysql_connect("localhost","root","root"); echo("connected"); if(!$conn) { die('could not connect:'.mysql_error()); } mysql_select_db("student",$conn); if (!mysql_select_db('student', $conn)) { echo 'Could not select database'; exit; } ?> This the code..Using which I want to connect but getting the error: Parse error: parse error in c:\apache\htdocs\phpmyadmin\connection.php on line 6 Plz help

Member Avatar for sasankasekhar
0
98
Member Avatar for sajjadpk

Hi Every 1..! I m new in DaniWeb plz help me out by solving my problm spcific to PHP (checkbox control). I want delete multilple data from mysql using php form checkbox control. I want to display data in a table as i did and then want to select multiple …

Member Avatar for sasankasekhar
0
97
Member Avatar for asciid

hi guys. i am writing a class for registering data and i am having a problem calling functions and vars from other classes. here's a class diagram of where everything is called- [IMG]http://img376.imageshack.us/img376/19/classesdm8.png[/IMG] i am in forms, and i am having difficulty getting vars from site, using my functions in …

Member Avatar for somedude3488
0
137
Member Avatar for seacaptdon

I am using the following PHP redirect script for a non-profit website, but because the blocked IP list keeps getting longer and longer, I want to pull the IP information from a simple mysql database that lists only IP addresses that have been blocked. I have tried several different combinations …

Member Avatar for seacaptdon
0
204
Member Avatar for newbietech

<?php $query_getf = "select ci.tb_ci_id, concat(ci.tb_ci_fname, ' ', ci.tb_ci_lname),ci.tb_ci_city, ct.tb_ct_desc, md5(ci.tb_ci_id), s.tb_s_name_full, case ci.tb_ci_addr_2 when '' then ci.tb_ci_addr_1 else concat(ci.tb_ci_addr_1, ', ', ci.tb_ci_addr_2) end, ci.tb_ci_phone_1, ci.tb_ci_phone_2, ci.tb_ci_fax, ci.tb_ci_email FROM tb_contact_info ci, tb_contact_type ct, tb_states s WHERE md5(ci.tb_p_id)='".$fd_p_d['md5_id']."' AND ci.tb_ct_id=ct.tb_ct_id AND ci.tb_s_id=s.tb_s_id ORDER BY ct.tb_ct_desc, ci.tb_ci_date_added"; //print $query_getf; $sth_getf = mysql_query($query_getf); …

Member Avatar for Rhyan
0
97
Member Avatar for pedramphp

Dear folk , I'm work with PHP speedy Plugin which makes my webpage loads 500% faster [url]http://aciddrop.com/php-speedy/[/url] , the configuration of the php speedy is ok , but when I add <?php require('C:/wamp/www//php_speedy/php_speedy.php'); ?> af the top of the page and then <?php $compressor->finish(); ?> at the bottom of the …

Member Avatar for digital-ether
0
170
Member Avatar for pedramphp

Dear folk , consider I define a constant value [code=php]<?php /*--------values.inc.php ------------*/ define("Data","MyValue") ?>[/code] so right now I want to change the Value of Data from another page and I wold like that to be saved on Values.inc.php file , you know I'm thinking some kind of data Store ,instead …

Member Avatar for digital-ether
0
120
Member Avatar for rickya100

Hi, Thanks for checking this out. The error is that when I use ob_start to store the results of an include file my fwrite statement later on in the code works but only writes a blank file, whereas when the ob_start is not present the fwrite function writes the file …

Member Avatar for digital-ether
0
784
Member Avatar for asifkamalzahid

[COLOR="Red"]In the follwing code i want want to know how i can put my information in the file filename distinamtion_file i want to use this code to upload a file from my computer to ftp server file that i want to upload is in my 'C/SITE/file.txt@ folder and i want …

0
93

The End.