Hallo,
Wat is er mis met dit script? Zie: http://domeinopslag.nl/
Mijn script:
Wat is er mis met dit script? Zie: http://domeinopslag.nl/
Mijn script:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<title>SMS Berichtenbalk</title>
</head>
<body>
[COLOR= #0000BB]<?php[/COLOR]
try
[COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]// include configuration file[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/config.php[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]// get all messages[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT message FROM "[/COLOR] [COLOR= #007700].[/COLOR] DB_PREFIX [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"smsberichtenbalk ORDER BY id DESC LIMIT 5"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #FF8000]// add messages to array[/COLOR]
[COLOR= #0000BB]$messages[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]))
{[/COLOR]
[COLOR= #0000BB]$messages[/COLOR][COLOR= #007700][] =[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]message[/COLOR][COLOR= #007700]]);
}[/COLOR]
[COLOR= #FF8000]// output messages[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<marquee>[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/implode"]implode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000] || [/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$messages[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]</marquee>[/COLOR][COLOR= #007700];
}
}[/COLOR]
catch[COLOR= #007700]([/COLOR]Exception [COLOR= #0000BB]$e[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$e[/COLOR] [COLOR= #007700]->[/COLOR] getMessage[COLOR= #007700]();
}[/COLOR]
?>
<p>
<b>Nieuw bericht toevoegen?</b><br />
sms WEB SD [Uw bericht] naar 3010<br />
€ 0,25 p.o.b. maximaal 1 bericht(en)
</p>
</body>
</html>
, tabel smsberichtenbalksmsberichtenbalk bestaat niet.