Mijn eerste php/mysql berichtenbalk

Gestart doorPaull14 reacties25 weergaven

15 berichten · pagina 1 van 1

Paull

Lid · Topicstarter

Berichten
1.641
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mischien is het al wel bekend dat ik een beginnend php scripter ben die nog veel moet
leren en oefenen. Ik wil even hier laten zien hoe mijn eerste php/mysql berichtenbalk
is gemaakt. Ik het uithalen en opslaan geleerd van w3schools.com en het database tabel
scripten van phptuts.nl

Ik zou het leuk vinden als mensen hem gaan gebruiken. En mij info geven over fijn of slecht of wat er beter kan

Eigenlijk had ik nog een id moeten maken omdat dat makkelijker is zeggen ze:
sql.sql

CREATE TABLE paullshoutbox (
naam varchar(20) NOT NULL,
bericht varchar(100) NOT NULL,
ip varchar(20) NOT NULL
)


post.php

<form method="post" action="versturen.php">
<b>Naam</b><br/>
<input type="text" name="naam" maxlength="20" /><br/><br/>
<b>bericht</b><br/>
<input type="text" name="bericht" maxlength="100" /><br/>
<input type="submit" value="Post bericht!" />
</form>


verwerk.php

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Deze berichtenbalk is gescript in php en mysql door paul van beek[/COLOR]
[COLOR= #0000BB]$host[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"database_naam"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$wachtwoord[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"wachtwoord"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$con[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"$host"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"$database"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"$wachtwoord"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700])
  {[/COLOR]
  [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Could not connect: [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
  }[/COLOR]
[URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$ip[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR]REMOTE_ADDR[COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR]naam[COLOR= #007700]]));[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR]bericht[COLOR= #007700]]));[/COLOR]
[COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"INSERT INTO paullshoutbox (naam, bericht, ip)
VALUES ($naam, $bericht, $ip)"[/COLOR][COLOR= #007700];[/COLOR]



[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700]))
  {[/COLOR]
  [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Error: [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
  }[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Je bericht is toegevoegd"[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
?>


berichtenbalkzelf.php

<marquee onmouseover="this.stop()" onmouseout="this.start()">
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Berichtenbalk gemaakt door Paul van Beek[/COLOR]
[COLOR= #0000BB]$host[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"database_naam"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$wachtwoord[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"wachtwoord"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$con[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]$host[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$wachtwoord[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Kan niet connecten met database[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
}[/COLOR]
[COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$ophalen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]SELECT * FROM paullshoutbox ORDER BY naam[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rij[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000] - [/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] || [/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
?>
</marquee>
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Paar opmerkingen:

1. Je zegt dat naam max 20 tekens mag zijn, maar dit controleer je in de code nergens. Met bericht idem. Maxlength in HTML is namelijk zeer makkelijk te omzeilen.
2. if(!con) kan sneller door achter mysql_connect() or die(); te zetten
3. mysql_query($sql,$con) , die $con is alleen handig als je meerdere malen een conectie maakt met verschillende databases. Hierbij is het dus ook niet nodig.
4. $_SERVER[REMOTE_ADDR]; , $POST[naam] e.d. is een beetje niet netjes. Je kan beter $_SERVER[REMOTE_ADDR]; doen om het netter te maken.
5. Gebruik in plaats van addslashes mysql_real_escape_string. En laat de htmlspecialchars weg. Vervolgens, als je de berichten wilt weergeven doe je htmlentities($naam, ENT_QUOTES), hetzelfde doe je dan bij het bericht.
6. Wanneer je in meerdere bestanden een connectie moet maken is het handig om dat in één config te zetten. Deze include je dan. Bespaard je weer een hoop typwerk.

Meer een schoonheidsfoutje dan een echte progrmammeerfout:
7. Probeer consequent om te gaan met indenting in je code. Wanneer je een if opent zorg je dat alles binnen die if 4 spaties naar rechts staat. Zelfde is met while en zo.

<marquee onmouseover="this.stop()" onmouseout="this.start()">
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Berichtenbalk gemaakt door Paul van Beek[/COLOR]
[COLOR= #0000BB]$host[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"database_naam"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$wachtwoord[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"wachtwoord"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$con[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]$host[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$wachtwoord[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Kan niet connecten met database[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
}[/COLOR]
[COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$ophalen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]SELECT * FROM paullshoutbox ORDER BY naam[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rij[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000] - [/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] || [/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
?>
</marquee>


word dan

<marquee onmouseover="this.stop()" onmouseout="this.start()">
[COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #FF8000]// Berichtenbalk gemaakt door Paul van Beek[/COLOR]
    [COLOR= #0000BB]$host[/COLOR]       [COLOR= #007700]=[/COLOR]   [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$database[/COLOR]   [COLOR= #007700]=[/COLOR]   [COLOR= #DD0000]"database_naam"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$wachtwoord[/COLOR] [COLOR= #007700]=[/COLOR]   [COLOR= #DD0000]"wachtwoord"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$con[/COLOR]        [COLOR= #007700]=[/COLOR]   [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]$host[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$wachtwoord[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Kan niet connecten met database[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
    }[/COLOR]
    
    [COLOR= #0000BB]$mysql[/COLOR]      [COLOR= #007700]=[/COLOR]   [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$ophalen[/COLOR]    [COLOR= #007700]=[/COLOR]   [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]SELECT * FROM paullshoutbox ORDER BY naam[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rij[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700]))
    {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000] - [/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] || [/COLOR][COLOR= #007700];
    }[/COLOR]
    
    [URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
?>
</marquee>


wat een stuk makkelijker leest.

Veel succes, maar ik heb toch gestemd op "blijf oefenen"
0
Paull

Lid · Topicstarter

Berichten
1.641
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ok bedankt smile
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maar nu ordent hij alles op de namen en niet op de volgorde toch? Dus als Bas een bericht post en daarna Jaap dan blijft Bas toch voor??
0
Berichten
1.168
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
dan moet je iets met tijd doen.
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Of IDs nog beter biggrin
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
MYSQL code

CREATE TABLE paullshoutbox (
id int(25) NOT NULL AUTO_INCREMENT,
naam varchar(20) NOT NULL,
bericht varchar(100) NOT NULL,
ip varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;


Berichtenbalkzelf.php

<marquee onmouseover="this.stop()" onmouseout="this.start()">
[COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #FF8000]// Berichtenbalk gemaakt door Paul van Beek[/COLOR]
    [COLOR= #0000BB]$host[/COLOR]       [COLOR= #007700]=[/COLOR]   [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$database[/COLOR]   [COLOR= #007700]=[/COLOR]   [COLOR= #DD0000]"database_naam"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$wachtwoord[/COLOR] [COLOR= #007700]=[/COLOR]   [COLOR= #DD0000]"wachtwoord"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$con[/COLOR]        [COLOR= #007700]=[/COLOR]   [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]$host[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$wachtwoord[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Kan niet connecten met database[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
    }[/COLOR]
    
    [COLOR= #0000BB]$mysql[/COLOR]      [COLOR= #007700]=[/COLOR]   [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$ophalen[/COLOR]    [COLOR= #007700]=[/COLOR]   [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]SELECT * FROM paullshoutbox ORDER BY id DESC[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rij[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700]))
    {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000] - [/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] || [/COLOR][COLOR= #007700];
    }[/COLOR]
    
    [URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
?>
</marquee>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Het is het slimste als je een datum erbij doet =D
0
Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
en nog slimmer als er een demotje bij staat.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En het is slim als je een maximum aantal hebt dat word weergegeven ipv onbeperkt
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waarschijnlijk ben ik blind maar moet er geen versturen.php zijn i.p.v. verwerk.php ( Heb het niet getest).
0
Jort

Lid

Berichten
524
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat maakt toch niks uit?
0
Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jortttt:
Dat maakt toch niks uit?

jawel dat maakt wel uit want het php bestand heet verwerk.php en bij de html form wordt verzenden.php gebruikt dus dat klopt niet
0
Paull

Lid · Topicstarter

Berichten
1.641
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik denk dat ik het bij id hou yummie, bedankt
0
Berichten
1.168
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
en dan bij de berichtenbalk zelf in de Query LIMIT 5 toevoegen. dan heb je 5 berichten die je dan ziet.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren