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
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