in tabel smilies weegeven
ik heb dit nu om de smiles via mysql weer te geven.
Maar nu worden ze allemaal onder elkaar gezet, maar ik wil dat ik 6 rijtjes van vier heb, dus:
......
......
......
......
Hoe doe ik dat?
Hier de codes
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
In de style
<style rel=stylesheet type="txt/css">
.smiles {LEFT: 450px; position: absolute; TOP: 50px;}
</style>
In php
function echo_smiles()
{
global $cfg;
if(!empty($cfg['smiles']))
{
$query = mysql_query("SELECT * FROM tbl_smiles");
$result = mysql_result(mysql_query("SELECT COUNT(1) FROM tbl_smiles"),0);
if(!empty($result))
{
while($row = mysql_fetch_assoc($query))
{
echo " <table border='0' class='smiles'><a href=\"javascript:smile('" . addslashes($row['smile_tag']) . "')\"><img src=\"pictures/smiles/" . $row['smile_file'] . "\" border=\"0\"></a></table>";
}
echo "<br>\n";
}}}
<style rel=stylesheet type="txt/css">
.smiles {LEFT: 450px; position: absolute; TOP: 50px;}
</style>
In php
function echo_smiles()
{
global $cfg;
if(!empty($cfg['smiles']))
{
$query = mysql_query("SELECT * FROM tbl_smiles");
$result = mysql_result(mysql_query("SELECT COUNT(1) FROM tbl_smiles"),0);
if(!empty($result))
{
while($row = mysql_fetch_assoc($query))
{
echo " <table border='0' class='smiles'><a href=\"javascript:smile('" . addslashes($row['smile_tag']) . "')\"><img src=\"pictures/smiles/" . $row['smile_file'] . "\" border=\"0\"></a></table>";
}
echo "<br>\n";
}}}
Heeft niemand een idee, ik kom er namelijk niet uit. EN het ziet er nu ook niet uit, met alle smilies onder elkaar. Ik hoop dat iemand iets weet.
Weet je hem niet te vinden laat dan even weten dan help ik je.
Code (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
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
<?php
function echo_smiles()
{
global $cfg;
if(!empty($cfg['smiles']))
{
$query = mysql_query("SELECT * FROM tbl_smiles");
$result = mysql_result(mysql_query("SELECT COUNT(1) FROM tbl_smiles"),0);
if(!empty($result))
{
$counter = 1;
echo "<table border='0' class='smiles'>";
while($row = mysql_fetch_assoc($query))
{
if($counter == 1)
{
echo "<tr>";
}
echo " <td><a href=\"javascript:smile('" . addslashes($row['smile_tag']) . "')\"><img src=\"pictures/smiles/" . $row['smile_file'] . "\" border=\"0\"></a></td>";
$counter++;
if($counter > 4)
{
echo "</tr>";
$counter = 1;
}
}
echo "</table>\n";
echo "<br>\n";
}
}
}
?>
function echo_smiles()
{
global $cfg;
if(!empty($cfg['smiles']))
{
$query = mysql_query("SELECT * FROM tbl_smiles");
$result = mysql_result(mysql_query("SELECT COUNT(1) FROM tbl_smiles"),0);
if(!empty($result))
{
$counter = 1;
echo "<table border='0' class='smiles'>";
while($row = mysql_fetch_assoc($query))
{
if($counter == 1)
{
echo "<tr>";
}
echo " <td><a href=\"javascript:smile('" . addslashes($row['smile_tag']) . "')\"><img src=\"pictures/smiles/" . $row['smile_file'] . "\" border=\"0\"></a></td>";
$counter++;
if($counter > 4)
{
echo "</tr>";
$counter = 1;
}
}
echo "</table>\n";
echo "<br>\n";
}
}
}
?>