rashmi_k28
Members-
Posts
151 -
Joined
-
Last visited
Everything posted by rashmi_k28
-
abc=1 nel='122,100549' est="off" ints='mor origin dive for bofa ers' abc=['" ]?(.*?)['"] ints=['" ]?(.*?)['"] here result of first regex is "1 nel". How to get the result as 1. Expectng result should be: abc = 1 nel=122,100549 est=off ints=mor origin dive for bofa ers abc, nel and est and ints can be hardcoded in the regex. Please tell me how to get the result in the above format.
-
Thanks for the query. This works. How to get the count of a.cid where KidCount >=1 SELECT a.cid, count(kid) as KidCount FROM c_table a INNER JOIN g_table b ON a.cid = b.cid INNER JOIN a_table c ON b.gid = c.gid INNER JOIN k_table d ON c.aid = d.aid GROUP BY a.cid HAVING KidCount > 1
-
[SOLVED] Uploading images from a form to a sql database! help
rashmi_k28 replied to xx_princess_xx's topic in PHP Coding Help
Hope this helps http://www.wellho.net/resources/ex.php4?item=h113/pic_alog.php4 -
In g_table contains gid,cid, a_table contains aid,gid k_table contains kid,aid
-
Hi, Here is the queries below. How to join all the tables into one single query select cid from c_table limit 1; select * from g_table where cid='4'; select * from a_table where gid='43'; select count(*) from k_table where aid='48'; I have to remove limit from c_table, I have to fetch all the cid's from c_table where count(*) from k_table is greater than 1
-
What is the advantage of curl. We can use HTTP request in php to get the status code. How curl is advantageous than simple php application
-
specialise1,specialise2,specialise3 should be a field name
-
Thanks for the quick reply. How to pass different variables from different functions to get the number $sum1 = get_number($number); $bnum=get_number($split_date[0]);
-
Hi, How to sum the numbers in string. For example: $number = 58; I have to add the 5+8 which is equal to 13. And I have to add further and get the value 4. How can I do this
-
Hi, how to pass only 3rd argument from command line and first two argument should be empty. php filename.php --- ---- 3rd argument
-
foreach($names as $name){ foreach($head as $heads){ echo "<td class=\"run\">".$details[$heads][$name]['R']."</td>"; } } How to display the array $details[$heads][$name]['R'] 3 per page.
-
But all the mysql queries is wriiten in the separate function and called in the page. So offset and limit cannot be used. I have to find some way how to display the 3 names in single page
-
$names is the array. foreach($names as $name){ echo "<td colspan=\"3\"><div align=\"center\" class=\"tduser\">$name</div></td>"; } In the above code I have to display only 3 names per page. When Next link of pagination is clicked, next 3 names should be displayed. At present all the names are displayed in the same page. So only 3 names should be displayed
-
$rowsperpage = 3; // find out total pages $totalpages = ceil($cnt / $rowsperpage); //Pagination if (isset($_GET['currentpage']) && is_numeric($_GET['currentpage'])) { // cast var as int $currentpage = (int) $_GET['currentpage']; } else { $currentpage = 1; } // end if // if current page is greater than total pages... if ($currentpage > $totalpages) { // set current page to last page $currentpage = $totalpages; } // end if // if current page is less than first page... if ($currentpage < 1) { // set current page to first page $currentpage = 1; } // end if // the offset of the list, based on current page $offset = ($currentpage - 1) * $rowsperpage; if ($currentpage > 1) { // show << link to go back to page 1 echo " <a href='{$_SERVER['PHP_SELF']}?currentpage=1'>First</a> "; // get previous page num $prevpage = $currentpage - 1; // show < link to go back to 1 page echo " <a href='{$_SERVER['PHP_SELF']}?currentpage=$prevpage'>Previous</a> "; } // end if else { echo "First Previous"; } echo " <a href='{$_SERVER['PHP_SELF']}?currentpage=$x'>$x</a> "; // if not on last page, show forward and last page links if ($currentpage != $totalpages) { // get next page $nextpage = $currentpage + 1; echo " <a href='{$_SERVER['PHP_SELF']}?currentpage=$nextpage'>Next</a> "; echo " <a href='{$_SERVER['PHP_SELF']}?currentpage=$totalpages'>Last</a> "; }else { echo "Next Last"; } The pagination code is working and how to display names 3 per page Here how to display 3 names per page. foreach($names as $name){ echo "<td colspan=\"3\"><div align=\"center\" class=\"tduser\">$name</div></td>"; }
-
For the circular radar graph can anyone tell me why the quadrants are initilalised to $quad = array(1,1,0,0,0,0,1,1); there are 8 parameters and each parameter is into 45deg. So the quad has 8 values.
-
how to call the file a1.php when clicked on A1 and in the same page below the </ul> <li><a href="#" onmouseover="javascript:showsubmenu(4)">VIEW</a></li> <ul id="s4"> <li><a href="#">A3</a></li> <li><a href="#">A2</a></li> <li><a href="#">A1</a></li> </ul> </div> // here I have to include the file a1.php when clicked on A1.
-
Hi, How to hide the sub menu unless onmouseover is chosen. By default it shows the grey image and submenu of first option. How to avoid it <style> ul, li{border:0; padding:0; margin:0; list-style:none;} /* ----------- Navigation ----------- */ #top-navigation{ background:url(./ajpg); width:auto; height:58px; margin:0 auto; } #navigation{ background:url(img/nav-bg.gif) repeat-x; height:32px; margin:0 auto; width:auto; } #navigation ul{ height:32px; line-height:32px; } #navigation ul li{ display:inline; } #navigation ul li a, #navigation ul li a:visited { background:url(img/line-a.gif) right no-repeat; padding:0 20px; display:block; text-decoration:none; float:right; color:#4261df; font-weight:bold; text-shadow:#ffffff 2px 2px 2px; } #navigation ul li a:hover { color: #1532a5; } /* ----------- Sub Menu ----------- */ #sublinks{ width:auto; margin:0 auto; background:#888888 url(img/sublink.gif); height:30px; font-size:11px; } #sublinks ul{ height:32px; line-height:31px; } #sublinks ul li{ display:inline; } #sublinks ul li a, #sublinks ul li a:visited { padding:0 20px; display:block; text-decoration:none; float:right; color:#FFFFFF; } #sublinks ul li a:hover { text-decoration:underline; } /* ----------- Hide Sub menu ----------- */ #s2, #s3{display:none;} </style> <script type="text/javascript"> function showsubmenu(id){ submenu = document.getElementById('s'+id); for(i=1;i<=4;i++){ if(i==id){ submenu.style.display="block"; } else { document.getElementById('s'+i).style.display="none"; } } } </script> <div id="top-navigation"> <!-- Something in the header here --> </div> <!-- Main Menu --> <div id="navigation"> <ul id="mymenu"> <li><a href="#" onmouseover="javascript:showsubmenu(1)">TAB</a></li> <li><a href="#" onmouseover="javascript:showsubmenu(2)">TAB1</a></li> <li><a href="#" onmouseover="javascript:showsubmenu(3)">TAB2</a></li> <li><a href="#" onmouseover="javascript:showsubmenu(4)">TAB3</a></li> </ul> </div> <!-- SUB MENU --> <div id="sublinks"> <ul id="s1"> <li><a href="#">subtab1</a></li> <li><a href="#">subtab2</a></li> <li><a href="#">subtab3</a></li> </ul> <ul id="s2"> <li><a href="#">subtab1</a></li> </ul> <ul id="s3"> <li><a href="#">subtab</a></li> </ul> <ul id="s4"> <li><a href="#">subtab</a></li> </ul> </div> [attachment deleted by admin]
-
$i=0; foreach($params as $p){ $lineplot.$i = new LinePlot($values[$p]); $graph->Add($lineplot.$i); } I am getting an error as Object of class LinePlot could not be converted to string Based on the values in the array $param, I have to create a class. Suppose if $param has two values like cpu,mem $lineplot1=new LinePlot($ydata1); $lineplot2=new LinePlot($ydata2); How can i do this in a loop based on the values of $param array
-
How to select count(field) from table1; select count(field) from table2; How to get count(*) from table1 and also from table2 from a single query
-
$checklist=serialize($_GET['check_list']); echo "<img src=\"./linegraph.php?v1=".$checklist."&start=$start_dt&end=$end_dt\">"; When I call in linegraph.php as $ckecklist=$_GET['v1']; $param=unserialize($ckecklist); Please can you help me what is wrong in the Code: echo "<img src=\"./linegraph.php?v1=".$checklist."&start=$start_dt&end=$end_dt\">"; The image is not displayed when passing a query string.
-
<HTML> <HEAD> <TITLE>OnClick alert message</TITLE> </SCRIPT> </HEAD> <BODY> <CENTER> <A HREF="" onclick="alert("Here is where you write what you want it to say")">Click Here!</A> </CENTER> </BODY> </HTML>
-
The parent form has a session and when clicked on the submit a small pop up window opens. Does the pop-up window will also have the sessions?
-
foreach($users as $user){ $usr=explode("@",$user); echo "<tr>"; echo "<td width=\"14%\" align=\"center\" bgcolor=$color>$usr[0]</td>"; } How to add the onmouseover() when on mouse over $usr[0] which displys the complete $user. The code which I found on google displays the first $user to all the $usr[0]
-
How to get the dialog as we get in Mozilla for IE. I ahve attached the image below [attachment deleted by admin]
-
header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Type: application/msword");