Kleine Vragen Topic #1

Gestart doorLennard4.284 reacties15.585 weergaven

4.285 berichten · pagina 46 van 286

Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Geen idee meer, is ook al weer een paar jaar geleden...
Maar ob_start() mijden is het beste. obs zijn niet voor PHP bedoeld, maar voor vrouwen winkMenstruatie-humoremoemo
0
Berichten
1.157
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik krijg dit:
Spoiler tonen
Afbeelding

Hoe fix je die belachelijk grote email form
<div id="api-client-signup"><form id="reg" name="reg" enctype="application/x-www-

form-urlencoded" action="http://api.main-hosting.com/v-2/client-register" method="post">
<div class="api_input" id="api_email">
<label for="email">Email adres</label><br/>
<input type="text" name="email" id="email" value=""></div>
<label for="first_name">Naam</label><br/>
<input type="text" name="first_name" id="first_name" value=""></div>
<div class="api_input" id="api_last_name">
<label for="last_name">Achternaam</label><br/>
<input type="text" name="last_name" id="last_name" value=""></div>


Dit is me content CSS:

#content {
    margin-top:50px;
}
#features .one_third {
    background: #fff;
    border: 1px solid #ddd;
    width:215px;
    float:left;
    margin-right:30px;
    
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    
    -moz-box-shadow: 0 0 8px #e5e5e5;
    -webkit-box-shadow: 0 0 8px #e5e5e5;
    box-shadow: 0 0 8px #e5e5e5;
}
#features ul li {
    text-align:left;
    border-bottom:1px solid #ddd;
    line-height:40px;
    padding-left:20px;
    list-style: url("../images/tick.png") inside;
}


weet iemand fix
0
Berichten
1.157
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Iemand zei dat ik dat moest doen?
0
Berichten
10.409
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sanderc schreef:
Eerdere citaten tonen
Ewan schreef:
Je tijden kloppen niet yummie
Het is:
Ochtend: 6:00 - 12:00
Middag: 12:00 - 18:00
Avond: 18:00 - 0:00
Nacht: 0:00 - 6:00

Ja zeg sadley. Dat maakt niet uit bupatihIk wil gewoon weten welke mannier beter is smile
Al gekeken bij if statement vs switch?
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb dit:

[COLOR= #0000BB]<?php
$badge[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$row_badge[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$badge[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$row_badge[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Bestaat niet"[/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]"Bestaat al "[/COLOR][COLOR= #007700];
}[/COLOR] ?>


Nu wil ik als de badge 2 keer in de database staat, dus als dit 2 keer bestaat: ACH_test

Dat hij aangeeft dat hij al bestaat.
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
http://www.dylanproductions.nl/sander/project.php

Je kan nu bv ook Naam invullen.
Dus HTML codes gaat gewoon nog, dus je kan dit gemakkelijk omzeilen later, hoe zorg ik nu dat zon codes niet kunnen ingevuld worden?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
htmlspecialchars() op php.net zoeken AUB
0
Berichten
4.451
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
wrm werkt dit niet? emo
#head_bg 
{background:url(../images/header_bg.png) repeat-x; width: 100%; height:303px; z-index: 1; top:168px; 
margin:0; padding:0; left:0;}


ik heb t niet zo gemaakt, maar iemand anders, maar kan geen reden meer bedenken wrm ie niet 100% doet
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Ik zou zeggen: Schrijf het eens fatsoenlijk uit (evenals je posts...)
En wat werkt er niet aan? Zie je een paars scherm, gaat je CD-drive opeens open en dicht...?

Met iets als: werkt niet kunnen we niks.
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nickjexx schreef:
Ik heb dit:

[COLOR= #0000BB]<?php
$badge[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$row_badge[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$badge[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$row_badge[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Bestaat niet"[/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]"Bestaat al "[/COLOR][COLOR= #007700];
}[/COLOR] ?>
Nu wil ik als de badge 2 keer in de database staat, dus als dit 2 keer bestaat: ACH_test

Dat hij aangeeft dat hij al bestaat.

Waarom lege strings ertussen? Als je nog maar 1 dag script doe je dit nog, maar jij schript toch al meerdere jaren?!

Maar dit doe je zo niet. Je haalt alle resultaten uit de database met de naam van de huidige badge ( mysql_query("SELECT id FROM basges WHERE badgenaam = ".$badge.""); ) en dan tel je deze ( mysql_num_rows() ). 0 resultaten = toevoegen, meer als 0 resultaten is negeren.

toevoeging op 14 juli 2012, 01:38:48:
Of beter tel je met COUNT(*)
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bartv schreef:
wrm werkt dit niet? emo
#head_bg {
background:url(../images/header_bg.png) repeat-x;
width: 100%;
height:303px;
z-index: 1;
top:168px; 
margin:0; 
padding:0; 
left:0;
}
ik heb t niet zo gemaakt, maar iemand anders, maar kan geen reden meer bedenken wrm ie niet 100% doet

Werkt de height niet? De background? Wat werkt er niet, wees eens duidelijl svp

toevoeging op 14 juli 2012, 09:26:54:
Btw, dit werkt niet, moet ik dan niet met preg_replace werken?

[COLOR= #0000BB]<?php
$text[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Woord"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]))
{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Het bevat rare tekens[/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]Het bevat normale tekens[/COLOR][COLOR= #007700];
}[/COLOR]
?>
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Goedemorgen, [/COLOR][COLOR= #007700].[/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]![/COLOR][COLOR= #007700];[/COLOR]
?>
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Thommity schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Goedemorgen, [/COLOR][COLOR= #007700].[/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]![/COLOR][COLOR= #007700];[/COLOR]
?>
Bedankt.

Wilt iemand hier even testen of je het kan omzeilen of er bugjes in zitten?
http://www.dylanproductions.nl/sander/project.php
0
Berichten
4.451
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Ik zou zeggen: Schrijf het eens fatsoenlijk uit (evenals je posts...)
En wat werkt er niet aan? Zie je een paars scherm, gaat je CD-drive opeens open en dicht...?

Met iets als: werkt niet kunnen we niks.
emo, me post zijn gewoon goed, mja
En er staat, hij gaat niet 100%, dus dan lijkt het me dat de width:100%, dat die geen 100% doet he? emo (SLIM emo)
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Sanderc schreef:
Eerdere citaten tonen
Thommity schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Goedemorgen, [/COLOR][COLOR= #007700].[/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]![/COLOR][COLOR= #007700];[/COLOR]
?>
Bedankt.

Wilt iemand hier even testen of je het kan omzeilen of er bugjes in zitten?
http://www.dylanproductions.nl/sander/project.php

Waarom werk je met GET, zoiets hoort in een post
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