ok, finally got around to testing your code Revan.
The results: If I enter a numeric siteid that exists, everything still works as expected. If I enter a numeric siteid that dont exist, it still spits out an empty template. If I enter a textual siteid, it still returns a SQL error:
Database error in vBulletin 3.0.3:
Invalid SQL: SELECT * FROM site_game_info WHERE siteid=ghj
mysql error: Unknown column 'ghj' in 'where clause'
mysql error number: 1054
Date: Thursday 11th of November 2004 01:41:39 PM
Script: xxxxxx.com/forums/gameinfo.php?siteid=ghj
Referer:
Username: Fargo
IP Address: 192.168.1.1
If you or anyone else has any suggestions, feel free to offer them. In the meantime, Ill keep attempting to figure it out as well. Theres gotta be an existing vbulletin page that does relatively the same thing......
[edit]ok, forumdisplay.php does about the same thing - returns an error if the forum id dont exist...time to do some research on that file...[/edit]
|