Jump to content
php.lv forumi

katrai stundai savs task


sandis_m

Recommended Posts

Tātad ir kaut kas šāds pagaidām ar foreach: qb60so71em1ja5foms4.png

 

 

 

Tagad sēžu un domāju vai iekš tā foreach ir vērts taisīt tos 24 sql pieprasījumus, lai izdabūtu katrai stundai savu piezīmi.

 

Kā to būtu labāk darīt ar 1 sql pieprasījumu, lai uzrādītos visas stundas, arī tās, kur nav neviena piezīme.

Edited by sand2s
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
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...