Okay I have this:
The error:PHP Code:<script type="text/javascript">
<!--
function log(text)
{
<?php
$con = mysql_connect("localhost","user","pass");
$now = date("d/m/y");
$text = ?> text <? ; // Line 12
$ip = $_SERVER['REMOTE_ADDR'];
mysql_select_db("db", $con);
mysql_query("INSERT INTO `translog` ( `ip` , `date` , `transfrom` )
VALUES (
'$ip', '$now', '$text'
);");
?>
}
-->
</script>
Parse error: parse error, unexpected ';' in /home/mage/public_html/rvcom/trans.php on line 12
Tried removing the ; at the end of the line and get the same error.
Do you think that there could be a possible bridge in Javascript using this method??
I'm guessing no, but I can't make the user have to click a link to pass variables to PHP![]()
![]()
![]()










Reply With Quote