Jump to content
php.lv forumi

Recommended Posts

Atkal es! :D Skatos es te vienīgais taisu postus. Visi jau tik gudri ka paši zin, bet es vēl te kaut ko maisos.

man ir tāda lieta ka es gribu lai varētu uzlikt order by nevis kādu table bet

 

$q = "SELECT * FROM top ORDER BY ?";

 

$net_vote = $row['votes_up'] - $row['votes_down'];

$net_vote jo vajag lai pirmajā vietā rāditos ar lielāko kopējo blasu skaitu!

Link to post
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
Reply to this topic...

×   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.

Loading...
×
×
  • Create New...