39,402 Topics

Member Avatar for
Member Avatar for markaman

I've tried this multiple ways, the latest below. Maybe I'm on the wrong track. Thank you. [code]<?php do { ?> <?php [COLOR="Red"]$class='class="other"';[/COLOR] ?> <?php if($row_rsFrontPageAds['AdLink']) echo "<a href=\"" . $row_rsFrontPageAds['AdLink'][COLOR="Red"]"\"".$class."\">"[/COLOR]; ?> <img style=" " src="<?php echo $row_rsFrontPageAds['AdPath']; ?>"alt="" max-width="" border="" class="imgright1"/> <div align="justify" class="style48" > <?php if($row_rsFrontPageAds['AdCaption']) ?> <?php echo …

Member Avatar for markaman
0
75
Member Avatar for stevehart808

Hi everyone, Any ideas how to change this code so I can have a square thumbnails instead of always the same width but not height? Thanks [code] function CreateSiteThumbnail($srcFile, $destFile, $width, $quality = 100) { $thumbnail = ''; if (file_exists($srcFile) && isset($destFile)) { $size = getimagesize($srcFile); $w = number_format($width, 0, …

Member Avatar for stevehart808
0
229
Member Avatar for zanzo

I have two input textbox with the same name, when submiting the page I get only the value of the second textbox. how can i get the value of both fields???

Member Avatar for Aamit
0
121
Member Avatar for Shanti C

Is there any possibility to do online chatting with php. In clear, if we post our message ,the other person for whom we post will get that message with out inserting that message into the database... Can any one please help me out... Thanks...

Member Avatar for shivjamesh
0
519
Member Avatar for Coward

hi all i problem rotate image (png) code : [CODE] $myimage=imagecreatefromjpeg('test.jpg'); $mypng=imagecreatefrompng('opera.png'); $sizepng= getimagesize('opera.png'); $jpgwidth=imagesx($myimage); $jpghieght=imagesy($myimage); $pngwidth=imagesx($mypng); $pnghieght=imagesy($mypng); $pngwidth1=$sizepng[0] / 10; $pnghieght1=$sizepng[1] / 10; imagerotate(mypng,50,1); imagecopyresized($myimage,$mypng,0,0,0,0,$pngwidth1,$pnghieght1,$sizepng[0],$sizepng[1]); header("Contents-type: image/jpeg"); imagejpeg($myimage); imagedestroy($myimage); imagedestroy ($mypng); [/CODE]

Member Avatar for Rhyan
0
118
Member Avatar for cosby

hi everyone,i am having a problem with the maximum file upload i have read the forums about the maximum file upload and i went to php.ini to change the maximum file upload from 2mb to 3mb but if i upload 2.6mb file still the upload file doesn't work can you …

Member Avatar for cosby
0
91
Member Avatar for jithusdani

hi folks.. I downloaded the micro chat in hotscripts.com its working fine in my localhost , but its not working while hosting to any site, that means the message we are sending is disappearing after a second.. you can see the following link to see the problem [url]http://www.apolloinfosystem.com/microchat/index.php[/url]

0
61
Member Avatar for OmniX

Anyone know how to get a custom layout when sending email's via mail()? At the moment I would just like to start a new line in an email but eventually throw in images and etc. Any information be much appericated. Regards, X

Member Avatar for OmniX
0
159
Member Avatar for stealthmode

I have been trying to find a simple name and password tutorial that works and is easy to follow. Not having much luck. The name and password will be in a text file or mysql database which the user will be given, i do not need forgot password or email …

Member Avatar for PomonaGrange
0
136
Member Avatar for mr-cracker

Hello, I want to create my own script like [URL="www.anonym.to"]www.anonym.to[/URL] but with few additional features i want to use database, i believe its very easy to make but the problem i don't know php, i can write in visual basic and c++ but not php, What do i want?? to …

Member Avatar for PomonaGrange
0
159
Member Avatar for mvnr_83

Hi All, I have one requirement that, i am displaying results getting from various sites by sending request to their servers using http_client::get method.But it is taking much longer time to get back the response. I am using for loop to send the requests to all the servers(approx 40).So it …

Member Avatar for ShawnCplus
0
68
Member Avatar for jithusdani

hello shanti I also downloaded the micro chat in hotscripts.com its working fine in my localhost , but its not working while hosting to any site, that means the message we are sending is disappearing after a second.. you can see the following link to see the problem [url]http://www.apolloinfosystem.com/microchat/index.php[/url]

0
72
Member Avatar for kevin wood

not sure if this is the correct place to post but here we go anyway. what i am trying to do is put a table inside a div tag held within a php page but it is not working. here is the code [CODE]print "<h4>There are $num_rows records.<P></h4>"; print "<div …

Member Avatar for kevin wood
0
292
Member Avatar for asifkamalzahid

[I]n the following program i have the error [COLOR="Red"]Warning: ftp_delete() [function.ftp-delete]: Access is denied. in G:\WEBROOT\wilbourn\ftptest\uploadfunctionpage.php on line 89 could not delete wilbourn/ftptest/t.DOC [/COLOR] [/I] [CODE] <?php //Move or Upload Folder Using PHP FTP Functions function moveFolder($_server, $_user_name, $_user_pass, $local_dir, $remote_dir) { echo"$_user_name <br/>"; echo"$_user_pass <br/>"; echo" directories are : …

Member Avatar for asifkamalzahid
0
2K
Member Avatar for thomasEpand

Hello all, I use a database to extract the title of a url. I want to take save this title in a variable and then check if it is url1 or url2. If it is url1 call url1 javascript function else if url2 call url2 function. My code is : …

Member Avatar for sDJh
0
89
Member Avatar for agriyainfo

Hi to all, Did you ever see the Rock solid clone scripts like youtube,facebook,orkut and also social networking software for various segment like hospitals,colleges,schools and also for different communities...?If yes means just share with me too.:ooh:

-1
51
Member Avatar for gtamawale
Member Avatar for gtamawale
0
131
Member Avatar for Frosty[tnt]

Hey everybody this is my first post here and just learning PHP and need some help on an infinite loop problem. The code is supposed to find how many ways you can change a $1 dollar bill into coins using dollar coin, half dollars, quarters, dimes, nickels, and pennies. But …

Member Avatar for Frosty[tnt]
0
129
Member Avatar for sayaan

Hi everybody, I'm new in this forum, I'm a PHP developer looking for good solutions for changing colors, fonts, styles of a site on the fly. The idea is, the user will be given options to customize his/her web site's font, color of various elements etc. and then the site …

Member Avatar for PomonaGrange
0
117
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
215
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
131
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
83
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
267
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
85
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
184
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
127
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
103
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
225
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
96
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
65
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
153
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
212
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
805
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
99
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
98
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
140
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
206
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
171
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
121
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
791
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
95
Member Avatar for asifkamalzahid

this is for code [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form method="post" action="upload.php"> Move or Upload Folder Using PHP FTP Functions<br /> </p> <table width="373" border="1"> <tr> <td width="184">server address </td> <td width="173"><input type="text" id="server_name" …

0
83

The End.