Hi everybody,
I just ventured in the world of dynamic websites with MySQL and PHP, this time I tried using the Dreamweaver's recorsets, but although everything seem to be working fine and I managed to make the connection to the database without problems, when I upload the page to the server and try to load it on the browser nothing appears! just a blank page as if it was empty.
I tried many things but at this point I am feeling hopeless as nothing seems to work. Does anyone is kind enough to give me a hand with this?
I am attaching here part of the header where the PHP code can be seen:
<?php virtual('/Connections/databas.php');?>
<?php
$colname_contenttab = "-1";
if (isset($GET['ID'])) {
$colname_contenttab = (get_magic_quotes_gpc())? $GET['ID'] : addslashes($_GET['ID']);
}
mysql_select_db($database_dabas, $databas);
$query_contenttab = sprintf("SELECT * FROM content WHERE ID = %s", $colname_contenttab);
$contenttab = mysql_query($query_contenttab, $databas) or die(mysql_error());
$row_contenttab = mysql_fetch_assoc($contenttab);
$totalRows_contenttab = mysql_num_rows($contenttab);
?>
Must be mentioned that sometimes the server shows the following message, but curiously is not shown everytime I load the page...
Fatal error: Call to undefined function virtual() in c:\http\sites..\untitled-5.php on line 1