Hey,
Ik heb vandaag een kleine shoutbox gemaakt om te testen.
In flash en in php gedeelte....
Ik heb het via een tutorial gedaan en volgens mij is het me gelukt, alleen het php gedeelte niet, echt het laatste gewoon.
Dit stond in die tut (op het einde, flash gedeelte heb ik weggelaten
:
Create a new file in your favorite text editor and enter this.
mysql_connect("host", "username", "password");
mysql_select_db("database_name");
?>
Save it as dbconnect.php. Then create another new file in the text editor and enter this.
include("dbconnect.php");
$query = "SELECT * FROM shouts ORDER BY autoID DESC";
$shouts = mysql_query($query);
$row_shouts = mysql_fetch_assoc($shouts);
?>
message=?>
($row_shouts = mysql_fetch_assoc($shouts)); ?>
Save it as shouts.php. Then create another new file and enter this.
include("dbconnect.php");
$query = "INSERT INTO messages (name, message) VALUES ($name, $message)";
mysql_query($query);
?>
Save it as post.php.
Tot hier begrijp ik het, ik heb die codes gewoon allemaal los ogeslagenin kladblok bestandje, mar nu...
Then goto your mysql console or php my admin and execute this.
CREATE TABLE shouts ( autoID INT( 11 ) NOT NULL AUTO_INCREMENT ,
name VARCHAR( 85 ) ,
message TEXT,
PRIMARY KEY ( autoID )
);
That will create the table and fields required for the shoutbox, That should be it, thanks people.
btw, ik heb neit veel verstand van sites etc. en waar moet ik dat allemaal uploaden in mijn directadmin?
Ik heb vandaag een kleine shoutbox gemaakt om te testen.
In flash en in php gedeelte....
Ik heb het via een tutorial gedaan en volgens mij is het me gelukt, alleen het php gedeelte niet, echt het laatste gewoon.
Dit stond in die tut (op het einde, flash gedeelte heb ik weggelaten
:Create a new file in your favorite text editor and enter this.
mysql_connect("host", "username", "password");
mysql_select_db("database_name");
?>
Save it as dbconnect.php. Then create another new file in the text editor and enter this.
include("dbconnect.php");
$query = "SELECT * FROM shouts ORDER BY autoID DESC";
$shouts = mysql_query($query);
$row_shouts = mysql_fetch_assoc($shouts);
?>
message=?>
($row_shouts = mysql_fetch_assoc($shouts)); ?>
Save it as shouts.php. Then create another new file and enter this.
include("dbconnect.php");
$query = "INSERT INTO messages (name, message) VALUES ($name, $message)";
mysql_query($query);
?>
Save it as post.php.
Tot hier begrijp ik het, ik heb die codes gewoon allemaal los ogeslagenin kladblok bestandje, mar nu...
Then goto your mysql console or php my admin and execute this.
CREATE TABLE shouts ( autoID INT( 11 ) NOT NULL AUTO_INCREMENT ,
name VARCHAR( 85 ) ,
message TEXT,
PRIMARY KEY ( autoID )
);
That will create the table and fields required for the shoutbox, That should be it, thanks people.
btw, ik heb neit veel verstand van sites etc. en waar moet ik dat allemaal uploaden in mijn directadmin?

)
, dat is inderdaad zo!