I'm getting this error in Firebug :
SyntaxError: unterminated string literal
Panel_Measurements[i] = "<br />
And now all off my functions fail to work... I've tried multiple solutions, but none of them work... this is my code :
<script type="text/javascript" language="javascript>
<?php
$i = 0;
while(isset($dbPanel_Name[$i]))
{
?>
Panel_brand_type[i] = "<?php echo addslashes($dbPanel_Brand_Type[$i]); ?>";
Panel_description[i] = "<?php echo addslashes($dbPanel_Description[$i]); ?>";
Panel_measurements[i] = "<?php echo addslashes($dbPanel_Measurements[$i]); ?>";
Panel_warranty[i] = "<?php echo addslashes($dbPanel_Warranty[$i]); ?>";
i++;
<?php
$i++;
}
?>
</script>
If there's any other way to get PHP variables into Javascript, I would love to know! Any type of help is usefull to me.
Sincerly,
Harmen Brinkman