Jump to content
php.lv forumi

Recommended Posts

Posted

Tas ir gatavs sql kods tabulai ar nosaukumu "tabula", kurā ir šādi divi skaitliski stabiņi "stabins1" un "stabins2". Es nezinu, kāda ir Tevi interesējošās tabulas struktūra.

Posted

Nu man ir šāds php kods:

$sql="SELECT SQL_CALC_FOUND_ROWS * FROM `stati` WHERE pos='Goalie' ORDER BY `stati`.`PPG` DESC LIMIT 0, 30 ";

Un man vajag izvilt no datubazes: S - PPG

Posted

Manuāli nav rakstīts kaa var tagad var sakartot.

ORDER BY `stati`.`(`S` - `PPG`) AS `Starpiba`

Ierakstu tadu kodu met uzreiz erroru:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'S` - `PPG`) AS `Starpiba` DESC LIMIT 0, 30' at line 1

Posted

Manuāli nav rakstīts kaa var tagad var sakartot.

ORDER BY `stati`.`(`S` - `PPG`) AS `Starpiba`

 

Ja nu, lai cik tas nebūtu dīvaini, manuāļos nav rakstīts par katru konkrēto gadījumu, kas rodas izstrādes procesā. Baigi besīgi, protams, es piekrītu. Bet vispār jau klīst runas, ka cilvēkiem esot, piemēram, tādas spējas kā lietot analoģiju, un tad visus iespējamos bezgalīgi daudzos variantus manuālī var neuzskaitīt...

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