Jump to content

forum

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by forum

  1. Why, when laying out in the header, and then in the main or footer, the top elements in the same main or header begin to shift, is there really no tag that fixes these elements?
  2. https://codepen.io/codepcod/pen/yLrzwRR in .footer__item-input the bottom line goes 60px to the right and I want to make sure the input text doesn't reach the arrow
  3. https://codepen.io/codepcod/pen/abxpRGd swiper-slide set to fixed width but it doesn't work, why is it stretched to fill the whole screen, I tried wide display but it doesn't work in my unit
  4. Damn, how difficult it is to understand all this))
  5. yes, but here the line is const str = 'HELLO'; And in the loop there is also a comparison of numbers, then where do the letters come from? str.length I see the number 5 in the console, why do the letters appear?
  6. I still don’t understand why the cycle goes through letters and not numbers?
  7. ``` const str = 'HELLO'; let result = ''; let i = 0; while (i < str.length) { const current = str; // console.log(current) // console.log(i) ++i; result = `${result}${current.toLowerCase()}` i++; } console.log(result) ``` why does hlo display?
  8. The answer is clear to me in the code, I just asked for an explanation of the output from the table itself, since the table consists of rows, so I thought that the output would be immediately without a loop))) of course, thanks for writing the code, where I already have an understanding of how to write the code, but what I asked to explain, well, sorry, I want to understand the details, personally at school for 2 years we were never shown the output of the entire table, so I thought it was very simple))
  9. When you can't do something, don't go to extremes)))) I'm not a programmer yet.
  10. Yes, I don’t care what you want to block here, if you can’t clearly explain, then don’t go here with your thoughts, I asked a specific question where I can only agree, but not understand it, or try to explain it so that the student understands, or don't be smart, I personally don't know how to display the entire table, because I thought it was very easy to do.
  11. Of course it's possible as you say, but how else can I learn to understand it, for example, I don't write long code when it's confusing for any beginner, I always want to write shorter code in the first steps.
  12. I realized that now it’s very difficult to explain to beginners that they understood and remembered the form of writing code, I personally don’t understand this now, maybe when I don’t understand how to write correctly, but it’s all difficult and not clear, for example, as I wrote code, it's a bit clear to me what's going on in the code and it's easier to remember.
  13. yes, i read your post, in the last line i output all the values from the table into columns.
  14. I understand that this is very difficult. I wrote the code as it is clear to me and the result is also there, $query=$db->query("SELECT * FROM msg"); foreach($query as $row){ echo "$row[id]: $row[msg]: $row[login]: $row[time_msg]<br>"; } although for me it would not suit) but what to do if it was invented to write this php code
  15. Yes, I know html, but I also thought that I knew PHP, but I decided to display the entire table and it turned out that I don’t know how to do it,))) I thought that I would write the variable into which we make the request in the echo, and that’s all, and then it turned out that not everything is so simple, the brain does not want to perceive what is already in the row table, but they need to be connected through a sampling cycle, so many actions are not clear why, I understood when it was necessary to compare something line by line or something look in the table, but why such difficulties in the usual output here is not yet possible to understand, you just need to agree this is how it should be)
  16. Oh, I'm completely confused here, I won't be able to write this for a long time))))
  17. Yes, this code format is hard to remember, it seemed that everything would be simple, but no, everything is somehow complicated
  18. I always look at the result. This is a language I have been studying for 2 years, and still I don’t understand how many students do some moments, that’s why I ask questions because I don’t understand it,
  19. But if the table is already created in the database, why complicate the code so much to display the entire table? For example, in a group of 100 students, not a single student understands this complex record and it is not clear how to explain it, it remains to be said, you just need to write it down, of course, it’s stupid, but we don’t understand.
  20. I read, but a lot is not clear, if the database has a table consisting of rows and columns, why renew it into a row. I can’t understand this)) if the table already consists of a row? how can this be understood?
  21. somehow you wrote everything confusingly, but why doesn’t it display the entire table as I wrote? because it's clear and simple.
  22. Hello, how to display the whole table from the base, here is my code, why is it not working? $query=$db->query("SELECT * FROM msg"); echo $query;
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.