HTML interesse |
|
lukt niet het probleem is eigelijk
bv deze nicks
Dj_baby
bart
lala
kweetnie
wienog
.....
staan in 1 collom dus bij table 'channel' collom 'userlist'
daar staan die vershilende nicks in nie allemaal apart een collom
daar zou ik graag alle als dat kan aparte links willen hebben
dit is een stukje van men script
<tr style="border: 1px solid black">
<td bgcolor=black><font color=white>Channame</font></td>
<td bgcolor=black><font color=white >Topic</font></td>
<td bgcolor=black><font color=white>Set by</font></td>
<td bgcolor=black><font color=white>users</font></td>
<td bgcolor=black><font color=white>max<br>users</font></td>
<td bgcolor=black><font color=white>userlist</font></td>
<td bgcolor=black><font color=white>banlist</font></td>
</tr>
<?php
// Verbinding maken, een database selecteren
$link = mysql_connect("localhost", "***", "***") or die("Kan geen verbinding maken");
mysql_select_db("demoplace2chatbe") or die("Kan geen database selecteren");
// Een SQL query uitvoeren
$query = "SELECT * FROM channel";
$result = mysql_query($query) or die("Fout bij uitvoeren query");
while($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$channel = $row[channel];
$topic = $row[topic];
if (!$topic) { $topic2 = " "; }
elseif ($topic) { $topic2 = irctext($topic); }
$topicauth = $row[author];
if (!$topicauth) { $topauth = " "; }
elseif ($topicauth) { $topauth = $topicauth; }
$topictime = $row[topictime];
if (!$topictime) { $toptime = " "; }
elseif ($topictime) { $toptime = $topictime; }
$channel1 = str_replace('#', '',$channel);
$channel2 = afkorten($channel1,10);
$userson = $row[users];
$maxusers = $row[maxusers];
$userlist = $row[userlist];
$userlist = str_replace(' ', '<br>',$userlist);
$banlist = $row[banlist];
$banlist = str_replace(' ', '<br>',$banlist);
if (!$banlist) { $banlist1 = " "; }
elseif ($banlist) { $banlist1 = $banlist; }
echo "
<tr>
<td onMouseOver=\"this.className='cursor';window.status='#$channel1 on irc.place2chat.be'; return true\" style=\"border: 1px solid black\" class=\"tmenu\" onClick=\"parent.location='fusion_pages/index.php?page_id=1&server=irc.place2chat.be&channel=$channel1';\" ><a href='fusion_pages/index.php?page_id=1&server=irc.place2chat.be&channel=$channel1'><img src='http://www.place2chat.be/imgchan.php?string=%20$channel2' border='0'></A></td>
<td style=\"border: 1px solid black\" class=\"tmenu\" width=200>$topic2</td>
<td style=\"border: 1px solid black\" class=\"tmenu\">$topauth</td>
<td style=\"border: 1px solid black\" class=\"tmenu\">$userson</td>
<td style=\"border: 1px solid black\" class=\"tmenu\">$maxusers</td>
<td style=\"border: 1px solid black\" class=\"tmenu\>$userlist</td> *** <td style=\"border: 1px solid black\" class=\"tmenu\">$banlist1</td>
</tr>
";
}
<tr style="border: 1px solid black"> <td bgcolor=black><font color=white>Channame</font></td> <td bgcolor=black><font color=white >Topic</font></td> <td bgcolor=black><font color=white>Set by</font></td> <td bgcolor=black><font color=white>users</font></td> <td bgcolor=black><font color=white>max<br>users</font></td> <td bgcolor=black><font color=white>userlist</font></td> <td bgcolor=black><font color=white>banlist</font></td> </tr> <?php // Verbinding maken, een database selecteren $link = mysql_connect("localhost", "***", "***") or die("Kan geen verbinding maken"); // Een SQL query uitvoeren $query = "SELECT * FROM channel"; $channel = $row[channel]; $topic = $row[topic]; if (!$topic) { $topic2 = " "; } elseif ($topic) { $topic2 = irctext($topic); } $topicauth = $row[author]; if (!$topicauth) { $topauth = " "; } elseif ($topicauth) { $topauth = $topicauth; } $topictime = $row[topictime]; if (!$topictime) { $toptime = " "; } elseif ($topictime) { $toptime = $topictime; } $channel2 = afkorten($channel1,10); $userson = $row[users]; $maxusers = $row[maxusers]; $userlist = $row[userlist]; $banlist = $row[banlist]; if (!$banlist) { $banlist1 = " "; } elseif ($banlist) { $banlist1 = $banlist; } <tr> <td onMouseOver=\"this.className='cursor';window.status='#$channel1 on irc.place2chat.be'; return true\" style=\"border: 1px solid black\" class=\"tmenu\" onClick=\"parent.location='fusion_pages/index.php?page_id=1&server=irc.place2chat.be&channel=$channel1';\" ><a href='fusion_pages/index.php?page_id=1&server=irc.place2chat.be&channel=$channel1'><img src='http://www.place2chat.be/imgchan.php?string=%20$channel2' border='0'></A></td> <td style=\"border: 1px solid black\" class=\"tmenu\" width=200>$topic2</td> <td style=\"border: 1px solid black\" class=\"tmenu\">$topauth</td> <td style=\"border: 1px solid black\" class=\"tmenu\">$userson</td> <td style=\"border: 1px solid black\" class=\"tmenu\">$maxusers</td> <td style=\"border: 1px solid black\" class=\"tmenu\>$userlist</td> *** <td style=\"border: 1px solid black\" class=\"tmenu\">$banlist1</td> </tr> "; }
bij *** zou ik ze een aparte link willen geven dan
maar als ik daar
<a href=dowhois.php?nickname=$userlist>
<a href=dowhois.php?nickname=$userlist>
ga em geven alle nicks omdat ze in 1collom zitten
snap je?
groetje's |