Hoe krijg ik dit op me site?

Gestart doorArjann13 reacties14 weergaven

14 berichten · pagina 1 van 1

Arjann

Lid · Topicstarter

Berichten
2.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
<meta http-equiv="refresh" content="45" />

<link rel="StyleSheet" href="style_public.css" type="text/css">

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/require"]require[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]djmessage_edit.php[/COLOR][COLOR= #007700]);[/COLOR]?>

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/require"]require[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]connect.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/require"]require[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]functions.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$ipaddr[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT id, toip, message, fromdj, expire FROM rp_alerts"[/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]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]= @[/COLOR][URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]expire[/COLOR][COLOR= #007700]] <=[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"G.i"[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM rp_alerts WHERE id = $row[id]"[/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][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]expire[/COLOR][COLOR= #007700]] >[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"G.i"[/COLOR][COLOR= #007700])&&[/COLOR][COLOR= #0000BB]$toip[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]"ALL"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<script language="JavaScript" type="text/javascript">
alert("DJ [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]fromdj[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] Says: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]message[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")</script>[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toip[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"ALL"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<script language="JavaScript" type="text/javascript">
alert("DJ [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]fromdj[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] Says: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]message[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")</script>[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ipaddr[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toip[/COLOR][COLOR= #007700]]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<script language="JavaScript" type="text/javascript">
alert("DJ [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]fromdj[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] Says: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]message[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")</script>[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM rp_alerts WHERE id = $row[id]"[/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]
?>


Deze code wil ik in me index.HTML
maar hoe krijg ik da?
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
.php van maken.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Copy => Paste

File Rename => index.php
biggrin
E: Erik voortpieper sadley
0
Berichten
283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ben je een Belg ofzo?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Keizz schreef:
Ben je een Belg ofzo?
Geen discriminatie redface
0
Arjann

Lid · Topicstarter

Berichten
2.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
He, dat snap ik ook wel dat ik hem in een .php index moet doen, maar die heb ik ook al voor me dj panel nodig. dus is het mogelijk om hem i9n html te maken.
dat bedoelde ik eigenlijk
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Mindcrime schreef:
He, dat snap ik ook wel dat ik hem in een .php index moet doen, maar die heb ik ook al voor me dj panel nodig. dus is het mogelijk om hem i9n html te maken.
dat bedoelde ik eigenlijk
Je kan dan die voor DJ paneel een andere naam geven?
0
Arjann

Lid · Topicstarter

Berichten
2.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja, en dan me index.html in php maken...
kan dat via zon html > php generator?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Mindcrime schreef:
ja, en dan me index.html in php maken...
kan dat via zon html > php generator?
Ik begrijp je niet?
0
Arjann

Lid · Topicstarter

Berichten
2.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
er is op internet zo een generatore waar je je html code moet plaatsen, en dan krijg je hem als php terug
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mindcrime schreef:
er is op internet zo een generatore waar je je html code moet plaatsen, en dan krijg je hem als php terug
In php kan je ook gewoon html hoor, anders doe je zo :

echo HTMLCODE;
?>
0
Arjann

Lid · Topicstarter

Berichten
2.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ooh dankje
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee, dat vorige negeer je, je moet je html code tussen omgekeerde tags plaatsen

?>
HTML

Zo dus.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Alemaalte schreef:
Nee, dat vorige negeer je, je moet je html code tussen omgekeerde tags plaatsen

?>
HTML

Zo dus.
Moet niet, Is wel overzichtelijker (Vindt ik)
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