Jump to content


Newly Registered
  • Posts

  • Joined

  • Last visited

Posts posted by Mahngiel

  1. Not certain if this is your actual code or if you've pasted the closing brackets of the controller class. Also, not certain if this is the same post in the Frameworks board, but whatever - this one is formatted.


    Here's your code tabbed out. see my comments

    function create_member() {
       $this->form_validation->set_rules('first_name', 'First Name', 'trim|required');
       $this->form_validation->set_rules('last_name', 'Last Name', 'trim|required');
       $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
       $this->form_validation->set_rules('password', 'Password', 'trim|required'); 
       $this->form_validation->set_rules('password2', 'Confirm Password', 'trim|required|matches[password]');
       if($this->form_validation->run() == FALSE) {
           $data['main_content'] = 'home/home_page';
           $this->load->view('includes/templates/home_page_template', $data);
       else {
           if($query = $this->user_model->create_member()) {
               $data['main_content'] = 'account/welcome';
               $this->load->view('includes/templates/main_page_template', $data);
       // extra else here. if you want three conditions, you'll need to turn the 
       // previous else into an elseif()
    // one of these brackets has to go, unless you've pasted the closing
    // class bracket.


    I really recommend an editor that has folding and hilighting. It'll help you spot these errors

  2. There's no reason to wrap it in a ready function since it waits for an event to do anything. But aside from that, what sort of debugging have you done? Are you using any sort of application to monitor the network traffic?


    Aside from not cleansing any of the incoming user input, the first thing you should do at the dev stage is verifying the data being sent from the script. At the top of the script run a die( print_r($_POST) ); and watch the output.

  3. 1. Your syntax isn't correct on the div's style

    2. There's no reason to use a div, just use two img tags

    3. You'll need to disrupt the natural flow of the DOM by using a position attribute

    4. The two elements would need to have differing z-indexes

  4. you have this: $user = $this->facebook->getUser(); , but you're not passing anything to the library to return with. How is that being populated? You're going to have to paste that library code.


    Oh, and you're going to want to change your API ID & secret, as it's likely already been cached by the search bots.

  5. only thing i'm not sure I liked from the video is zones not making their own backroads. Sure, they ended up getting congested and sometimes you bulldozed through an Ice cream shop or two in order for a boulevard to go in, but hey...

  6. From my 5 minutes of googling this topic:


    It applies only to Internet Explorer. So to directly answer your question, no. I can't come up with anything other than what the blog posts on this property cover (PNG fixes) to do with this thing. So generally speaking, if you want to emulate this in other browsers, use javascript to import rules. :shrug:

  7. Do two of the rows that you want to combine have to be the same exact name.. or can they have different row names?


    Not at all. Have you looked at the manual or any examples to see the syntax?


    JOIN `table_2` on `table_1.columnA` = `table_2.columnB`


    Doing multiple table joins is as simple as adding another JOIN statement. I would advise you to practice with aliases as well.

  • 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.