URL: https://www.overclockers.at/coding-stuff/php_und_sql_34511/page_1 - zur Vollversion wechseln!
Zitat<html>
<head>
<title>1337</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<center>
<font color="#FFFFFF"></font><img src="gfx/intranet_grau.jpg" width="567" height="143">
</center>
<br>
<table width="12%" border="0" height="387">
<tr>
<td>
<center>
<img src="gfx/news.jpg" width="85" height="28">
</center>
</td>
</tr>
<tr>
<td>
<center>
<img src="gfx/projekte.jpg" width="85" height="28">
</center>
</td>
</tr>
<tr>
<td>
<center>
<img src="gfx/blackboard.jpg" width="85" height="28">
</center>
</td>
</tr>
<tr>
<td>
<center>
<img src="gfx/formulare.jpg" width="85" height="28">
</center>
</td>
</tr>
<tr>
<td>
<center>
<img src="gfx/infos.jpg" width="85" height="28">
</center>
</td>
</tr>
<tr>
<td>
<center>
<img src="gfx/sonstiges.jpg" width="85" height="28">
</center>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<?php
include ("config.inc");
$db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Datenbank offline? Fehler nummero 1!");
@MYSQL_SELECT_DB($db_name);
$result = mysql_query("select * from intranet_news");
while ($intranet_news = mysql_fetch_row($result))
{
echo ("<center>$intranet_news[0]<br>_____________<br> <br>$intranet_news[1],<br>$intranet_news[3]<br>__________</center>");
}
//echo mysql_error();
?>
</body>
</html>


was hat das mit php und sql zu tun!? ist ein reines html problem.
machstu noch eine table, die nur 2 spalten hat: in die linke das menü und in die rechte den content.
oder du erweiterst die existierende table um eine spalte, was aber etwas aufwändiger ist.
hmmm, danke, daran hab i noch net gedacht!
hint: gib mal http://yourhost/yourdir/config.inc in deinen browser 
Zitat von .deRElict.hint: gib mal http://yourhost/yourdir/config.inc in deinen browser

Zitat von .deRElict.hint: gib mal http://yourhost/yourdir/config.inc in deinen browser
Zitat von .deRElict.hint: gib mal http://yourhost/yourdir/config.inc in deinen browser

Eine Sicherheitslücke - seine config-Datei ist einfach mit dem Browser anzuzeigen, und da stehen (nehm ich mal an) die Zugangsdaten zur Datenbank drin o.ä.
Zitat von alexsbHäääää?????
Was is das??????

overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2026