Jump to content
  • 0

how to made this on sql ?:D or php


Kariton Revolution

Question


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

 

set .@count, query_sql ("SELECT char_id,value FROM `global_reg_value` WHERE str='reborncount' ORDER BY value DESC",.@charid,.@reborncount);

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  12/10/13
  • Last Seen:  

sql -> SELECT char_id,value FROM `global_reg_value` WHERE str='reborncount' ORDER BY value DESC

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

sql -> SELECT char_id,value FROM `global_reg_value` WHERE str='reborncount' ORDER BY value DESC

how i can add that on my sql and php? can you give me a code of it :D thankyou!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  12/10/13
  • Last Seen:  

idk what are you trying to do, but that the sentence SQL

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

idk what are you trying to do, but that the sentence SQL

how can i make that on my sql 

Edited by Kariton Revolution
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

$sql = "SELECT char_id,value FROM `global_reg_value` WHERE str='reborncount' ORDER BY value DESC";
$sth  = $server->connection->getStatement($sql);

$sth->execute($bind);

$result = $sth->fetchAll();

something like this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

$sql = "SELECT char_id,value FROM `global_reg_value` WHERE str='reborncount' ORDER BY value DESC";
$sth  = $server->connection->getStatement($sql);

$sth->execute($bind);

$result = $sth->fetchAll();

something like this.

 

sir emistry can you explain it to me how i can make that on mysql :D hahah sorry i can't understand it 

what table should i do 

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

now you're confusing me.

what you want actually.

  • a php to execute sql
  • a sql that retrieve data from mysql
  • a mysql table to store information
  • etc
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...