Jump to content
  • 0

Guild Emblem - Flux CP


Question

9 answers to this question

Recommended Posts

Posted (edited)

pretty sure it's supposed to be like this:


<table>
<?php
 
// Connect to database server
mysql_connect("127.0.0.1", "ragnarok", "ragnarok") or die (mysql_error ());
// Select database
mysql_select_db("ragnarok") or die(mysql_error());
// SQL query
$strSQL = "SELECT * from `guild` where `emblem_data` IS NOT NULL";
 
// Execute the query (the recordset $rs contains the result)
$rs = mysql_query($strSQL);
 
// Loop the recordset $rs
while($row = mysql_fetch_array($rs)) {
echo "<tr>";
echo "<td>" . $row['name'] . "</td>";
echo '<td><img src="'.$this->emblem($row['emblem_id']).'"</td>';
echo "</tr>";
}
mysql_close();
?>
</table>

haven't tried it tho

Edited by kenshn111
  • Upvote 1
Posted (edited)

im using:

 

 

 
<table>
<tr>
<td></td>
<td><img src="<?php echo $this->emblem($guild->guild_id)$idemb ?>"</td>
</center>
</tr>
<?php
 
// Connect to database server
mysql_connect("127.0.0.1", "ragnarok", "ragnarok") or die (mysql_error ());
// Select database
mysql_select_db("ragnarok") or die(mysql_error());
// SQL query
$strSQL = "SELECT * from `guild` where `emblem_data` IS NOT NULL";
 
// Execute the query (the recordset $rs contains the result)
$rs = mysql_query($strSQL);
 
$idemb=$row['emblem_id']
 
// Loop the recordset $rs
while($row = mysql_fetch_array($rs)) {
echo "<tr>";
echo "<td>" . $row['name'] . "</td>";
echo "<td></td>";
echo "</tr>";
}
echo "</table>";
mysql_close();
?>

 

but url image = 127.0.0.1/?module=guild&action=emblem&login=FluxRO&charmap=FluxRO&id=

Edited by Cyrix
Posted (edited)

pretty sure it's supposed to be like this:

 

<table>
<?php
 
// Connect to database server
mysql_connect("127.0.0.1", "ragnarok", "ragnarok") or die (mysql_error ());
// Select database
mysql_select_db("ragnarok") or die(mysql_error());
// SQL query
$strSQL = "SELECT * from `guild` where `emblem_data` IS NOT NULL";
 
// Execute the query (the recordset $rs contains the result)
$rs = mysql_query($strSQL);
 
// Loop the recordset $rs
while($row = mysql_fetch_array($rs)) {
echo "<tr>";
echo "<td>" . $row['name'] . "</td>";
echo '<td><img src="'.$this->emblem($row['emblem_id']).'"</td>';
echo "</tr>";
}
mysql_close();
?>
</table>

haven't tried it tho

 

Thank you... Works fine... (+1)

Solved.

Edited by Cyrix
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...