Jump to content

jitesh

Members
  • Posts

    807
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

jitesh's Achievements

Member

Member (2/5)

0

Reputation

  1. $var = 90; // mins $str = floor($var/60)." hours ".($var%60)." mins";
  2. profiltekst, alder, `by` , mandag, tirsdag, use back tick (`) for database name, table name and field name
  3. Onsubmit event disable textboxes which you do not want to submit using JS. Disabled fields never posted. Like function onevent(){ document.getElementById('textbox1').disabled = true; }
  4. If you have any common file. like as DB connection or Config file which is included in all files Then you can metion. extract($_REQUEST); in first line. This is just temporaly solution.
  5. Yes session_start() creates a session or resumes the current one based on the current session id that's being passed via a request, such as GET, POST, or a cookie.
  6. function print($print) { print $print . "<br>"; }
  7. SELECT * FROM `authors` WHERE `authorlast`IN ('{$_POST['authorlast1']}','{$_POST['authorlast2']}','{$_POST['authorlast3']}');
  8. jitesh

    Numbers

    Something like this <?php $associative_array = array(); $associative_array['a0'] = array( 4, 2, 3, 4 ); $associative_array['a1'] = array( 1, 2, 3, 1 ); $associative_array['a2'] = array( 4, 3, 4, 4 ); $associative_array['a3'] = array( 2, 3, 1, 1 ); $new_array = array(); for($i=0;$i<count($associative_array);$i++){ $new_array = array_merge($new_array,$associative_array['a'.$i]); } sort($new_array); for($i=0;$i<count($new_array);$i++){ echo $new_array[$i]." "; } ?>
  9. jitesh

    Numbers

    Can't you take a associative array ? Then its a way to make it easy.
  10. Check mime content type for a file. string mime_content_type ( string filename )
  11. Throught AJAX you can post data. Just review the example http://www.phpbuilder.com/columns/jon_campbell20070730.php3
  12. Are you connecting to DB properly ? May may be you are getting die with and printed string "my sql error". This is just assumption.
  13. Follow this flow of coding. (1) Login.php file // Fill up login information (2) intermediate_action.php // Here keep an intermediate action file which contains database operations , Login check , Set of session variables etc... (3) After step 2 redirect to other page like as user_account.php etc. Check the above way.
  14. strtotime does not understand your "date type" given as input.
×
×
  • 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.