Thema: php in js?
Einzelnen Beitrag anzeigen
  #1  
Alt 03.08.2006, 22:23:37
ZeroxXx ZeroxXx ist offline
Anfänger
 
Registriert seit: Jun 2006
Beiträge: 128
php in js?

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&amp;action=delete&amp;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!

Geändert von ZeroxXx (03.08.2006 um 22:24:23 Uhr)
Mit Zitat antworten