Ticket systeem need help!

Gestart doorJesper12 reacties39 weergaven

13 berichten · pagina 1 van 1

Jesper

Lid · Topicstarter

Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoi
ik ben een ticket systeem aan het maken maar kom er niet helemaal uit kan iemand me helpen? Zowizo 1 punt als iemand me GOED Heeft geholpen!

toevoeging op 3 januari 2012, 15:39:45:
De site is: ticket.Manxi.nl
0
Berichten
10.409
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Parse error: syntax error, unexpected $end in

Dat krijg je meestal als je een if statement niet goed afsluit, dan mis je een haakje: }.
0
Jesper

Lid · Topicstarter

Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
maar hij is nog niet af kan je me helpen met het hele systeem bedoel ik?

toevoeging op 3 januari 2012, 15:48:47:
Dat we hem samen maken
0
Berichten
10.409
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee, ik kan sowieso niets als je geen code plaats.
0
Jesper

Lid · Topicstarter

Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maar ik bedoel via teamviewer

toevoeging op 3 januari 2012, 15:55:22:
Iemand anders die wil?
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Post het script hier gewoon ...
Als het maar 26 lijnen bevat zal het wel niet goed zijn en zal niemand het stelen emo
0
Jesper

Lid · Topicstarter

Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"../db_connect.php"[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM ticket"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Laatst 10 berichten laten zien[/COLOR]
[COLOR= #0000BB]$res[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR] [COLOR= #FF8000]// query controle[/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]".$id."[/COLOR][COLOR= #007700]])){[/COLOR]

[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM ticket"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Laatst 10 berichten laten zien[/COLOR]
[COLOR= #0000BB]$res[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR] [COLOR= #FF8000]// query controle[/COLOR]



  [COLOR= #0000BB]$scheidingsteken[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]" ) - ( "[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//scheidingsteken tussen 2 berichten[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$scheidingsteken[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$obj[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$res[/COLOR][COLOR= #007700])) {[/COLOR] 

  [COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$obj[/COLOR][COLOR= #007700]->[/COLOR]naam[COLOR= #007700];[/COLOR] 
  [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] smilie[COLOR= #007700]([/COLOR][COLOR= #0000BB]$obj[/COLOR][COLOR= #007700]->[/COLOR]bericht[COLOR= #007700]);[/COLOR]
   

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</span>"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Naam[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" - "[/COLOR][COLOR= #007700];[/COLOR][COLOR= #FF8000]// Scheidingsteken tussen naam en bericht[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//bericht[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$scheidingsteken[/COLOR][COLOR= #007700]; 


}[/COLOR]
?>


Maar dan moet hij via de if isset de link maken van id 1 enz en dan moet je zien wat hij vraagt+je moet kunnen reageren
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Was echt slecht gescript.
Heb het maar even verbeterd.

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"../db_connect.php"[/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]id[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [COLOR= #0000BB]$ticketQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM ticket WHERE id="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$scheidingsteken[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]" ) - ( "[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//scheidingsteken tussen 2 berichten[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$scheidingsteken[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$obj[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ticketQuery[/COLOR][COLOR= #007700]))
    {[/COLOR]
        [COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$obj[/COLOR][COLOR= #007700]->[/COLOR]naam[COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] smilie[COLOR= #007700]([/COLOR][COLOR= #0000BB]$obj[/COLOR][COLOR= #007700]->[/COLOR]bericht[COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</span>"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Naam[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" - "[/COLOR][COLOR= #007700];[/COLOR][COLOR= #FF8000]// Scheidingsteken tussen naam en bericht[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/nl2br"]nl2br[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]//bericht[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$scheidingsteken[/COLOR][COLOR= #007700];
    }
}[/COLOR]
?>
0
Jesper

Lid · Topicstarter

Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik zie nog niks staan
http://ticket.manxi.nl/index.php?p=1
hij moet via de database de ids bekijken en dan moet hij de idss als paginas doen
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jespar schreef:
ik zie nog niks staan
http://ticket.manxi.nl/index.php?p=1
hij moet via de database de ids bekijken en dan moet hij de idss als paginas doen
Als je het verkeert aanroep werkt het natuurlijk niet.
Je moet het aanroepen met ?id
0
Jesper

Lid · Topicstarter

Berichten
3.532
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oke laat dit systeem maar heeft iemand een link van een klein ticket systeem? gewoon een zelfde van one2xs?
0
Berichten
6.867
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Volgens mij bevalt FELS een ticket systeem.
0
Berichten
81
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik heb er een!
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