39,323 Topics

Member Avatar for
Member Avatar for squidthekiller

i have problem with my syntax.. please help me.. [code=php]<?php require_once('../Connections/epurse.php'); ?> <?php function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue; switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case …

Member Avatar for peter_budo
0
56
Member Avatar for nathanpacker

I'm only writing this in the php section, because php is really all I know. My wife purchased a big package of downloads from a site, and now she has to go and download them all, because she only has 7 days to download them. So she has to click …

Member Avatar for pritaeas
0
94
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
72
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
226
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
118
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
518
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
116
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
89
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
58
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
157
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
133
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
152
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
67
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
71
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
264
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
86
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
49
Member Avatar for gtamawale
Member Avatar for gtamawale
0
128
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
126
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
115
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
210
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
128
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
80
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
110
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
256
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
81
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
181
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
123
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
165

The End.