Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #3K
~3K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
Favorite Tags

22 Posted Topics

Member Avatar for nathenastle

Can any one help me how to [ICODE]resize images[/ICODE] in php with out changing its original quality,that is if an image with size 100/100 when it reduced to 40/30 or any our required dimensions with out changing its [ICODE]quality[/ICODE] .

Member Avatar for red_ruewei
0
354
Member Avatar for lifeworks

Hi this is nathen, Just see ithink its usefull for you [code=php] $arr=$_POST['allusrs']; foreach($arr as $tt) { $query3="select email from cfair_adminusers where admin_id=".$tt; $var3=mysql_query($query3); $bh=mysql_num_rows($var3); $arrayemail=mysql_fetch_array($var3); $emailid=$arrayemail['email']; $to = $emailid; $subject = $subject ; $message=$message; if($_FILES['filename']!='') { $tmp_name = $_FILES['filename']['tmp_name']; $type = $_FILES['filename']['type']; $name = $_FILES['filename']['name']; $size = $_FILES['filename']['size']; if …

Member Avatar for lifeworks
0
190
Member Avatar for mrcniceguy

hi this is nathen,i think you should use cookies for your requirement because in cookies only you set the cut off time,in seesions there is no option to set time i think just check this link for cookies [url]http://www.tizag.com/phpT/phpcookies.php[/url]

Member Avatar for somedude3488
0
146
Member Avatar for nathenastle

Hi all, while sending newsletter to more than one people iam not getting message,if message is showed and the error gives the following please give me suggetions.... This is a multi-part message in MIME format. --==Multipart_Boundary_x41a1c62a6e13d8689239009589f2351cx Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --==Multipart_Boundary_x41a1c62a6e13d8689239009589f2351cx Content-Type: image/pjpeg; name="2 air.jpg" Content-Disposition: attachment; Content-Transfer-Encoding: base64 …

Member Avatar for cwarn23
0
148
Member Avatar for nathenastle

Hi this is nathen can you please some one help me the following is my form what i want is when ever i fill an empty value that is nothis in my text box and when click on shareacoupon button i need a message that empty values are not allowed …

Member Avatar for samarudge
0
133
Member Avatar for nathenastle

Please help me in newsletter sending , this my code the problem is the mail is send to single person is going correctly ,if the same mail send to more number of persons getting wrong mail is going but the data display only in first mail ,the other mails getting …

Member Avatar for rm_daniweb
0
115
Member Avatar for rEhSi_123
Member Avatar for nathenastle
0
128
Member Avatar for nathenastle

Can any one explain about how to find the date of next fefteen days based on present date,what problem is in my database i have deal_expire_date,based on that i used to display the deatils which the deal_expire_date is near to coming 15 days means deal_expire_date <=15... can some one help …

Member Avatar for samarudge
0
61
Member Avatar for mrcniceguy

Hi this is nathen, the link following is some what usefull for you i think [url]http://www.w3schools.com/php/php_date.asp[/url]

Member Avatar for darkagn
0
133
Member Avatar for lildaddyha

hi this is nathen, [code]insert into cfair_deals (deal_affid, deal_storeid, deal_catid, subcat_id, deal_type, deal_title, deal_url, deal_coupon_code,deal_coupon_file,deal_start_date,deal_expire_date,deal_promotion,deal_expire,deal_barcode,deal_price,deal_oldprice,deal_discount, deal_pricecurrency,deal_oldcurrency,deal_image, deal_shortdesc,deal_fulldesc,deal_topcoupon,deal_hotweek,deal_status,added_on) VALUES ( '$aff_id', '$store_id', '$cat_id', '$categoryname', '$deal_type', '$deal_title', '$deal_url', '$coupon_code','$couponfilename','$sdate', '$edate','$promotion','$expdate','$bar_code','$price','$old_price','$discount','$price_currency','$oldprice_currency','$filename','$short_desc', '$long_desc','$top_coupon','$hot_coupon', '$status',now())[/code]

Member Avatar for lildaddyha
0
196
Member Avatar for Aamit

hi this is nathen, I think max this will solve your problem, [code=php]<table><th><strong>SEARCH BY EMPLOYEE ID</strong></th></table> <form method="post" action="" > <strong>PLEASE ENTER EMPLOYEE ID:</strong><table><tr><td><input type="text" id="text" name="text" size="30"/></td><td align="center"><input type="submit" id="search" value="search" size="10" /></td></tr></table> </form> <?php error_reporting(0); mysql_connect("localhost","root","rootwdp"); mysql_select_db("been") or die("unable to select"); $id=$_REQUEST["text"]; //$dd="SELECT *FROM `jos_employee`WHERE emp_id =184" ;$que=mysql_query($dd);$row=mysql_fetch_row($que); …

Member Avatar for nathenastle
0
84
Member Avatar for santhanalakshmi

hi this is nathen, you just out exit; at the end of i think this is work for you $_POST=""; $msg="Data has been saved successfully...."; header('Location: msg.php?name=insert'); exit;

Member Avatar for nathenastle
-1
133
Member Avatar for 1baxter1

hi this is nathen i think this is usefull some what for you, [code=php]$uploaddir="uploads/deals/"; $filetype1=$_FILES[userfile][type]; $filename=$_FILES[userfile][name]; $realpath=$uploaddir.$filename; if(!empty($filetype1)) { if(move_uploaded_file($_FILES['userfile']['tmp_name'],$realpath )) { } /************************************Resizing the image 75x75****************/ $path="uploads/deals"; $bgim_file_name = $path."/".$filename; $bgimage_attribs = getimagesize($bgim_file_name); if($filetype1=='image/gif') { $bgim_old = imagecreatefromgif($bgim_file_name); } else { $bgim_old = imagecreatefromjpeg($bgim_file_name); } $bgth_max_width = 75; //for …

Member Avatar for nathenastle
0
104
Member Avatar for jayb

Hi this is nathen i think this is some what usefull to you, [code=php] $query="select email from cfair_adminusers order by admin_id"; $var=mysql_query($query); while($arrayemail=mysql_fetch_array($var)) { $emailid=$arrayemail['email']; $to = $emailid; $subject = $subject ; $message=$message; if($_FILES['filename']!='') { $tmp_name = $_FILES['filename']['tmp_name']; $type = $_FILES['filename']['type']; $name = $_FILES['filename']['name']; $size = $_FILES['filename']['size']; if(file_exists($tmp_name)) { if(is_uploaded_file($tmp_name)) …

Member Avatar for nathenastle
0
104
Member Avatar for gagan22

Hi this is nathen, The include() function takes all the text in a specified file and copies it into the file that uses the include function. The require() function is identical to include(), except that it handles errors differently. The include() function generates a warning (but the script will continue …

Member Avatar for nathenastle
0
199
Member Avatar for london77

hi this is nathen, i think this is usefull to you some how, you first start the session on top first page and the page which you want to show your username.In first page its self you should use $_Post['myusername']=$_SESSION['myusername']; and you use $_SESSION['myusername'] in your second page where you …

Member Avatar for somedude3488
0
156
Member Avatar for veledrom

Hi this is nathen, i think this is some what usefull to you, [code=php]if($_FILES[userfile][name]!='') { if($num<=0) { $rand=time(); $uploaddir="uploads/stores/"; $filetype2=$_FILES[userfile][type]; $filename=$_FILES[userfile][name]; $realpath=$uploaddir.$filename; if(!empty($filetype2)) { if(move_uploaded_file($_FILES['userfile']['tmp_name'],$realpath )) { } /************************************Resizing the image 75x75****************/ $path="uploads/stores"; $bgim_file_name = $path."/".$filename; $bgimage_attribs = getimagesize($bgim_file_name); if($filetype2=='image/gif') { $bgim_old = imagecreatefromgif($bgim_file_name); } else { $bgim_old = imagecreatefromjpeg($bgim_file_name); …

Member Avatar for nathenastle
0
94
Member Avatar for Acute

hi this is nathen, i dont think without using forms by just clicking on a button you can't insert data into data base i think so

Member Avatar for nathenastle
0
114
Member Avatar for vikidigi

hi this is nathen, try this in your code everything is same except [icode]$image = mysql_query("SELECT * FROM userimagetable WHERE Id=".$id);[/icode] And also no need to use of header line you cna remove header("Content-type: image/jpg");so finally you code is [code=php] <?php $id = $_GET['id']; $image = mysql_query("SELECT * FROM userimagetable …

Member Avatar for nathenastle
0
78
Member Avatar for rEhSi_123

hi this is nathen can u try this [code=sql] SELECT * FROM forum_cats WHERE admin < ".$row['admin']."+1 .ORDER BY admin ASC[/code]

Member Avatar for nathenastle
0
119
Member Avatar for bwolfy

hi this is nathen just a tip for u use extract($_REQUEST); on the top of your page first so that it reduces the lines of code to get form elements every time ie you just remove the below in your code and on placing extract($_REQUEST); [code=php] $first = $_GET['first']; $last …

Member Avatar for nathenastle
0
162
Member Avatar for snefmoo

hi this is nathen,its better to use foreach for your form because it reduces the lines of code,you just abserve this,first you take $_POST['emailler']=$abc; foreach($abc as $val) { mail($val);} i think it will take every one into account and send the mails

Member Avatar for nathenastle
0
106

The End.