[AS2 PHP MySQL] wat gaat er mis??

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
hallo allemaal... Ik heb geprobeerd een shoutbox te maken in flash... wat ongeveer gelukt is. Het enige probleem is dat hij nix verzend/laad...

Hier is wat informatie:
http://mastahserver.stude...realmhl/recover/shout.fla

Shout.php:
<?
require("includes/connect.php");

if ($_POST['action']=="insert") {
$name = strtoupper($_POST['naam']);
$shout = strtoupper($_POST['message']);
$sql = mysql_query("INSERT INTO `shout` (`name`, `shout`) VALUES ('$name','$shout')");
}
else {
$sql = mysql_query("SELECT * FROM `shout` ORDER BY id DESC LIMIT 15");

if(mysql_numrows($sql)==0) {
echo "&content=Nothing to display";
}
else {
while($row = mysql_fetch_array($sql)) {
$content = "$content" . "<br>$row['name']- $row['shout']<br>
---------------------";
}
echo "&content=$content";
}
}
?>


en de info.php van mijn server:
http://mastahserver.student.utwente.nl/info.php

Acties:
  • 0 Henk 'm!

  • Shadowman
  • Registratie: Januari 2002
  • Niet online
ehm
code:
1
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www/maartenfonville/users/realmhl/shout/shout.php on line 17


http://mastahserver.stude...s/realmhl/shout/shout.php
^ is dat wel de goed shout.php?

iig, check de output van je shout.php dus.