1
bb2120
Random Mydownloads block code problems
  • 2005/11/22 15:46

  • bb2120

  • Not too shy to talk

  • Posts: 179

  • Since: 2005/7/6 1


I have made a block that picks a random Mydownloads download from the database, however, when running this as a custom block, I get:

Parse error: parse error, unexpected T_VARIABLE in **server root path**/user/htdocs/modules/system/blocks/system_blocks.php(40) : eval()'d code on line 2


Here is the php scripted custom block that gives the error
Quote:

$result = mysql_query('USE **database name** SELECT title, url, logourl FROM **XOOPS table prefix**_games_downloads ORDER BY RAND() LIMIT 1')
$row = mysql_fetch_array('$result, MYSQL_ASSOC')


print <<
HTML;


Anyone know what's going wrong here?
Help appreciated

Login

Who's Online

245 user(s) are online (196 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

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

Latest GitHub Commits