Jump to content

Nandini

Members
  • Posts

    160
  • Joined

  • Last visited

    Never

Everything posted by Nandini

  1. Hi I want to open popup window in different ip that means i am in 192.168.1.116 php script is in 192.168.1.116 I have to put onlink like "popup" when user click that link the popup willbe open in user's ip address. Ex: user open my ip address 192.168.1.116 on his 192.168.1.138 and click popup link. popup will open in his 192.168.1.138 How can i do thta?
  2. Thant means i can't print '\ ' thantsy i am asking
  3. SELECT\ `membername`\ FROM\ `queue_member_table`\ WHERE\ `membername`=\'${AID}\' AND\ `queue_name`=\'${QUEUEDST}\' How can i print this
  4. Not begins with fromuser= i want to check what first line contains? that means it begins with fromuser= or fromdomain= etc. and same as what second line contains? and third line, till end of the line.
  5. Thanq very much zenag. Its working fine.
  6. this is not working. Your $sql. = something. this is out of query i think. y because $sql is already with in close braces
  7. ya my script is correct till display lines. But i want to check line wise. for example check 1st line if it is corect ot not. same as check second line if it is correct or not. same as 3,4,5 etc How can i do that
  8. hi I have a textarea in a form. In that user enters data like fromuser=xxxxxxx fromdomain=xxxxx.xxxxx.xxx canreinvite=no qualify=3000 nat=yes I want to check line by line and print that as it is. I dont know how many lines of data he enter. I have to check each line and print. That textarea value is stored into the database. I know how to display the whole data. here is my script. $rcount=count(explode("\n",$row['peer_details'])); $rdata=explode("\n",$row['peer_details']); $i=0; while($i<=$rcount) { echo rtrim($rdata[$i]); $i++; }
  9. Hi i want to display values from mysql table. Before display i want to check the conditions. like select * from astcdr where lastapp<>WaitExten and callednum<>$trunk; here $trunk is the trunk values from another table like select trunk from sip; Finally what i want to do is I want to display values from one table with, compare one table field with another table field. Can anyone send me the script. here is my script $sqlt=mysql_query("select * from sip"); while($rowr=mysql_fetch_array($sqlt)) { $t[]=$rowr['trunk']; } foreach($t as $v) { $where="where lastapp<>'WaitExten' and callednum<>$v"; } $sql=mysql_query("select * from astcdr $where"); while($row=mysql_fetch_array($sql)) { echo $row['accountcode']." ".$row['callednum']; echo "<br>"; }
  10. Thanx for ur reply. By using this also total page refreshing. But i want to refresh that iframe only.
  11. I am doing on register form. the register form contain one iframe . I want to display user count from my mysql table. So i want to refresh that iframe. But the total page was refreshing. But i want to refresh iframe only. hjere is my code <IFrame Src="frame.php" Scrolling=No Frameborder=0 Marginheight=0 Marginwidth=0 Width=120 Height=140> frame.php <? include "../../includes/admin_functions.php"; $sql=mysql_query("select * from users"); echo mysql_num_rows($sql); ?> <meta http-equiv="refresh" content=3"> what is the problem here. Or is there any ajax script to refresh iframe only. Help me out
  12. When file modified wecan get filetime by using filemtime. But when file add how can we get time.
  13. Hi I am displaying files from on directory. Everything working. But i want to display latest added records as first record (Last come first in order). Here is my script . <?php $path="/usr/local/netz/var/spool/netz/fax/"; if($path) { if(`ls -A $path`) { $i=1; $TrackDir=opendir($path); while ($file = readdir($TrackDir)) { if ($file == "." || $file == "..") { } elseif(preg_match('/\b.pdf\b/', $file)) { echo "<tr bgcolor='#acbdee'>"; echo "<td class='data' width='10%'>$i</td>"; echo "<td class='data' width='30%'>".$file."</td>"; echo '<td class="data" width="30%" align="center"><table border="0" width="50%"><tr><td align="right"><font face=\"Verdana, Arial, Helvetica, sans-serif\"><a href="fax_download.php?download_file='.$file.'" class="fax_links" title="Download"><img src="../images/download.gif" border="0"></a></font></td><td align="right"><a href="delete_fax.php?file='.$file.'" class="fax_links" title="Delete"><img src="../images/delete.gif" border="0"></a></td></tr></table></td>'; echo "<tr>"; $i++; } } closedir($TrackDir); } else { echo "<br><center><b>No records found</b></center>"; } } ?> Can anyone help me
  14. Ok this is my backend server problem. i will solve this problem by taking help of my administrator. Thanx for every cooperation.
  15. If i am using the long tags its working fine?
  16. Hi I have a mysql database table astaccount. In that there is a field named as accountcode. In database field accountcode values are 9001,9003,9000,58469. In those values i want minimum value. For this i am using MIN function. But it is showing 58469 is minimum and 9003 is maximum . But i want 58469 as maximum and 9000 is minimum. here is my code. <? $least=mysql_query("select MIN(accountcode) as num from astaccount"); $row=mysql_fetch_array($least); $lnumber=$row['num']; echo $lnumber; ?>
  17. Hey, its working fine thanx Daniel0
  18. Thanq very much Daniel0 I will try to solve this problem as per your suggetions.
  19. Hi I have a file named as "14-10-08-12-45-52". here 14=>Date 10=>Month 08=>year 12=>Hours 45=>Minutes 52=>Seconds I wanto display this file name as Tue Oct 14 12:45:52 PM 2008 i want to do this using php Can any one help me Thanq
  20. I got a command for change system time. that is date 092916002008 Here is 09 ----> MM 29 -----> DD 16 ------>HH (hours) 00 ------>mm(Minuts) 2008 ----> YYYY (year) Thanx for everyone help.
  21. Thanx for ur cooperation Mr. ranjuvs As you are saying my script is in my header part of my website. It will apply all pages. Until that working fine. But i want to system time when select timezone. How can i do that?
  22. Hi here is the total code. the following is my html form. <script type="text/javascript" src="clienthint.js"></script> <form> Select timezone: <select name="customers" onchange="showHint(this.value)"> <option value="America/Santiago">America/Santiago</option> <option value="Asia/Hong_Kong">Asia/Hong_Kong</option> <option value="Asia/Calcutta">Asia/Calcutta</option> </select> </form> </td><td> <div id="txtHint"><b> </b></div> clienthint.js // JavaScript Document var xmlHttp function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; } xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="get_time.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged() { if (xmlHttp.readyState==4) { document.getElementById("txtHint").innerHTML=xmlHttp.responseText; } }function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } get_time.php <?php header("Cache-Control: no-cache, must-revalidate"); // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); //get the q parameter from URL $q=$_GET["q"]; if ($q=="America/Santiago") { putenv("TZ=America/Santiago"); $time = date("g:i a"); echo $time; } if ($q=="Asia/Hong_Kong") { putenv("TZ=Asia/Hong_Kong"); $time = date("g:i a"); echo $time; $command="ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime"; ////this command is for change system time echo shell_exec($command); } if ($q=="Asia/Calcutta") { putenv("TZ=Asia/Calcutta"); $time = date("g:i a"); echo $time; $command="ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime"; echo shell_exec($command); } ?>
  23. Sorry 'change' in the place of 'same' sorry for the mistype.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.