Kleine Vragen Topic #1

Gestart doorLennard4.284 reacties15.585 weergaven

4.285 berichten · pagina 29 van 286

Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waar moet ik dat plaatsen

[COLOR= #0000BB]<?php
$mysql[/COLOR][COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO tickets (naam, achternaam, onderwerp, email, bericht, ticket, closed, datum) VALUES ("[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]real_escape[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]real_escape[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]real_escape[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]onderwerp[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]real_escape[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]real_escape[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]real_escape[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ticket[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]", 0, )"[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Lennard

Lid · Topicstarter

Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Doe eens een gok... Bedenk of het PHP of SQL is, die NOW(), bedenk voor welke kolom het is, bedenk waarom je query is zoals hij is en bedenk waar hij zou horen.
Succes.
0
Berichten
10.409
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hopen dat die hack door SMF kwam. Nu maar eens IPB uitproberen.
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt hij werktbiggrin
toevoeging op 20 juni 2012, 14:07:47:
19 mei 2012, om 15:25

Hoe doe je zoiets dan in je SQL.
0
Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
weet iemand toevallig een simpel gratis en GOED beveiligd shopping cart script?
0
Lennard

Lid · Topicstarter

Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Magento? biggrinal is die niet zo supersimpel
0
Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het moet zo simpel zijn dat het makkelijk is in te bouwen in een layout smile
toevoeging op 20 juni 2012, 15:49:21:
Alleen producten bekijken, bestellen en gegevens invullen. smile Registreren hoeft nog niet eens. yummie
toevoeging op 20 juni 2012, 15:49:32:
En uiteraard betalen. wink
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
19 mei 2012, om 15:25

Hoe doe je zoiets dan in je SQL.
0
Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe bedoel je in je sql?

Je zet in je db gewoon 19:05:2012 15:25 ofzo. (datetime of timestamp).

Dit kan je al omzetten met mysql DATE FORMAT. Maar met nederlandse maanden enzo kan je beter in php doen.
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oke zal even kijken.
0
Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php
$host[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]localhost[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$pass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$name[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$db[/COLOR] [COLOR= #007700]= &new[/COLOR] MySQL[COLOR= #007700]([/COLOR][COLOR= #0000BB]$host[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$pass[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$name[/COLOR][COLOR= #007700]);[/COLOR]
?>


Wat is hier fout aan?
Het moet om een of andere reden op deze manier want via mysql_connect doet ie helemaal niks confused
Dit is de foutmelding:

Deprecated: Assigning the return value of new by reference is deprecated in BLABLA.php on line 6

Dit is de pagina die hier bij zit. Er is iets met de connectie volgens mij maar wat ? confused
toevoeging op 20 juni 2012, 161853:
Had de goede gegevens wel ingevuld trouwens hypocrite
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
MySQL moet mysql_connect zijn denk ikyummie
0
Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mikeb schreef:
Het moet om een of andere reden op deze manier want via mysql_connect doet ie helemaal niks confused
Jvdw schreef:
MySQL moet mysql_connect zijn denk ikyummie
emo
toevoeging op 20 juni 2012, 16:28:41:
Opgelost nu yummie Vond het net op internet na 15 min zoeken. Het is

new MySQl blabla en niet &new MySQL
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php
            
            $data[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM tickets ORDER BY ticket ASC"[/COLOR][COLOR= #007700]);[/COLOR]
            [COLOR= #0000BB]$show[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$data[/COLOR][COLOR= #007700]);[/COLOR]
            ?>
                <div class="datum"><span>
                    [COLOR= #0000BB]<?php[/COLOR] 
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$show[/COLOR][COLOR= #007700]->[/COLOR]naam[COLOR= #007700];[/COLOR]  
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]&nbsp;[/COLOR][COLOR= #007700];[/COLOR]
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$show[/COLOR][COLOR= #007700]->[/COLOR]achternaam[COLOR= #007700];[/COLOR]
                    ?></span>
                    schreef op 
                    [COLOR= #0000BB]<?php[/COLOR]
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$show[/COLOR][COLOR= #007700]->[/COLOR]datum[COLOR= #007700];[/COLOR]
                    ?>
                    , om
                    [COLOR= #0000BB]<?php[/COLOR]
                        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$show[/COLOR][COLOR= #007700]->[/COLOR]tijd[COLOR= #007700];[/COLOR]
                    ?>
                    </div>


Wat is hier fout aan, want hij weergeeft telkens hetzelfde terwijl er wat anders in de ticket staat...confused
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat hij nu doet is de eerste ticket ophalen? Wat wil je dan?
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