in castlesiege php

Results 1 to 15 of 15
  1. #1
    Member MuonlineCN is offline
    MemberRank
    Feb 2014 Join Date
    93Posts

    big grin in castlesiege php

    SC OWNER: D4rkNyt <------- Guild master
    CS Guild OWNER: DK_Guild <------- D4rkNyt
    LOGO: <---------- Guild LOGO
    something like thhis
    Last edited by MuonlineCN; 26-08-14 at 09:46 AM.


  2. #2
    Member MuonlineCN is offline
    MemberRank
    Feb 2014 Join Date
    93Posts

    Re: [Help] in castlesiege php

    bump. please help

  3. #3
    Member invasionGB is offline
    MemberRank
    Oct 2006 Join Date
    North CarolinaLocation
    93Posts

    Re: [Help] in castlesiege php

    CASTLE_OCCUPY will not give you the castle's owner!

    Change your query to:
    Code:
    SELECT OWNER_GUILD FROM MuCastle_DATA

  4. #4
    Member MuonlineCN is offline
    MemberRank
    Feb 2014 Join Date
    93Posts

    Re: [Help] in castlesiege php

    Quote Originally Posted by invasionGB View Post
    CASTLE_OCCUPY will not give you the castle's owner!

    Change your query to:
    Code:
    SELECT OWNER_GUILD FROM MuCastle_DATA

    then the output result is guild name of castle owner not the castle owner name.
    Last edited by MuonlineCN; 25-08-14 at 10:33 AM.

  5. #5
    Account Upgraded | Title Enabled! ftewegw1 is offline
    MemberRank
    Sep 2012 Join Date
    292Posts

    Re: [Help] in castlesiege php

    Quote Originally Posted by MuonlineCN View Post

    then the output result is guild name of castle owner not the castle owner name.
    after u get owner_guild ,select g_master from guild table where g_name = owner_guild

  6. #6
    Member invasionGB is offline
    MemberRank
    Oct 2006 Join Date
    North CarolinaLocation
    93Posts

    Re: [Help] in castlesiege php

    Quote Originally Posted by MuonlineCN View Post

    then the output result is guild name of castle owner not the castle owner name.
    Castle Siege o the owner of the castle is an ENTIRE GUILD! Not just the guild master. He wanted the owner not the guild master. Read carefully...

  7. #7
    Member MuonlineCN is offline
    MemberRank
    Feb 2014 Join Date
    93Posts

    Re: [Help] in castlesiege php

    Quote Originally Posted by ftewegw1 View Post
    after u get owner_guild ,select g_master from guild table where g_name = owner_guild
    how to apply this in mssql syntax? please help


    SC OWNER: D4rkNyt <------- Guild master
    CS Guild OWNER: DK_Guild <------- D4rkNyt guild
    LOGO: <---------- Guild LOGO
    something like this...
    Last edited by MuonlineCN; 25-08-14 at 06:31 PM.

  8. #8
    Account Upgraded | Title Enabled! ftewegw1 is offline
    MemberRank
    Sep 2012 Join Date
    292Posts

    Re: [Help] in castlesiege php

    Quote Originally Posted by MuonlineCN View Post
    how to apply this in mssql syntax? please help
    select 'here what u wanna get as result' from 'table its in' where 'your search key' = 'variable name' or @variable name
    its something similar to that not hard to get right
    google it

  9. #9
    Member invasionGB is offline
    MemberRank
    Oct 2006 Join Date
    North CarolinaLocation
    93Posts

    Re: [Help] in castlesiege php

    Quote Originally Posted by MuonlineCN View Post
    how to apply this in mssql syntax? please help


    SC OWNER: D4rkNyt <------- Guild master
    CS Guild OWNER: DK_Guild <------- D4rkNyt guild
    LOGO: <---------- Guild LOGO
    something like this...

    This is easy pal. Just modify your query accordingly. You don't need to fetch data twice from different queries. Just one line is good enough. Here..


    SELECT OWNER_GUILD,G_Master,G_Mark FROM MuOnline.dbo.MuCastle_DATA
    INNER JOIN Guild on OWNER_GUILD collate database_default = G_Name collate database_default
    Now code a PHP function to convert binary data (Guild Logo) into human readable picture or something

  10. #10
    Member MuonlineCN is offline
    MemberRank
    Feb 2014 Join Date
    93Posts

    Re: [Help] in castlesiege php

    How about this code sir??


    <?$ownercs=mssql_query("SELECT OWNER_GUILD,G_Master,G_Mark FROM MuOnline.dbo.MuCastle_DATA
    INNER JOIN Guild on OWNER_GUILD collate database_default = G_Name collate database_default");
    while($row=mssql_fetch_assoc($ownercs)){
    $G_NAME1=$row['G_Name'];
    $G_Master1=$row['G_Master'];
    $G_Mark1=$row['G_Mark'];
    $logo=urlencode(bin2hex($G_Mark1));
    ?>

    <td><div align="center" Class="zarc">
    <?=$G_NAME1:?></div></td>
    <td><div align="center" Class="zarc">
    <?=$G_Master1:?></div></td>

    <td><div align="center"><img src="get.php?aL=<?=$logo;?>.png" alt="" width="36" height="36"
    style="border: 1px solid #2a2a2a ; background-color:#000000;" align="absmiddle"></div></td>

    </tr>
    <?

    }
    ?>
    Last edited by MuonlineCN; 26-08-14 at 06:21 AM.

  11. #11
    Member invasionGB is offline
    MemberRank
    Oct 2006 Join Date
    North CarolinaLocation
    93Posts

    Re: [Help] in castlesiege php

    Because of this, I am assuming you are using MUCORE...
    get.php?aL=
    I don't use mucore but looking at the code, it may work like this...

    <?
    $ownercs = $core_db->Execute("SELECT OWNER_GUILD,G_Master,G_Mark FROM MuOnline.dbo.MuCastle_DATA INNER JOIN Guild on OWNER_GUILD collate database_default = G_Name collate database_default");
    while(!$ownercs->EOF){
    $G_NAME1 = $ownercs->fields[0];
    $G_Master1 = $ownercs->fields[1];
    $G_Mark1 = $ownercs->fields[2];
    $logo = urlencode(bin2hex($G_Mark1));


    echo '<tr>
    <td><div align="center" Class="zarc">'.$G_NAME1.'</div></td>
    <td><div align="center" Class="zarc">'.$G_Master1.'</div></td>
    <td><div align="center"><img src="get.php?aL='.$logo.'.png" alt="" width="36" height="36" style="border: 1px solid #2a2a2a ; background-color:#000000;" align="absmiddle"></div></td>
    </tr>';


    $ownercs->MoveNext();

    }
    ?>
    Hope it helps...

    - - - Updated - - -

    If I were you I fetch the data directly instead of creating a bucle. The owner is just one guild not many, but that can work so...

  12. #12
    Member MuonlineCN is offline
    MemberRank
    Feb 2014 Join Date
    93Posts

    Re: [Help] in castlesiege php

    Quote Originally Posted by invasionGB View Post
    Because of this, I am assuming you are using MUCORE...


    I don't use mucore but looking at the code, it may work like this...


    Hope it helps...

    - - - Updated - - -

    If I were you I fetch the data directly instead of creating a bucle. The owner is just one guild not many, but that can work so...


    yes it is mucore. sorry if my syntax is very complicated. coz im newbie in php.btw THANK YOU. i will try it..


    UPDATE!
    <div id="zarc2">

    <table style="width:500px">


    <tr>
    <?
    $ownercs = $core_db->Execute("SELECT OWNER_GUILD,G_Master,G_Mark FROM MuOnline.dbo.MuCastle_DATA INNER JOIN Guild on OWNER_GUILD collate database_default = G_Name collate database_default");
    while(!$ownercs->EOF){
    $G_NAME1 = $ownercs->fields[0];
    $G_Master1 = $ownercs->fields[1];
    $G_Mark1 = $ownercs->fields[2];
    $logo = urlencode(bin2hex($G_Mark1));




    echo '<tr>
    <td><div align="center" Class="zarc">'.$G_NAME1.'</div></td>
    <td><div align="center" Class="zarc">'.$G_Master1.'</div></td>
    <td><div align="center"><img src="get.php?aL='.$logo.'.png" alt="" width="36" height="36" style="border: 1px solid #2a2a2a ; background-color:#000000;" align="absmiddle"></div></td>
    </tr>';




    $ownercs->MoveNext();


    }
    ?>
    </tr>
    </table>





    </div>
    codes not working. any idea? the web totataly not working after inserting the syntax..
    Last edited by MuonlineCN; 26-08-14 at 09:29 AM.

  13. #13
    Member MuonlineCN is offline
    MemberRank
    Feb 2014 Join Date
    93Posts

    Re: [Help] in castlesiege php

    BUMP.... badly need help here...

  14. #14
    Member invasionGB is offline
    MemberRank
    Oct 2006 Join Date
    North CarolinaLocation
    93Posts

    Re: [Help] in castlesiege php

    I can help you out via teamviewer if you want.

  15. #15

    Re: in castlesiege php

    can you exlplain exactlyy what you need? its confusing with "SC" owner
    and such.. who will be alliance master owner? who will be the guild master owner etc?
    u should make example "image"



Advertisement