Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [PHP & MySQL] seperates durch link öffnen + anzeigen | php (https://www.gegen-bilderklau.net/thread.php?threadid=121260)


Geschrieben von _-PinkPunker-_ am 27.10.2007 um 17:59:

  seperates durch link öffnen + anzeigen | php

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
<?php
   include('db.php');
   include('head.php');
   $artikel $_GET['artikel'];

   $sql "SELECT id, name, art, artikel, bild, autor FROM artikel ORDER BY name ASC";
   $result mysql_query($sql);

   while ($row mysql_fetch_assoc($result)) {
      echo "
<table id='artikel'>
<tr>
<th rowspan='4' padding-right='9'><img src='$row[bild]'></th>
<td valign'top'><b>name des artikels</b> $row[name]</td>
</tr>
<tr>
<td valign'top'><b>kategorie</b> $row[art]</td>
</tr>
<tr>
<td valign'top'><b>autor</b> $row[autor]</td>
</tr>
<tr>
<td valign'top' id='artikel'><a href='show_all.php?artikel=$artikel' target='_blank'>lesen</a></td>
</tr>
</table>

<p>";
   }
   mysql_close();
?>


ich möchte $artikel gern seperat ausgeben, aber wenn ich den link betätige, dann ändert sich nichts an der seite, es wird kein artikel angezeigt..

würd mich freun, wenn mir wer helfen könnte smile



Geschrieben von Maxy am 02.11.2007 um 10:16:

 

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:

<?php
   include('db.php');
   include('head.php');
   $artikel $_GET['artikel'];

   $sql "SELECT id, name, art, artikel, bild, autor FROM artikel ORDER BY name ASC";
   $result mysql_query($sql);

   while ($row mysql_fetch_assoc($result)) {
      echo "
<table id='artikel'>
<tr>
<th rowspan='4' padding-right='9'><img src='
$row[bild]
'></th>
<td valign'top'><b>name des artikels</b> 
$row[name]
</td>
</tr>
<tr>
<td valign'top'><b>kategorie</b> 
$row[art]
</td>
</tr>
<tr>
<td valign'top'><b>autor</b> 
$row[autor]
</td>
</tr>
<tr>
<td valign'top' id='artikel'><a href='show_all.php?artikel=$artikel' target='_blank'>lesen</a></td>
</tr>
</table>

<p>";
   }
   mysql_close();
?>


Schonmal so probiert? Ich mach's immer so ähnlich wie du und so klappt's eigentlich immer, wenn die Variabeln einzeln stehen.


Forensoftware: Burning Board, entwickelt von WoltLab GmbH