Jump to content
  • 0
Cyrix

Guild Emblem - Flux CP

Question

9 answers to this question

Recommended Posts

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
Link to comment
Share on other sites

<img src="<?php echo $this->emblem($guild->guild_id) ?>

 

$guild->guild_id would be obviously the ID of the guild you want to show

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.