Jump to content

shivani.shm

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

Everything posted by shivani.shm

  1. hi I have a array as follows [20081219] => Array ( [1345002] => Array ( [144] => 20081219 ) [1000001] => Array ( [140] => 20081219 ) ) and i wnt the output after sorting as [20081219] => Array ( [1000001] => Array ( [140] => 20081219 ) [1345002] => Array ( [144] => 20081219 ) ) how can i do tht plz help thanks in advance
  2. I am trying to insert a record in a table and got this error 139 from storage engine. Can anyone comment on this to resolve this issue.
  3. oh ya thks a lot tht was the problem............u r a genious
  4. i have done session_start() at the start of the script and in the login page i m geting the session variables and also geting the session id in the next page but print_r($_SESSION) returns empty in the next page
  5. hi all i m geting a strange problem ...my session variables are lost when redirecting the page and it has come all of a sudden as the same code was wrking fine ... and i m unable to retify the problem.....i m doing somethg like this session_start(); $_SESSION['USERNAME'] = $sUsername; $_SESSION['EMPLOYEEID'] = $aEmployee["employee_id"]; $_SESSION['POSTID'] = $aEmployee["post_id"]; $_SESSION['EMPLOYEENAME'] = $aEmployee["person_name_last"].", ".$aEmployee["person_name_first"]." ".$aEmployee["person_name_others"]; $_SESSION['EMPDIVISION'] = $aEmployee["company_division_id"]; when i try to print this array in another page i m geting the array empty can anyone plz tell me the why this is happening ....i m using firefox browser.....does any seting of firefox has to be changed......plz suggest thanks in advance
  6. It will great help if someone could explain wht are design patterns in php
  7. i have been using AJAX but i m not using any form tag in html is the form tag required....or wht are the disadvantage of not using form tag.....
  8. I have a html page but i m not using any form tag wht are the disadvantage of not using the form tag.... i m using AJAX to refer the php file and interact with the database.....
  9. thks for the reply i thk tht clears my doubt.........
  10. I need some help in PHP frameworks .....how and where they are used...
  11. which one is better GET or POST
  12. thanks your code is wrking ... but is this the only way... is there any build in function which will directly output me 10.66 if i give 10.667 as the input... i m not interested in rounding the number just wnt it upto two decimal places.... thanks in advance....
  13. I have a number as $num = '10.667' and i wnt the output as 10.66 . I tried using sprintf it gives me the output as 10.67 can anyone tell me how to do it.. thanks in advance.....
  14. hi I have created a table structure and used engine type as Innodb but the defaukt is taken as myisam and bcoz of tht i can't use referential integrity... My mysql version is 4.0.15. plz help out thanks in advance...
  15. Is there a limit to pass variables through GET method.
  16. I have Preprinted Paper similar to a invoice...on which i have to print the details like the products purchased. can i get some idea how to do it. thanks in advance.
  17. i have a problem when running my transaction...it gives a lock timeout.....
  18. just try this $player_id=$_POST["id"]; with your id in double quotes.
  19. if your values are in a array use asort(your array in here) and sort the array and the last one will be your max value just use print_r the array and chk the results...
  20. check this out u can't assign echo to some variable <?php $page = basename($_SERVER['QUERY_STRING']); include('includes/header.php'); $content = ""; $content .= "<table width='1024' border='0' cellspacing='0' cellpadding='0'><tr><td width='150'>"; $content .= include('includes/nav.php'); $content .= "</td><td width='12'> </td><td width='700'>"; if(!$page){ $content .= include('pages/main.php'); } else { if (file_exists('pages/'.$page.'.php')){ $content .= include('pages/'.$page.'.php'); } else { $content .= 'This page does not exist!'; } } $content .="</td><td width='162'> </td></tr></table>"; print $content; include('includes/footer.php'); ?>
  21. strlen($_POST[filedname] == 0) thn its empty otherwise not
×
×
  • 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.