Kleine Vragen Topic #2

Gestart doorKingunit3.067 reacties11.764 weergaven

3.068 berichten · pagina 80 van 205

Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een probleempje met whmcs.
Ik wil graag als optie dat mensen bij een reseller een subdomain kan krijgen. Gratis. dus ik heb die optie gedaan maar nu komt er dit:
Afbeelding

Dit staat er in het adminpaneel
Afbeelding
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jespar schreef:
Ik heb een probleempje met whmcs.
Ik wil graag als optie dat mensen bij een reseller een subdomain kan krijgen. Gratis. dus ik heb die optie gedaan maar nu komt er dit:
Afbeelding
Dit staat er in het adminpaneel
Afbeelding

Je moet ook niet www.jesper kiezen, je moet www.jesper.r1.weexhosting.nl intypen ofja, zonder de www. dan.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Moet er niet iets in die dropdown komen?
0
Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Moet er niet iets in die dropdown komen?
dat dacht ik ook al. maar wat.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Zet er een . Voor bij admin.
0
Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jellesch schreef:
Zet er een . Voor bij admin.
hoebedoel je
0
Berichten
7.307
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Vandaag wilde ik beginnen aan een layout voor mijn nieuwe systeem, maar er is 1 ding wat me dwars zit. Als ik een div maak met een background en dan zorg dat hij hem op het hele beeld pakt, slaat hij bovenin een rand over en aan de zijkanten, hoe kan ik dit oplossen?

Layout:
http://reality.s3.one2xs.com/ding/

css:
Spoiler tonen
body {

}

#container {

}

#menubalk {
    height: 40px;
    background: url(images/bg.png) repeat-x;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
}

#left {
    float: left;
    margin-left: 10px;
}

#right {
    float: right;
    margin-right: 10px;
}

#contentbox {

}
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Gooi nou foutafhandeling in je script. En mysql_query() kan je NIET echoen.
Vertel eens hoe ik hem dan laat doorsturen naar de in database geplaatste url..
0
Stef

Lid

Berichten
10.150
Reputatie
2
Punten
0,00
Lid sinds
Laatst gezien
Jordyt schreef:
Vandaag wilde ik beginnen aan een layout voor mijn nieuwe systeem, maar er is 1 ding wat me dwars zit. Als ik een div maak met een background en dan zorg dat hij hem op het hele beeld pakt, slaat hij bovenin een rand over en aan de zijkanten, hoe kan ik dit oplossen?

Layout:
http://reality.s3.one2xs.com/ding/

css:
Spoiler tonen
body {

}

#container {

}

#menubalk {
    height: 40px;
    background: url(images/bg.png) repeat-x;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
}

#left {
    float: left;
    margin-left: 10px;
}

#right {
    float: right;
    margin-right: 10px;
}

#contentbox {

}
body {
     margin: 0;
}


toevoeging op 19 juni 2013, 18:31:32:
en vervang background: url(images/bg.png) repeat-x;
door:

background-color: grey;
0
Berichten
7.307
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Stefvdwel schreef:
Eerdere citaten tonen
Jordyt schreef:
Vandaag wilde ik beginnen aan een layout voor mijn nieuwe systeem, maar er is 1 ding wat me dwars zit. Als ik een div maak met een background en dan zorg dat hij hem op het hele beeld pakt, slaat hij bovenin een rand over en aan de zijkanten, hoe kan ik dit oplossen?
Layout:
http://reality.s3.one2xs.com/ding/

css:
Spoiler tonen
body {

}

#container {

}

#menubalk {
    height: 40px;
    background: url(images/bg.png) repeat-x;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
}

#left {
    float: left;
    margin-left: 10px;
}

#right {
    float: right;
    margin-right: 10px;
}

#contentbox {

}
body {
     margin: 0;
}


toevoeging op 19 juni 2013, 18:31:32:
en vervang background: url(images/bg.png) repeat-x;
door:

background-color: grey;


Bedankt, dat eerste had ik bij de body nog niet aan gedacht!
Over de background: Moet iets meer noise in, daarom geen kleur.
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Gooi nou foutafhandeling in je script. En mysql_query() kan je NIET echoen.
Vertel eens hoe ik hem dan laat doorsturen naar de in database geplaatste url..
Antonn schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Antonn schreef:
Eerdere citaten tonen
Desire schreef:
Nee de errors staan aan..
Ik doe het wel via een a href alleen hoe doe ik dit, ik heb het volgende al geprobeert maar daar komt deze error uit:

Quote:
Warning: mysql_query() expects parameter 1 to be string, resource given in xx on line 17

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700]) {[/COLOR]
                [COLOR= #0000BB]$url[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]]);[/COLOR]
                [COLOR= #0000BB]$urldoorsturen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM codes WHERE url = "[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$url[/COLOR][COLOR= #007700]) .[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Code is juist, klik op de link om erheen te gaan.[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href=[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$urldoorsturen[/COLOR][COLOR= #007700]) .[/COLOR][COLOR= #DD0000]>Klik hier</a>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultip[/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]code is onjuist[/COLOR][COLOR= #007700];
            }[/COLOR]
?>

Je zei dat er helemaal niks gebeurde maar je zag dus wel de tekst "Code is juist, klik op de link om erheen te gaan."?
Eerst niet.
In ieder geval:
- Je hebt 2x mysql_query over dezelfde string, de 2e keer moet mysql_result zijn
- $url zal een boolean weergeven, omdat isset altijd een boolean geeft wat je waarschijnlijk niet wilt nu.
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Antonn schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Gooi nou foutafhandeling in je script. En mysql_query() kan je NIET echoen.
Vertel eens hoe ik hem dan laat doorsturen naar de in database geplaatste url..
Eerdere citaten tonen
Antonn schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Antonn schreef:
Eerdere citaten tonen
Desire schreef:
Nee de errors staan aan..
Ik doe het wel via een a href alleen hoe doe ik dit, ik heb het volgende al geprobeert maar daar komt deze error uit:

Quote:
Warning: mysql_query() expects parameter 1 to be string, resource given in xx on line 17

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700]) {[/COLOR]
                [COLOR= #0000BB]$url[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]]);[/COLOR]
                [COLOR= #0000BB]$urldoorsturen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM codes WHERE url = "[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$url[/COLOR][COLOR= #007700]) .[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Code is juist, klik op de link om erheen te gaan.[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href=[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$urldoorsturen[/COLOR][COLOR= #007700]) .[/COLOR][COLOR= #DD0000]>Klik hier</a>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultip[/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]code is onjuist[/COLOR][COLOR= #007700];
            }[/COLOR]
?>

Je zei dat er helemaal niks gebeurde maar je zag dus wel de tekst "Code is juist, klik op de link om erheen te gaan."?
Eerst niet.
In ieder geval:
- Je hebt 2x mysql_query over dezelfde string, de 2e keer moet mysql_result zijn
- $url zal een boolean weergeven, omdat isset altijd een boolean geeft wat je waarschijnlijk niet wilt nu.
Al opgelost via TV. Hij had bij de query url staan wat code moest zijn
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Gooi nou foutafhandeling in je script. En mysql_query() kan je NIET echoen.
Vertel eens hoe ik hem dan laat doorsturen naar de in database geplaatste url..
Voeg eerst maar eens dat toe.
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Gooi nou foutafhandeling in je script. En mysql_query() kan je NIET echoen.
Vertel eens hoe ik hem dan laat doorsturen naar de in database geplaatste url..
Voeg eerst maar eens dat toe.
Ik heb het zo opgelost en het werkt.

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700]) {[/COLOR]
                
                [COLOR= #0000BB]$uQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM codes WHERE code = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
            
                
                    
                [COLOR= #0000BB]$uFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uQuery[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]URL: <a href="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tURL[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">Klik hier</a>[/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]code is onjuist[/COLOR][COLOR= #007700];
            }[/COLOR]
?>
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Gooi nou foutafhandeling in je script. En mysql_query() kan je NIET echoen.
Vertel eens hoe ik hem dan laat doorsturen naar de in database geplaatste url..
Voeg eerst maar eens dat toe.
Ik heb het zo opgelost en het werkt.

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700]) {[/COLOR]
                
                [COLOR= #0000BB]$uQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM codes WHERE code = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
            
                
                    
                [COLOR= #0000BB]$uFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uQuery[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]URL: <a href="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tURL[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">Klik hier</a>[/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]code is onjuist[/COLOR][COLOR= #007700];
            }[/COLOR]
?>

Even ter info: mysql_result is sneller en beter. Om het je makkelijk te maken:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
                [COLOR= #0000BB]$uQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT tURL FROM codes WHERE code = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$url[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_result"]mysql_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uQuery[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]URL: <a href="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$url[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]">Klik hier</a>[/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]code is onjuist[/COLOR][COLOR= #007700];
            }[/COLOR]
?>
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