Jump to content

rashmi_k28

Members
  • Posts

    151
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

rashmi_k28's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. 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.
  2. 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
  3. Hope this helps http://www.wellho.net/resources/ex.php4?item=h113/pic_alog.php4
  4. In g_table contains gid,cid, a_table contains aid,gid k_table contains kid,aid
  5. 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
  6. 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
  7. specialise1,specialise2,specialise3 should be a field name
  8. 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]);
  9. 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
  10. Hi, how to pass only 3rd argument from command line and first two argument should be empty. php filename.php --- ---- 3rd argument
  11. 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.
  12. 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
  13. $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
  14. $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>"; }
  15. 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.
×
×
  • 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.