Kleine Vragen Topic #1

Gestart doorLennard4.284 reacties15.585 weergaven

4.285 berichten · pagina 119 van 286

Berichten
7.307
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Erg makkelijk?
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bewaakertje schreef:
Erg makkelijk?
Is ook de bedoeling als hij maar 8 dagen blijft staan...
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dylanh schreef:
Kan iemand mij nog helpen...
if(preg_match("#<span class="stats-fig">(.*)</span>#", $habboNL, $matches)) {


ik krijg nu: 1567 spelers binnen!

Hoe krijg ik dat ie alleen de getal selecteerd en niet die tekst? heeft iets met * te maken ik weet niet in wat ik die moet veranderen..

if(preg_match("#<span class="stats-fig">(.*) spelers binnen!</span>#", $habboNL, $matches)) {
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Die sessions werken nog steeds niet...

http://sander.vanmarijn.nl/markz/index.php?soort=producten

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700]) {[/COLOR] 
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random2[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700]);
}[/COLOR]


[COLOR= #0000BB]$get[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]soort[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]soort[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [COLOR= #0000BB]$get[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]soort[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #FF8000]//================================== PRODUCTEN ====================================[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$get[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]"producten"[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$product[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random[/COLOR][COLOR= #007700]] *[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random2[/COLOR][COLOR= #007700]];[/COLOR]
            [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700])
            {[/COLOR]
                [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]antwoord[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$som[/COLOR][COLOR= #007700])
                {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Juist[/COLOR][COLOR= #007700];
                }[/COLOR]
                [URL="http://www.php.net/else"]else[/URL]
                [COLOR= #007700]{[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] Fout[/COLOR][COLOR= #007700];
                }
                        
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]x[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random2[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] = <form method="post" action="#"> <input type="text" name="antwoord"><input type="submit" value="check"></form>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/session_destroy"]session_destroy[/URL][COLOR= #007700]();
            }
        }[/COLOR]


toevoeging op 29 september 2012, 14:20:24:
Iemand die kan helpen?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Echo ze eens emo
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sevvlor schreef:
Echo ze eens emo
Dat doe ik ook, die som die je ziet staan zijn de echoes ervan emo?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
$som word nergens aangemaakt emo
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, ik heb het ondertussen al veranderd naar product, maar dan werkt het nog niet?
0
Berichten
16.500
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Hoe zorg ik dat een tekst precies staat waar ik wil clown
toevoeging op 29 september 2012, 15:41:16:
http://merletcollege.com/test/ die tekst van kies hieronder jouw niveau moet ietsjes naar rechts, hoe doe ik dat dan?
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Jellerth schreef:
Hoe zorg ik dat een tekst precies staat waar ik wil clown
toevoeging op 29 september 2012, 15:41:16:
http://merletcollege.com/test/ die tekst van kies hieronder jouw niveau moet ietsjes naar rechts, hoe doe ik dat dan?

De div waar de tekst in staat een margin of padding meegeven.

margin-left: 20px;

Zou voldoende moeten zijn.
0
Berichten
16.500
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Rik schreef:
Eerdere citaten tonen
Jellerth schreef:
Hoe zorg ik dat een tekst precies staat waar ik wil clown
toevoeging op 29 september 2012, 15:41:16:
http://merletcollege.com/test/ die tekst van kies hieronder jouw niveau moet ietsjes naar rechts, hoe doe ik dat dan?

De div waar de tekst in staat een margin of padding meegeven.

margin-left: 20px;

Zou voldoende moeten zijn.
Nu ziet het er wel heel mislukt uit clown
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Je gebruikt ook ... Dat is echt slecht. En je geeft nu de hele wrapper de margin / padding. Niet de

Verander het in

<div style="margin-left: 425px;">Kies hieronder jouw niveau.</div>


Dan ziet het er denk ik beter uit.
0
Berichten
16.500
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Rik schreef:
Je gebruikt ook ... Dat is echt slecht. En je geeft nu de hele wrapper de margin / padding. Niet de

Verander het in
<div style="margin-left: 425px;">Kies hieronder jouw niveau.</div>


Dan ziet het er denk ik beter uit.

Oh, bedankt thumbsup
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sanderc schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700]) {[/COLOR] 
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random2[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700]);
}[/COLOR]


[COLOR= #0000BB]$get[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]soort[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]soort[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [COLOR= #0000BB]$get[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]soort[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #FF8000]//================================== PRODUCTEN ====================================[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$get[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]"producten"[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$product[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random[/COLOR][COLOR= #007700]] *[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random2[/COLOR][COLOR= #007700]];[/COLOR]
            [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700])
            {[/COLOR]
                [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]antwoord[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$som[/COLOR][COLOR= #007700])
                {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Juist[/COLOR][COLOR= #007700];
                }[/COLOR]
                [URL="http://www.php.net/else"]else[/URL]
                [COLOR= #007700]{[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] Fout[/COLOR][COLOR= #007700];
                }
                        
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]x[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]random2[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] = <form method="post" action="#"> <input type="text" name="antwoord"><input type="submit" value="check"></form>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/session_destroy"]session_destroy[/URL][COLOR= #007700]();
            }
        }[/COLOR]


toevoeging op 29 september 2012, 14:20:24:
Iemand die kan helpen?

Iemand die me nog kan helpen?
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