1
risto
$xoopsDB problem I think...
  • 2004/4/4 11:14

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


I'm having som e problems. I keep getting this:

SELECT xoops__tplls_events.EventID, xoops__tplls_events.LeagueMatchID, xoops__tplls_events.PlayerID, xoops__tplls_events.EventType, xoops__tplls_events.EventHomeAway, xoops__tplls_events.EventTime, xoops__tplls_players.PlayerName FROM xoops__tplls_events, xoops__tplls_players WHERE ((xoops__tplls_events.PlayerID=xoops__tplls_players.PlayerID)AND( xoops__tplls_events.LeagueMatchID='26' ))
Error number: 0
Error message: Action not allowed



in MySQL debug after using this :

$umid $_GET[themid];
$eventdata $xoopsDB->query("
 SELECT 
 "
.$xoopsDB->prefix("tplls_events").".EventID,
 "
.$xoopsDB->prefix("tplls_events").".LeagueMatchID,
 "
.$xoopsDB->prefix("tplls_events").".PlayerID,
 "
.$xoopsDB->prefix("tplls_events").".EventType,
 "
.$xoopsDB->prefix("tplls_events").".EventHomeAway,
 "
.$xoopsDB->prefix("tplls_events").".EventTime,
 "
.$xoopsDB->prefix("tplls_players").".PlayerName
 FROM 
 "
.$xoopsDB->prefix("tplls_events").", 
 "
.$xoopsDB->prefix("tplls_players")."
 WHERE (("
.$xoopsDB->prefix("tplls_events").".PlayerID=".$xoopsDB->prefix("tplls_players").".PlayerID)AND(
    "
.$xoopsDB->prefix("tplls_events").".LeagueMatchID='".$_GET[themid]."'
    ))
 "
);
while(
$edata $xoopsDB->fetchArray($eventdata)){ 
bla bla bla
}


Anyone got an idea?

2
risto
Re: $xoopsDB problem I think...
  • 2004/4/4 11:26

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


$eventdata $xoopsDB->queryF("


I got it! lol

3
Mithrandir
Re: $xoopsDB problem I think...

The main problem is that you have a leading whitespace (or newline) before the SELECT.

Since you have GET parameters, query() will only work if the first six characters in the query is "SELECT".

Remove the whitespace and query() should work.

4
Dave_L
Re: $xoopsDB problem I think...
  • 2004/4/4 14:00

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Or apply this patch.

5
risto
Re: $xoopsDB problem I think...
  • 2004/4/7 23:40

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


thanks

Login

Who's Online

201 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits