what am i doing wrong

e107 CMS » Forums » e107 Code » Plugin / Code Developer Discussion << Previous thread | Next thread >>
MittenJuice
Jan 31 2012, 02:19PM
Registered Member #63393
Joined: Nov 25 2011, 10:49AM
Posts: 4
I'm quite frustrated. I must be doing something wrong because I can execute queries in functions just not regular page... I've tried everything that seemed obvious....

I tried both db_Select() and db_Select_gen()...
Like I said I used db_Select() in functions without problems.... I even tried starting a new connection and still nothing.

$sql->db_Select('league_officials', '*') - there isn't anything wrong with this is there?
[ Edited Jan 31 2012, 03:00PM ]
Go to top
septor
Jan 31 2012, 03:45PM
  • e107 Site administrator
  • e107 Security Team
  • e107 Support Team
  • e107 Documentation Team
Registered Member #37
Joined: Aug 11 2002, 03:20AM
Location: United States
Posts: 2687
I'm going to guess that's the exact line you're using. You need to tell the function that there is no other parameters, like this:

$sql->db_Select('league_officials', '*', 'no-where');
Go to top
Website
MittenJuice
Jan 31 2012, 03:58PM
Registered Member #63393
Joined: Nov 25 2011, 10:49AM
Posts: 4
Thanks for your reply. In my function I only have $sql->db_Select('league_games', 'game_name, game_title') and it works. i made function to generate <select> option list. I know how to code. I've completed my league management script but I am disatisfied with the cms. now I'm porting it over but making it better. like I said I am clueless. I will try what you said...

Edit:
It is working but that's not why. I restarted the server so maybe that's why... thanks for your input. you did help.
[ Edited Jan 31 2012, 04:28PM ]
Go to top
septor
Feb 01 2012, 07:38PM
  • e107 Site administrator
  • e107 Security Team
  • e107 Support Team
  • e107 Documentation Team
Registered Member #37
Joined: Aug 11 2002, 03:20AM
Location: United States
Posts: 2687
My advice was rubbish. I was thinking of something else.

I'm assuming you got it working?
Go to top
Website
MittenJuice
Feb 02 2012, 03:03AM
Registered Member #63393
Joined: Nov 25 2011, 10:49AM
Posts: 4
yes! thanks for trying help. I edited my last post the other day. something weird was going on. I've been trying to transition and its hard trying to figure it all out. I've looked through a bunch of the handlers and have tried to figure out all the bells and whistles. I knew it should've been working but wasn't sure why... take care.

Again, thanks for your input. sorry for waste of time.
Go to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System