Ok,
This piece of code writes an item to a database table and then displays the window:
<?php
session_start();
$dis=session_id();
mysql_connect ("xxxxxxxxxx", "xxxxxx", "xxxxxx");
$dbcnx2 = @mysql_connect ("xxxxxxxxxx", "xxxxxx", "xxxxxx");
mysql_select_db ("cart", $dbcnx2);
////////////// Write variables to the database ///////////////
$write_statement = "INSERT INTO cartdata (cid, cdesc, csize, cres, cprice, cust) VALUES
($cartidnum, '$cartdesc', '$size_var', '$res_var', '$price_var', '$dis')";
mysql_query($write_statement) or die(mysql_error());
?>
<script language="JavaScript">
alert("The item has been added to your shopping-cart!");
</script>
When this script is called upon when clicking the 'add to cart' link in the output window where all the items are displayed, the screen goes blank..
Any idea?
Fish