[!--quoteo(post=372025:date=May 7 2006, 10:21 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ May 7 2006, 10:21 AM) [snapback]372025[/snapback][/div][div class=\'quotemain\'][!--quotec--] Well theres a clue in the error message. virtual is being called on line 1 in [b]dpage.php[/b]. If you post the code here we should be able to help. As far as I know virtual is used to include and parse shtml files and is an Apache specific function. [/quote] right guys this is the real code. the above one was edited. <?php virtual('/Connections/salford.php'); ?> <?php $maxRows_Recordset1 = 10; $pageNum_Recordset1 = 0; if (isset($_GET['pageNum_Recordset1'])) { $pageNum_Recordset1 = $_GET['pageNum_Recordset1']; } $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1; mysql_select_db($database_salford, $salford); $query_Recordset1 = "SELECT * FROM asif_planets, asif_images WHERE asif_images.Related_to = asif_planets.Planet_name"; $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1); $Recordset1 = mysql_query($query_limit_Recordset1, $salford) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); if (isset($_GET['totalRows_Recordset1'])) { $totalRows_Recordset1 = $_GET['totalRows_Recordset1']; } else { $all_Recordset1 = mysql_query($query_Recordset1); $totalRows_Recordset1 = mysql_num_rows($all_Recordset1); } $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1; ?> The virtual function connects to this: <?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_salford = "213.171.193.146"; $database_salford = "salford"; $username_salford = ""; $password_salford = ""; $salford = mysql_pconnect($hostname_salford, $username_salford, $password_salford) or trigger_error(mysql_error(),E_USER_ERROR); ?> any ideas?? thanks!