Hallo,
Ich habe mal wieder ein Frage und zwar,
wie muss man richtig php in js ausführen?
Also ich habe z.B sowas
PHP-Code:
<script language="JavaScript">
<!--
var textArray = new Array();blitzArray = new Array();textArray[1]="<?php include_once("system/replace.php"); $sql="SELECT * FROM shoutbox ORDER BY id DESC LIMIT 1";
$data=mysql_query($sql, $db);
while ($shout = mysql_fetch_object ($data)) { if ($access>="4") { echo "<a href=\"index.php?show=shoutaction&action=delete&sid=$shout->id\">X </a>"; }
echo "<a href=\"mailto:$shout->email\">$shout->id | $shout->name:</a><br />"; replace($shout->content); } ?>";
textArray[2]="<b>asdasd: </b>hi!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
</script>
aber irgendwie wird da bei
textArray[1]
php nicht ausgeführt, mach ich das was falsch???
Danke im Vorraus!
MfG ZeroxXx!