We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,956 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

storing in an array

Hey everyone

I am trying to create a function in php that will take the question that the user enters on the website and store it in an array.

here is my code but I highly doubt its right:

<?php

class Enligne_Model_DbTables_Users extends Zend_Db_Table_Abstract
{

    protected $eilgne_Questions = null;
    protected $statuses = array(
            0 => 'inactive',  
            1 => 'active', 
            2 => 'activerestricted',  
            3 => 'occurred');
    public function create ($Questions, $eilgne = 'active',
            array $params = array())
            {
                if(empty($Question))
                {
                    throw new Bts_Exception('Must enter a Qustion!',
                            Bts_Exception::ATTENDEES_PARAMS_BAD);       
                }
            }

?>

please help me out here I need help on this fast.

2
Contributors
1
Reply
5 Hours
Discussion Span
4 Months Ago
Last Updated
2
Views
xxwikkixx
Newbie Poster
14 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

I can't see that the code actually does anything. So it's difficult to see what bit of it is failing.

diafol
Keep Smiling
Moderator
10,647 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,509
Skill Endorsements: 57

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.2925 seconds using 2.64MB