Jump to content

Network_ninja

Members
  • Posts

    94
  • Joined

  • Last visited

    Never

About Network_ninja

  • Birthday 05/29/1989

Profile Information

  • Gender
    Male

Network_ninja's Achievements

Member

Member (2/5)

0

Reputation

  1. change this line: $sql = mysql_query("UPDATE members SET name='{$_POST['name']}', age='{$_POST['age']}, mf='{$_POST['mf']}', loc='{$_POST['loc']}' WHERE usr='{$_SESSION['usr']}'"); TO: $sql = mysql_query("UPDATE members SET name='$_POST[name]', age='$_POST[age]', mf='$_POST[mf]', loc='$_POST[loc]' WHERE usr='$_SESSION[usr]' ");
  2. You maybe is looking for a rich text editor. try this: http://www.tinymce.com/
  3. remove the <style> and <body> tags: body { font-family: verdana; } .banner{font-size: 58px; color: #fff;} .top{font-size: 18px; color: red; } .body {font-size: 25px; color: green;}
  4. what wud be the best ideal time to check? i am thinking if it is a good idea to run a serverside scripts to every seconds to check if time already expire?
  5. ok. i understand ur advice. but how will i do it that there is a clock showing or a countdown timer and automatically locks the question sets after time expire?
  6. Can someone show me the way? I am creating a online examination with time pressured. For example Part I of examination is only good for 20 mins. now if 20 mins is over it will be lock or good as submit. How will I do that? tnx everyone.
  7. make sure also that you have put return upon calling the function: <input type='submit' name='submit' value='Submit' onclick='return jsfunction()' />
  8. add this code after your alert. return false;
  9. this is the one I use and it's working. tnx for the reply, I was thinking that there is something like this is jquery but haven't found one. if(document done executing the script) { display the result } else { show a preloader }
  10. Tnx for the reply. Il try to read and read that link until I get it. The sample is very minimal, it's not very helpful though
  11. Simple jquery get method: jQuery(function ($) { $('.add_cashier').click(function (e) { var id = $(this).attr("id"); $('#basic-modal-content').modal(); $.get("ajax/cashier_entry.php?id="+id, function(data) { $("#basic-modal-content").html(data); }); return false; }); }); Hi that is my simple code to get data from cashier_entry.php and loads it in a div. My question is if it is still not ready to be load I want some preloader to display. Not just a blank page and waiting for the result to come out... Tnx in advance.
  12. Is there a way in php to not execute the whole script if there is error on the script? For example: <?php execute script here; .......... ........... [b] error encounter here[/b]. -> error is not logical execute script ............. ............. ?> I don't want to execute the above script... tnx everyone.
  13. tnx for the code. il try it out later.
  14. Is anyone have a handy code that will format a number? both decimal and thousand separator? eg. value = 1000.2532 result -> 1,000.25 tnx in advance
×
×
  • 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.