282 Posted Topics
hello... i am not sure..is there any chance to open my webpage in firefox. for example i am browsing mywebsite using IE. when ever i click link of the page then automatically it will open in firefox. this option is not for all pages only for specified page. thanks. | |
hello... i am doing mail concepts. in this i want to send a dynamic attachments with email. actually user gets email with attachment. this attachment will be dynamic. how to create dynamic attachment for email.i tried this. but no use. anybody help. i have 'attachments.txt'file with content [CODE]User Name: <<name>> … | |
hello, i have to display google images in my website. i would like to add google images in my wishlist simply drag the image into dropbox. it will add into my wishlist. for this i am using this code. this code is from [URL="http://demos.hacks.mozilla.org/openweb/DnD/"]mozilla[/URL] but it is not working in … | |
hello.... i am searching google images from my website. when ever i searched with keyword i am getting 500 internal server error. how to solve this problem? even i informed to webmaster, he said it is the programmer issue. we can't do anything for this. i searched a lot for … | |
hello... in my site i want to do search images from google and put a link to each image "upload this image". when i click this link automatically upload this image in to my site. i searched a lot after i found this script. but how to add link and … | |
hello..... i am using this function to create a folder in images folder. all uploaded images are store in newly created folder.it is working fine when run the code..it is creating images/newfoldername/uploadedimages.jpg in localhost. but in server same code is not working. it is creating images/uploadedimages.jpg and also creating null … | |
hello........ i want to do display all folder files using ajax. anybody tell me how to do this? | |
hello.... i want to search google images from my site. i got this code from google. but in this i want a link to each image to add images to my folder. how to do this? [CODE]<!-- copyright (c) 2009 Google inc. You are free to copy and use this … | |
Re: try this one [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=iso-8859-1" /> <title>Untitled Document</title> <script language="javascript"> function start() { window.document.formx.email.disabled = true; } onload = start; function chgtx1() { window.document.formx.email.disabled = !window.document.formx.blow.checked; } </script> </head> <body> <form name="formx" action="" method="post" > <table> <tr> … | |
hello.. i want to do a website wich is having search functionality. in this i have to do search flights,hotels etc.., some one suggested me to use kayak api for this. i searched every thing for this. but i didn't get any idea. anyone could suggest me how to use … | |
Re: [CODE]<? $total_width = 600; // base color $base_color = 'silver'; // add an array per field to show $graphs = array( array('label'=>'whatever', 'color'=>'red', 'amount'=>'28'), array('label'=>'more here', 'color'=>'green', 'amount'=>'36'), array('label'=>'just an example', 'color'=>'blue', 'amount'=>'82'), array('label'=>'even more', 'color'=>'orange', 'amount'=>'4'), ); for($x = 0; $x < count($graphs); $x++) { echo ' <table width="'.$total_width.'"> … | |
| |
Re: here is the code[CODE]<? $word = "a,b"; $word=explode(',',$word); echo $word[0]; echo "<br>"; /// a echo $word[1]; /// b ?>[/CODE] | |
hello.. i am using random query with pagination. but i am getting same results in second page also. Two things I need to make happen: 1. click on a result, you click the back button, results are in same order. 2. You get a paginated list of results in a … | |
Re: [QUOTE=;][/QUOTE] explain clearly | |
Re: go through this[CODE]<? ob_start(); extract($_REQUEST); extract($_POST); $searchtext=$_REQUEST['searchtext'];/////////////$_REQUEST['searchtext'] your search content if($searchtext=='') { $exists=1; } function search_highlight($needle, $replace, $haystack) { $haystack = eregi_replace($needle,$replace,$haystack); return $haystack; } //echo $searchtext;exit; ?><!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=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <? if($searchtext!='') { … | |
hello.... i was completed login website. but client said some times user account over riding. showing another user login information. so how it solve. i was checked all of my code but there is no chance to show another user information. is there any chanse to over come this problem … | |
hello i am working on google map,streetview. i am using below code.[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Google Map and Street View</title> <script src="http://maps.google.com/maps?file=api&v=2&key=INSERT_API_KEY_HERE" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var lat = -33.867141; var lng … | |
hello... i am getting problem with this regex....what is the exact format of this pattern only 000-000-0000. exact this pattern only not other U.S phone number format. why because i am using below javascript for this validation. [CODE]if(window.document.UserDetails.phone.value=="") { alert("Please Enter The Phone Number") window.document.UserDetails.phone.focus(); return false; } var pattern … | |
Re: [QUOTE=futhonguy;1055694]I tried to use the above code for an example and i came across a Deprecated on Call-time pass-by-reference for these following code: [CODE]array_map( 'stripslashes',&$_POST ); //Strips slashes array_map( 'mysql_real_escape_string',&$_POST ); //Escapes data to protect against sql injection[/CODE]. put below code..... [CODE]array_map( 'stripslashes',$_POST ); //Strips slashes array_map( 'mysql_real_escape_string',$_POST ); //Escapes … | |
Re: put like this in the html. i think it is the problem with charset. [CODE]<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />[/CODE] | |
hello... i have this array. $idratings[]=array($post->ID=>$caticons_ratings); [B]output:[/B] [CODE]Array ( [0] => Array ( [173] => 8 ) [1] => Array ( [170] => 9 ) [2] => Array ( [165] => 10 ) [3] => Array ( [161] => 6 ) [4] => Array ( [153] => 8 ) [5] … ![]() | |
Re: [QUOTE=ardav;915041]I've used one recently called Help Desk 1.0 by Linux Web Shop. The live chat module is awesome (for free). It also has a ticket system and a knowledge base builder (a complete support package). Unfortunately I can't remember from where I downloaded it (I think it was sourceforge, but … ![]() | |
hello... i am doing authors page. in this i want to display related authors of that site. in authors table author has a field author type. he can give more types by ',' separate. so i want to dispaly related authors who has matched his type. here i wrote my … | |
Re: use like this.[CODE]<input type="text" name="nic" size="30" class="attribute1" value="<?=$nic?>" />[/CODE] | |
Re: ok. see this code[CODE]if($username) { $select=mysql_query("select * from registration where username='$username'"); $count=mysql_num_rows($select); if($count>0) { echo "username already exists"; } else { //write insert query } }[/CODE] | |
Re: use explode() for this. explode "," and insert each tag into database | |
Re: [CODE]$num1=mysql_num_rows($result); [/CODE] | |
Re: look at this. copy this code and change as your need. pagination.php [CODE]<?php function Pages($tbl_name,$limit,$path) { $query = "SELECT COUNT(*) as num FROM $tbl_name"; $total_pages = mysql_fetch_array(mysql_query($query)); $total_pages = $total_pages[num]; $adjacents = "2"; $page = $_GET['page']; if($page) $start = ($page - 1) * $limit; else $start = 0; $sql = … | |
| |
![]() | |
Re: use strcmp() [CODE]<? echo strcmp(test,TEST);?><? echo strcmp(test,test);?>[/CODE] ![]() | |
Re: use explode() for it. count the size of that array . then looping for insert each tag separate [CODE]<?php // Example 1 $pizza = "piece1,piece2,piece3,piece4,piece5,piece6"; $pieces = explode(",",$pizza); $count=count($pieces); for($i=0;$i<$count;$i++) { echo $pieces[$i]; // piece1 //write insert query here. } exit; ?> [/CODE] | |
Re: check your database field names Forum,Image . is it correct or not. | |
Re: try like this[CODE]<? $i=0; while($row_books=mysql_fetch_array($books)) { if( $i<3) { ?> <a href="imagethumb.php?s=<?php echo $row_books['Image']; ?>"><img src="images/buttonname.gif" alt="<?php echo $row_books['Title']; ?>" width="72" height="19" border="0" /></a> <? $i++; } if($i==3) { echo "<tr>"; $i=0; } } ?>[/CODE] | |
Re: try this code. when you upload an image crope the image and store it. then you retrive that image. i am explaing below code.first you create partners_logs folder and in that create subfolder 250x150.[CODE] 1. <? 2. if(is_uploaded_file($_FILES["pimage"]["tmp_name"])!='') 3. { 4. //echo"file in";exit; 5. //echo"in ";exit; 6. $rand_variable1=rand(10000,100000); 7. if(is_uploaded_file($_FILES["pimage"]["tmp_name"])) … | |
Re: yaa..it is the way as vibhadevit said. if you want with in that page then you write select query above the insert query. for example in your form user name should be unique. then you write select query like this. if it is true then insert the value. [CODE] $select=mysql_query("select … | |
Re: [QUOTE=BlackNinja;1302495]That doesn't work either, it doesn't matter what value i try to put in it is just not getting saved in the session. i tried [code=php]$SESSION['pas']="Testing session saving";[/code] and it wont even display that.[/QUOTE] [CODE]$_SESSION['pas']="Testing session saving"; [/CODE] i think If you are using the latest version of WAMP or … | |
Re: use count of that array. and next looping | |
Re: [URL="http://www.marcofolio.net/webdesign/php_random_image_rotation.html"]http://www.marcofolio.net/webdesign/php_random_image_rotation.html[/URL] | |
fck editor image upload failing in my server. images are not uploading. but it is working in my localhost.....plz tell me what to do? | |
hello.. i have to do substraction of two php variables which is having datatype varchar. i am trying like this.[CODE] $a=5; $b=3; $c=$a-$b; [/CODE] but for float values [CODE] $a=3000.90; $b=2000; $c=$a-$b; [/CODE] out put is $1000.9. ok even i echo $a i am getting 3000.9 how to get two … | |
Re: [QUOTE=preetg;1153139]hey you solve my prob......................but the code written inside while loop is not executing......... can you help me......... only P print into text file.. $tabledata .= "p"; thanx if you will help me about this ..........[/QUOTE] you missed this while loop close bracket ')'. put this. [CODE]while ($attendance_data = mysql_fetch_assoc($attendance_resultset))[/CODE] | |
Re: i thing change date format here. i dont know it works. try once.[CODE] $("#datepick").datepicker({ dateFormat: 'yy-m-d' }); });[/CODE] ![]() | |
Re: [QUOTE=bimalnayak;1282412]Hi , I want to convert numbers into words. Can anyone please help me to do that or how can i implement it in PHP codes pls tell me that.[/QUOTE][URL="http://www.geekpedia.com/code28_Convert-a-number-from-digits-to-words.html"]http://www.geekpedia.com/code28_Convert-a-number-from-digits-to-words.html[/URL] | |
Re: [CODE]if($curnum == 0) { mysql_query("INSERT INTO users VALUES(`id`,'".$username."','".$password."','".$gender."'.".$byear.")") or die(mysql_error()); }[/CODE] put $id instead of id in query. but there is no need to put $id. it is not a manuall entry value. and next change ',' instead of '.' [CODE]'".$gender."'.".$byear."[/CODE]here. just leave it use like this. [CODE]if($curnum == 0) … |
The End.