Simple shoutbox.
2 posters
iCodeZ :: iCodeZ :: Tips and Tricks
Page 1 of 1
Simple shoutbox.
Ok here we go.
Go into PHP my admin and make a table called: shoutbox
Then make the fields:
id
username
message
Here we are making the shoutbox color fields, and tables.
shoutbox.php
PHP Code:
//Make sure you have the database called "config.php"
?>
Admin CP | View Full Shoutbox
| Refresh
";
";
?>
All that does is displays the shoutbox but we need it to add the shouts and display the fields.
sfield.php
PHP Code:
Go into PHP my admin and make a table called: shoutbox
Then make the fields:
id
username
message
Here we are making the shoutbox color fields, and tables.
shoutbox.php
PHP Code:
//Make sure you have the database called "config.php"
?>
Admin CP | View Full Shoutbox
| Refresh
$result = mysql_query("SELECT * FROM shoutbox order by id DESC LIMIT 5")
or die(mysql_error());
echo "
"; echo $row['username']; echo ": "; echo $row['message']; echo " | "; echo ""; } echo " |
?>
All that does is displays the shoutbox but we need it to add the shouts and display the fields.
sfield.php
PHP Code:
Permissions in this forum: You cannot reply to topics in this forum
|