In me databese staat 1000000 maar ik wil op me site 1.000.000 laten zien net al 5.000 zegmaar 3 cijfers dus een punt.. hoe kan ik dat doen?
Hoe kan ik bv. 1.000.000 krijgen
Bedankt luuk 

Graag gedaan 

Ik heb nog een vraagje 
ik heb dit:
Maar dat moet volgens mij korter kunnen ik wil daarna dit wel gebruiken:

ik heb dit:
[COLOR= #0000BB]<?php
$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql_query[/COLOR][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
SELECT
name,
rang,
tanks,
exp,
betaald,
groep,
col,
gevangen,
bank,
geld
FROM
accounts
WHERE
id = "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]"
"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql_fetch_assoc[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$query2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql_query[/COLOR][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
SELECT
name
FROM
clan_groep
WHERE
groep = "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]groep[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]"
"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$fetch2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql_fetch_assoc[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query2[/COLOR][COLOR= #007700]);[/COLOR]
?> Maar dat moet volgens mij korter kunnen ik wil daarna dit wel gebruiken:
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]groep[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]Geen[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #0000BB]$fetch2[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]);[/COLOR] ?> Je kan ipv. alles neerzetten,(name, tanks enz.) gewoon * neerzetten. Dan wordt alles geselecteerd
Dat is nou echt baaad, als je maar één kolom hoeft te selecteren is * echt sirieus onnodig.
Andy dat vind ik ook!
Ik heb niet alle kolomen nodig het zijn er een hoop. En als je dat wel doet krijg je veel meer load.
Ik heb niet alle kolomen nodig het zijn er een hoop. En als je dat wel doet krijg je veel meer load.
Oke sorry voor het misverstandje
..
Maar weet iemand daar een oplossing voor? Of niet anders laat ik het zo..
Verder weet iemand een snellere manier als:
.. Maar weet iemand daar een oplossing voor? Of niet anders laat ik het zo..
Verder weet iemand een snellere manier als:
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"refresh: 0; url=http://one2xs.com"[/COLOR][COLOR= #007700]);[/COLOR] ?> van refresh: 0; dit maken: Location:
En url= weglaten.
En url= weglaten.
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"location: http://one2xs.com"[/COLOR][COLOR= #007700]);[/COLOR] ?> dit dus

Je, had ff geen zin om het zo neer te zetten, want zat op de pc.
[COLOR= #0000BB]<?php
$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql_query[/COLOR][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
SELECT
name,
rang,
tanks,
exp,
betaald,
groep,
col,
gevangen,
bank,
geld,
(
SELECT
name
FROM
clan_groep
WHERE
groep = a.groep
) clan
FROM
accounts a
WHERE
id = "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]"
"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql_fetch_assoc[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
?> Dan moet je dit gebruiken
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/is_null"]is_null[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]clan[/COLOR][COLOR= #007700]]) ?[/COLOR] [COLOR= #DD0000]Geen[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #0000BB]$fetch2[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]clan[/COLOR][COLOR= #007700]];[/COLOR] ?> @ Luuk; Correctie:
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/is_null"]is_null[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]clan[/COLOR][COLOR= #007700]]) ?[/COLOR] [COLOR= #DD0000]Geen[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]clan[/COLOR][COLOR= #007700]];[/COLOR] ?>