The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
What is the error in the web server error log?
Have you tried require global.php before other requires? I see you have something before global.php. |
#12
|
|||
|
|||
If I move the require to the top the recordset is empty
Code:
<?php chdir("./../forums/"); require_once("./global.php"); require_once('Connections/seatcupra.php'); error_reporting(E_ALL & ~E_NOTICE); $colname_rs_test = "1"; if (isset($HTTP_GET_VARS['userid'])) { $colname_rs_test = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['userid'] : addslashes($HTTP_GET_VARS['userid']); } mysql_select_db($database_seatcupra, $seatcupra); $query_rs_test = sprintf("SELECT * FROM setup_photos WHERE userid = %s", $colname_rs_test); $rs_test = mysql_query($query_rs_test, $seatcupra) or die(mysql_error()); $row_rs_test = mysql_fetch_assoc($rs_test); $totalRows_rs_test = mysql_num_rows($rs_test); ?> <html> <head> <title>MySQL/VB Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php echo $row_rs_test['photo_id']; ?>,<?php echo $row_rs_test['filename']; ?>,<?php echo $row_rs_test['caption']; ?>,<?php echo $row_rs_test['userid']; ?>,<?php echo $row_rs_test['username']; ?> </body> </html> <?php mysql_free_result($rs_test); ?> |
#13
|
||||
|
||||
As far as I know, the function is "parse_bbcode()" in vb3, and it's not contained in global.php.
Include/require "./includes/functions_bbcodeparse.php" and then use parse_bbcode(). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|