282 Posted Topics

Member Avatar for willie-abei

use like clause in query . retrive all the information frm database which is related to searchcontent. there is no need to serch image.[CODE]$sql = mysql_query("SELECT * FROM tablename WHERE author_name LIKE 'searchcontent%'"); while ($row = mysql_fetch_row($sql)) { echo "$row[0] $row[1] $row[2] <br />"; } [/CODE]

Member Avatar for Lsmjudoka
0
186
Member Avatar for navi17

ok fine. when ever user bought a firstproduct it will store on database. then administrator assign discount percentage for that user. this percentage store in database with userid. next time when ever same user come to buy products then check percentage is available or not.

Member Avatar for navi17
0
2K
Member Avatar for Tenaciousmug

An IP address of the most commonly used IPV4 protocol is basically a 32-bit number. The INT data type would have the highest storage density for it. Depending of the form in which you have the address, you might need to convert it into na integer though. The disadvantage is …

Member Avatar for manzarr
0
584
Member Avatar for infosoft
Member Avatar for canadian_angel

check it once[URL="http://www.daniweb.com/forums/thread300444.html"]http://www.daniweb.com/forums/thread300444.html[/URL]

Member Avatar for muralibobby2015
0
167
Member Avatar for EverWebby

[URL="http://www.nsftools.com/misc/SearchAndHighlight.htm"]http://www.nsftools.com/misc/SearchAndHighlight.htm[/URL] [URL="http://evolt.org/node/33857"]http://evolt.org/node/33857[/URL]

Member Avatar for EverWebby
0
148
Member Avatar for HemantPHP

[CODE]RewriteEngine on RewriteCond %{HTTP_HOST} ^www.yoursitename.com [NC] rewritebase / RewriteRule ^$ index.php [L] RewriteRule ^index index.php [L] RewriteRule ^aboutus aboutus.php [L][/CODE]

Member Avatar for muralibobby2015
0
222
Member Avatar for kidanr

use this for image upload. create partners_logs folder with in that create croping image folder(265x150)[CODE] <? if(is_uploaded_file($_FILES["pimage"]["tmp_name"])!='') { //echo"file in";exit; //echo"in ";exit; $rand_variable1=rand(10000,100000); if(is_uploaded_file($_FILES["pimage"]["tmp_name"])) { if($hidden_image!="") { @unlink("partners_logs/".$hidden_image); @unlink("partners_logs/250x150/".$hidden_image); } $file_image13=$rand_variable1.$_FILES["pimage"]["name"]; move_uploaded_file($_FILES["pimage"]["tmp_name"], "partners_logs/".$file_image13); $Attachments3=$file_image13; } /************************************Resizing the image 80*60****************/ $path3="partners_logs"; $filetype3=$_FILES["pimage"]["type"]; $bgim_file_name = $path3."/".$Attachments3; $bgimage_attribs = getimagesize($bgim_file_name); if($filetype3=='image/gif') { $bgim_old …

Member Avatar for muralibobby2015
0
137
Member Avatar for muralibobby2015

hello i am doing png image cropping using this function. every thing is working fine. but whenever i was uploaded .png then changing the image background color into black. here is the code[CODE]$bgimage_attribs = getimagesize($bgim_file_name); if($filetype3=='image/gif') { $bgim_old = imagecreatefromgif($bgim_file_name); } else if(($filetype3=='image/pjpeg') || ($filetype3=='image/jpeg')) { $bgim_old = imagecreatefromjpeg($bgim_file_name); } …

Member Avatar for muralibobby2015
0
117
Member Avatar for faizabest

[URL="http://www.daniweb.com/forums/thread242634-3.html"]http://www.daniweb.com/forums/thread242634-3.html[/URL]

Member Avatar for muralibobby2015
0
42
Member Avatar for niths

try this[CODE]$sql= mysql_query("INSERT INTO assignwork (imageid,name,size,type,assignedto,assignedby) VALUES ('$imageid','$name','$size','$type','$assignedto','$_session[username]')");[/CODE]

Member Avatar for HemantPHP
0
89
Member Avatar for Awah Mohamed
Member Avatar for mel84

use .htaccess [CODE]Options +FollowSymlinks RewriteEngine on RewriteRule ^$ index.php [L] RewriteRule ^Index index.php [L] RewriteRule ^Example example.php [L] [/CODE]

Member Avatar for muralibobby2015
0
44
Member Avatar for Tracie-marie
Member Avatar for Tracie-marie
0
86
Member Avatar for demo80
Member Avatar for muralibobby2015
0
49
Member Avatar for muralibobby2015

some times i am getting this appache error. i dont know why it is comming? [CODE]Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience.[/CODE]tell me what to do?

Member Avatar for rajarajan2017
0
65
Member Avatar for waren

[CODE]<div style="padding-left:20px"> <div id="welcome">welcome</div> //* I want to view this when it logon. <? if($_session[userid]==''){ ?> <table id="logon" style="height: 165px;" border="0" cellspacing="0" cellpadding="0" width="794"> <tbody> <tr> <form name="logon"> <input type="submit" name="Submit" class="button" value="Log In" /> </form> </tr> </table> <? } ?> </div>[/CODE]

Member Avatar for steventaal
0
98
Member Avatar for muralibobby2015

hello... i am doing one concept.but i have no idea to do that concept. plz nybody give an idea for that.... actually there is a site which have the registered restaurents on that site at the same another side user registration is there. now user login then automatically display distinct …

Member Avatar for muralibobby2015
0
131
Member Avatar for muralibobby2015

hello.. i am trying to do select multiple options of dropdown box. when i am select each option then appear textbox for each option. how to do?

Member Avatar for muralibobby2015
0
129
Member Avatar for muralibobby2015

hello... i am working on wordpress now. i have one doubt please clarify..actually in my blog there is confirmation form. if user sends after filling that form. i want to display that messages in admin side. how to do?

0
90
Member Avatar for muralibobby2015

hello..... just now i saw "TranslateThis Button" which is the script for translate the webpage using javascript. it is more faster than google translation. is there any chance to display language flags(ex: only four flags) with out dropdown? please help me.check it here [URL="http://translateth.is/"]http://translateth.is/[/URL]

Member Avatar for Master Rattley
0
181
Member Avatar for umandajayo

it could be helpful to you.[CODE]<?php $states_array=array("Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshir","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Puerto Rico","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","Washington DC","West Virginia","Wisconsin","Wyoming"); $result_array=$states_array; $noofrows = 10; $noofcols = ( count($states_array)%5 == 0) ? count($states_array)/5 : ( count($states_array)/5 + 1); $tabledata = "<table >"; for ( $k = 0; $k < $noofrows; $k++ ) …

Member Avatar for vibhaJ
0
141
Member Avatar for kirtan_thakkar
Member Avatar for rajabhaskar525

[CODE]<?ob_start(); $dir = 'csvUpload'; $dp = opendir($dir) or die ('Fatal Error: '); while ($file = readdir($dp)) { if ((eregi('.csv',$file)) && (filemtime($dir."/".$file)) < (strtotime('yesterday'))) { //(filemtime($dir."/".$file))." ".strtotime("yesterday")."<br>"; $del=@unlink($dir."/".$file); } } ?>[/CODE] getting error like [CODE]Warning: opendir(csvUpload) [function.opendir]: failed to open dir: Invalid argument in C:\wamp\www\grabber\grabber\index.php on line 28 Fatal Error: [/CODE]

Member Avatar for muralibobby2015
0
184
Member Avatar for muralibobby2015

hello.. i want to do custom cursor in particular place in my webpage. i have number of images when mouseover on images then cursor image change as a custom cursor. how to do ?

Member Avatar for muralibobby2015
0
91
Member Avatar for muralibobby2015

hello.. i am doing group shopping cart. in this every product have group length. for suppose group length is 10 for abc product. then 8 members are registered for that product with there credit card details. when ever group length is reached to 10( group lenth means buyers of that …

Member Avatar for muralibobby2015
0
95
Member Avatar for muralibobby2015

hello... i am doing private chat concept. i want to alert beep sound when new user comes in chat console. how to do? i am displaying every thing when new user comes in user details will comes at admin side. but at the same i want to alert beep sound …

Member Avatar for muralibobby2015
0
78
Member Avatar for tarek71

[QUOTE=tarek71;1066798]Is there a way to attach multiple files to email using php?[/QUOTE] yes. Enjoy and send mails with any number of attachments without any class/library.[CODE]<?php // array with filenames to be sent as attachment $files = array("file_1.ext","file_2.ext","file_3.ext",......); // email fields: to, from, subject, and so on $to = "[email protected]"; $from …

Member Avatar for rajarajan2017
0
246
Member Avatar for muralibobby2015

hello.... i am fully confussing with this problem. i have to display sorting order from my table. i have table like this. [CODE]auto_id,firstname,passportno(int).[/CODE] now i am displaying [CODE]order by passportno[/CODE] but here i saw very funny issue. i have passport nos like this.....[CODE]077,100,099,088,101,1000.[/CODE] now after executing the query [CODE]"SELECT * …

Member Avatar for EvolutionFallen
0
95
Member Avatar for muralibobby2015

hello, i want to do small mail concept. what it zzzzz means admin sends registration form to user mails. in that mail user can register their account . my doubt is is there any chance to apply validations in mail. below is my script.[CODE]<? ob_start(); extract($_REQUEST); include("includes/class.phpmailer.php"); if($_POST) { ///////////////////////////////////////////////////////////////////////////////////////////// …

Member Avatar for pritaeas
0
219
Member Avatar for muralibobby2015

hello.. i am using facebook sharer for share products which is in my website into facebook. i tried all the ways to do this..but i don't know where is the problem. when i am clicking the facebook icon in mysite then it redirecting to facebook and not displaying product name, …

0
82
Member Avatar for muralibobby2015

hello.... i want to diplay countrys vertically using <ul>.forexample there is 10 countrys. i want to dispaly first five in first column and next in secound column. how to do this dynamically. [CODE] [U]COLUMN1 [/U] [U] COLUMN2[/U] <ul> ARGENTINA <li>state1</li> <li>state2</li> <li>state3</li> </ul> <ul> AUSTRALIA <li>state1</li> <li>state2</li> <li>state3</li> </ul> <ul> …

Member Avatar for almostbob
0
68
Member Avatar for muralibobby2015

hello.... my current url is [CODE] categories_name.php?cname=at&t rewritten url like this. carriers/at&t this is htaccess url. RewriteRule ^carriers/(.*)$ categories_name.php?cname=$1 [L][/CODE] above url is working for all like [CODE]categories_name.php?cname=all-tel[/CODE] when variable has '&' symbol then problem occuring. so how to write htaccess url?

Member Avatar for SikoSoft
0
97
Member Avatar for mayuri_desh

look at this url [URL="http://sourceforge.net/projects/sigmagrid/"]http://sourceforge.net/projects/sigmagrid/[/URL]

Member Avatar for muralibobby2015
0
61
Member Avatar for veledrom

just use this. create productimage folder.and create cropimages folder in productimage folder. change crop width,height as your like. [CODE] if(is_uploaded_file($_FILES["pimage"]["tmp_name"])) { $img_name=$_FILES["pimage"]["name"]; $randomizer = rand(0000, 9999); $file_name = $randomizer.$img_name; move_uploaded_file($_FILES["pimage"]["tmp_name"], "productimage/" . $file_name); //set productimage folder /************************************Resizing the image 128*45****************/ $path3="productimage"; $filetype3=$_FILES["pimage"]["type"]; $bgim_file_name = $path3."/".$file_name; $bgimage_attribs = getimagesize($bgim_file_name); if($filetype3=='image/gif') { …

Member Avatar for muralibobby2015
0
94
Member Avatar for muralibobby2015

hello....... how to do cronjob in windows. i am using wamp server. give any suggestions.

Member Avatar for diafol
0
807
Member Avatar for muralibobby2015

hello... i am using '-'separater in htaccess. here is my code [CODE] htaccess url:http://rahul/cellbatts/featured products-<?=$fetchhotproducts[itemno]?> RewriteRule ^([^-]*)-([a-zA-Z0-9/_-]+[^.]+)$ product_info.php?catname=$1&itemno=$2 [NC] above is working for this example http://rahul/cellbatts/product_info.php?catname=featured products&&itemno=HA-MO-V9 but my item number is some types like this http://rahul/cellbatts/product_info.php?catname=featured products&&itemno=HA-MO-VK-KL/1 for this the above htaccess url is not working? redirecting to correct …

Member Avatar for SikoSoft
0
73
Member Avatar for muralibobby2015

hello...i am using wamp server. i donot know how to rewrite url. i dont have a bit of knowledge to use .htaccess. please tell me how to write. first of all can we change any thing in apache2 folder which is server? and next i was directly placed .htaccess.txt file …

Member Avatar for muralibobby2015
0
161
Member Avatar for RisTar

[CODE] <form method="POST" action="functions/process_payment.php" > [/CODE] use like this. why you are using form methode post in capitals. [CODE]method="post"[/CODE]

Member Avatar for almostbob
0
216
Member Avatar for muralibobby2015

hello.. i have this url.. [CODE]http://localhost/flowerstore/flowerdep.php?cat=ROSE[/CODE] how to rewrite like this. [CODE]http://localhost/flowerstore/ROSE[/CODE] i am trying lot...but no use...any body help

Member Avatar for muralibobby2015
0
74
Member Avatar for niths

[QUOTE=niths;1224382]hi all, i am having a login page.so that if role==0 it moves to one page and if role==1 moves to another page,if role==2 it moves to some other page. In this i need to add another condition if status is active(1) so i had done that but i am …

Member Avatar for somedude3488
0
176
Member Avatar for rabzzz

[QUOTE=rabzzz;1224233]hi im using combobox and retriving values in it from database , now what i wan is to get the selected value of combobox and send it in my php function....im unable to do this need your help thanx[/QUOTE] show your code.

Member Avatar for SKANK!!!!!
0
91
Member Avatar for mrjoli021

[QUOTE=mrjoli021;1223922]so basically someithin like this, but when i put the "." in front of the <? it still doesnt work? [code] echo' <h2>Add Contact</h2> <form name="form1" action=".<?=$_SERVER['PHP_SELF'];?>?mode=added" method="post">'; [/code][/QUOTE] why you are using still php tag in echo remove first...write like this. [CODE]<form name="form1" action=".$_SERVER['PHP_SELF']."?mode=added" method="post">';[/CODE]

Member Avatar for SKANK!!!!!
0
211
Member Avatar for muralibobby2015

hello.... it could be interesting.......my frnd asked a question to me...on if else condition. for suppose... [ICODE] <?php if(Condition) { echo "hello"; } else { echo "world"; } [/ICODE] it is the question. she asked me how to write condition for print hello world.

Member Avatar for mrnutty
0
86
Member Avatar for muralibobby2015

hello.. i am clicking url which redirects to my webpage. for example user is not login to that site then it redirects to login page. up to there its fine. after user login how can i redirect to requested page?

Member Avatar for Girish24041984
0
250
Member Avatar for muralibobby2015

hello...i am using this script. but when ever i am posting images then uploading only one image. this is my code. [ICODE]<? ob_start(); extract($_POST); extract($_REQUEST); if($_POST) { echo $_FILES["file_1"]["name"];exit; if(is_uploaded_file($_FILES["file_1"]["tmp_name"])!='') { $rand_variable1=rand(10000,100000); $node_online_name1=$rand_variable1.$_FILES["file_1"]["name"]; //echo $node_online_name1;exit; if(is_uploaded_file($_FILES["file_1"]["tmp_name"])) { move_uploaded_file($_FILES["file_1"]["tmp_name"], "attachments/" . $node_online_name1); $Attachments1=$node_online_name1; echo $Attachments1;exit; } } } ?> <html> <head> …

0
59
Member Avatar for muralibobby2015

hello... i am doing login verification. there is tabs in index page thats why i am choosen this. actually after entering the values of email and password how to check that values are in database or not using javascript. and i will show message in alert box. this is my …

Member Avatar for saiprem
0
4K
Member Avatar for muralibobby2015

hello... i am doing registration form .in this without submit form can i get alert box....email already exists using javascript. can any body tell me. thnks.

Member Avatar for rajarajan2017
0
820
Member Avatar for muralibobby2015

hello, i am doing email concept. in this user can set the automatic email option i mean when user registered there account then he was set receive emails at this time on this day... how to set this...any suggestions plz...

Member Avatar for urtrivedi
0
100
Member Avatar for muralibobby2015

hello, i have to share products in facebook from my site. i used ths code for share. [CODE]<a href="http://www.facebook.com/sharer.php?u=http://<?=$_SERVER['HTTP_HOST']?>/blockbuys/details.php?route=product/product&product_id=<?=$fetpro['auto_id']?>&amp;t=<?=$fetpro['productname']?>"><img src="images/facebook.jpg" /></a>[/CODE] but product image is not displaying in facebbook. how to do this task? thnks.

Member Avatar for muralibobby2015
0
768

The End.