Jump to content

vijay

Members
  • Posts

    323
  • Joined

  • Last visited

Posts posted by vijay

  1. Hi...yea sure.. and in phpclass.org many readymade paging is available you can go 4 that..refere the following code.. you will ge the things..here I have simple code...

    for ($i=1;$i<=32;$i++){	$cnt[$i]=$i; }// consider $cnt is a result set frm ur db$total=count($cnt);$limit=5;if(is_numeric($_REQUEST['start']) && $_REQUEST['start'] <= $total){	$start=$_REQUEST['start'];}else {	$start=1;}if($total - $start < $limit){	$start= $start - ($total % $limit) -1;}$end = $start + $limit;if($start > $limit)	$prev=$start-$limit;	echo "<br/>";echo "<a href='?start=$prev'>Prev.</a> ";	for($i=$start;$i < $end;$i++)		echo $cnt[$i]."	";if($next <= $total)	echo "<a href='?start=$end'>Next</a>";	

  2. Hi.. Please first try to look in my code read is userdefined function... Its using.. $fp=fopen('php://stdin', 'r'); $input=fgets($fp, $len); and Its also scanning first input whatever it is.. but its stop scanning after then.. So.. I want solution for that.. hope this'll make sence.. Regards, Vijay

  3. Hi.. This CLI example.. It will scan the first input and print hello "name" also.. but not the second one... Please try to find solution.. Thanks in advance Code of Application:

    <?php 	function read($len = 255) { 	    $fp=fopen('php://stdin', 'r'); 	    $input=fgets($fp, $len); 	    fclose($fp); 	    return str_replace(array("\r", "\n"), array('', ''), $input); 	    //return $input;	} 	echo("Whats your name? "); 	$name = read(); 	echo("Hello $name");		echo("\nWhats your last name? "); 	$last_name = read(); 	echo("\nHello $last_name");	?>

    Regards, Vijay

  4. Hi.. First try to look @ ur page source code by view source There is no <td>,<tr> tag completing.. inner table should be in outer table's td try to maintain this.. you will get the things at proper place.. Regards, Vijay

  5. Hi.. use following type of logic and settimeout..<html><head><script type="text/javascript">function alertdelay5sec(){ alert("Hi");}setTimeout("alertdelay5sec()",5000)</script></head><body><p>This code will alert hi after 5 sec..</p></body></html>

  6. Hi...create following file with given code:and then try to run frame.html u will get the things...-----------------------------------------------filename: frame.html-----------------------------------------------<html><frameset cols="20%,80%"><frame src="frame1.html"><frame src="frame2.html" name="showframe"></frameset><noframes></noframes></html>-----------------------------------------------filename: frame1.html-----------------------------------------------<!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><ul> <li><a href="link1.html" target="showframe">link1</a></li> <li><a href="link2.html" target="showframe">link2</a></li> <li><a href="link3.html" target="showframe">link3</a></li></ul></body></html>-----------------------------------------------filename: frame2.html-----------------------------------------------<!-- This is blank here we put the targe page from left link--->-----------------------------------------------filename: link1.html-----------------------------------------------This is content for link1-----------------------------------------------filename: link2.html-----------------------------------------------This is content for link2-----------------------------------------------filename: link3.html-----------------------------------------------This is content for link3Regards,Vijay

  7. Hi.. For that you have to refresh the page with that id on onchange ivent of Province..(with the help of javascript) from that you can load Distrist relatively Province_ID.. OR You can go with the AJAX at the time of onchange event that will go to another php page with Province_ID that will generate (echo) combo box for Distrist relatively Province_ID.. Regards, Vijay

  8. Hi.. Open phpmyadmin and select any db then select any table then select sql: that will open sql query textbox area.. under that there is small link having text: "Insert data from a text file into the table " Click this you will get it.. Regards, Vijay

  9. Hi.. for that you have to set smtp setting by ini_set('SMTP','smtp_server'); smtp_server: it is the smtp server which will provide mail transfer service.. suppose this will help you.. Regards, Vijay

  10. Hi.. use following query: suppose this will help you.. $q = "select sum(in) as tin, sum(out) as tout from traffic where listing_id = ".$row['id']. " and date + interval ".$settings['traffic_count_days']. " day > ".now(); Regards, Vijay

  11. Hi.. change ur query following.. $qry="SELECT * FROM Profile WHERE Domain = '".$strdomain."'"; $q2 = mysql_query($qry); $q3 = mysql_fetch_object($q2); suppose this will help u..Regards,Vijay

  12. Hi...I have done those things and its working perfactly.. But this is manual process that needs to be done on all systems individually. We wanted a process which can be implemented without any customised settings on inividual browsers.. So.. Is it possible..?Regards,Thanks in advanceVijay

  13. Hi.... Here is code for U... try this and try to see page preview and try to print the page... What will u get tell me..Thanks in advance ...Vijay---------------------------------------------------------------------------------------------------<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><meta name="keywords" content=""/><meta name="description" content=""/><title>my test page</title><style type="text/css">.table_milestone_marg { padding-bottom: 20px; margin-top: 10px; margin-bottom: 10px;}.product_type { font: bold 14px "Century Gothic"; color: #003d7d; padding-left: 5px; }.weekperiod { font: bold 10px/15px Arial, Helvetica, sans-serif; color: #000000; text-align: center;}.table_menu_margin { margin-top: 0px; margin-bottom: 5px;}.product { font: 13px Arial, Helvetica, sans-serif; color: #333333; padding-left: 5px;}.amount { font: normal 13px "Century Gothic"; color: #333333; text-align:center; }#tr { padding-top: 5px;}.nav_dropdown { font: 10px Arial, Helvetica, sans-serif; color: #000066; text-align: left; margin-top: 3px; }html, body, #wrapper { height:100%; margin: 0 auto; padding: 0; border: none; left: 10%; right: 10%;} #wrapper2 { height:100%; margin: 0 auto; padding: 0; border: none; left: 10%; right: 10%;}body { margin-left: 0px; margin-top: 10px; margin-right: 0px; margin-bottom: 0px;}.lightrow{ background-color:#F2F2F2;}.darkrow{ background-color:#CAD9F0;}.yellowrow { background-color:#FFDD55;}.whiterow{ background-color:#FFFFFF;}</style></head><body onLoad="if(typeof(pageLoad) == 'function') pageLoad();" ><table width="600" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#C3C3C3" id="tr"> <thead> <tr align="center" > <td width="28%" align="left" class="product_type">Main Category </td> <td width="12%"> </td> <td width="12%"> </td> <td width="12%"> </td> <td width="12%"> </td> <td width="12%"> </td> <td width="12%"> </td> </tr> <tr class="lightrow"> <td width="28%" align="left" class="product">Sub Cat1 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $16.80 </td> <td align="right" width="12%" class="amount"> $12.99 </td> </tr> <tr class="darkrow"> <td width="28%" align="left" class="product">Sub Cat2 </td> <td align="right" width="12%" class="amount"> $29.82 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $34.80 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $17.80 </td> <td align="right" width="12%" class="amount"> $29.94 </td> </tr> <tr class="lightrow"> <td width="28%" align="left" class="product">Sub Cat3 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $29.98 </td> <td align="right" width="12%" class="amount"> $98.55 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $39.95 </td> <td align="right" width="12%" class="amount"> $123.95 </td> </tr> <tr class="darkrow"> <td width="28%" align="left" class="product">Sub Cat4 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $149.70 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> </tr> <tr class="lightrow"> <td width="28%" align="left" class="product">Sub Cat5 </td> <td align="right" width="12%" class="amount"> $25.95 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $29.90 </td> <td align="right" width="12%" class="amount"> $0.00 </td> </tr> <tr class="darkrow"> <td width="28%" align="left" class="product">Sub Cat6 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> </tr> <tr class="lightrow"> <td width="28%" align="left" class="product">Sub Cat7 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $52.00 </td> <td align="right" width="12%" class="amount"> $41.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> </tr> <tr class="darkrow"> <td width="28%" align="left" class="product">Sub Cat8 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> <td align="right" width="12%" class="amount"> $0.00 </td> </tr> <tr align="left" class="mainmenu"> <td class="product">Sub Cat9</td> <td class="amount"><strong>$55.77</strong></td> <td class="amount"><strong>$29.98</strong></td> <td class="amount"><strong>$283.05</strong></td> <td class="amount"><strong>$52.00</strong></td> <td class="amount"><strong>$145.45</strong></td> <td class="amount"><strong>$166.88</strong></td> </tr> <tr align="left" class="yellowrow"> <td align="left" class="product_type">Total Sales</td> <td class="amount"><strong>$55.77</strong></td> <td class="amount"><strong>$29.98</strong></td> <td class="amount"><strong>$283.05</strong></td> <td class="amount"><strong>$52.00</strong></td> <td class="amount"><strong>$145.45</strong></td> <td class="amount"><strong>$166.88</strong></td> </tr></table></body></html>

  14. Hi..For that u can use editor whisch support facility of stripping html tag.for stripping html tags u can go for editplus software in that openspecific file and strip html tag in one of the menu.. short cut:(ctrl+shift+p)or another option you have to program and make regular expression for thatthat will strip this type of tag...suppose this will help U..Regards,Vijay

  15. Hi.. Thats depends on loginc of array_rand()instead of that you can make ur own user define function..or array_rand($arr,2) so U'll get probably that..Suppose this will help U..Regards,Vijay

×
×
  • Create New...