Hello, everybody. I was wondering if anybody could help me with something. I don't know if I'm taking things too fast but, I was wondering if somebody could help with this program I am making. I'm currently writing a "fake" bank script. Basically you start with a set amount of money, and you can deposit it, withdraw it, and check your balance. However, when I make the deposit and then check my balance, I shows up as the balance being 0, instead of what I had deposited... Could somebody help me out?? Here's the code: Bank.pyw: [CODE]#THIS PART IS NOT …

Member Avatar
Member Avatar
-1 forum 13

I have some JQuery code where an if-then statement is being run after a .slideToggle event. I just don't understand why the if section is still being run when it would appear the if statement is false. Code incoming: JQuery: $(function() { var pull = $('#pull'); menu = $('div#nav ul'); menuHeight = menu.height(); head = $('div#welcome'); down = true; $(pull).on('click', function(e) { e.preventDefault(); menu.slideToggle(function(){ if(down = true){ $(head).animate({paddingTop:'287px'}, {duration: 0, queue: false}); down = false; } else{ $(head).animate({paddingTop:'125px'}, {duration: 0, queue: false}); down = true; } }); After the .slideToggle event runs once it seems to work fine, but run …

Member Avatar
Member Avatar
+0 forum 7

I tried to make a way to let the user choose to which piece of the program it would go, i first tried *for* but later went and used *if*, this is the code: while True: whichcode = 1 #set the variable for the first time. while True: if whichcode == 1: print "code nr one" print "where to go?" x = raw_input("1 or 2 or 3? ") if x == 1: whichcode = 1 if x == 2: whichcode = 2 if x == 3: #let the user choose whichcode = 3 #which piece of code it should go …

Member Avatar
Member Avatar
+0 forum 3

I am using codeigniter if ($this->form_validation->run() ) always returns false. please help me out with this Here is my controller and view page as shown bellow This is controller admin.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends CI_Controller { public function index() { $this->login(); } public function login() { //echo 'This is admin controller login function'; $this->load->view('admin/admin_login'); } public function login_validation() { $this->load->helper('form'); $this->load->library('form_validation'); $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email|xss_clean'); $this->form_validation->set_rules('password', 'Password', 'trim|required|sha1'); $email = $this->input->post('email'); $password = $this->input->post('password'); print $password . $email; if ($this->form_validation->run() == TRUE) { //redirect('admin/profile'); $this->load->view('success'); } else { $this->load->view('errorrr'); } } } admin_login.php is …

Member Avatar
Member Avatar
+0 forum 2

Hello, I have created a project in C#.net and I want now that created exe run only once on any particular machine after installation. Can any body told us how to do it. Regards Avadhesh

Member Avatar
Member Avatar
+0 forum 11

The End.