Jump to content

forum

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by forum

  1. When I click start I get this error Status change detected: stopped 16:03:16 [mysql] Error: MySQL shutdown unexpectedly. 16:03:16 [mysql] This may be due to a blocked port, missing dependencies, 16:03:16 [mysql] improper privileges, a crash, or a shutdown by another method. 16:03:16 [mysql] Press the Logs button to view error logs and check 16:03:16 [mysql] the Windows Event Viewer for more clues 16:03:16 [mysql] If you need more help, copy and post this 16:03:16 [mysql] entire log window on the forums In general, no one can figure out this PHP, as I understand it, errors pop up on their own on elementary things, is this solvable, or is there another language where this does not happen?
  2. Of course I tried, but for me what is written here is not all clear, in general I solved this problem in only one way, in the file ntpd-vhosts.conf I registered the root document and then everything worked.
  3. for example when i go to the start page it opens and all the styles work but when i click on enter or go back to the main page it tells me that the file is not found i can never figure out how this PHP works
  4. I can't figure out how paths work, for example I have many folders and files in them, there is a file index.php, it is the main one, in it $path = $_SERVER['DOCUMENT_ROOT']; echo $path; the path shows C:/xampp/htdocs/, what should be written in the files so that the styles and files work? My styles do not work and the files say that the file does not exist
  5. It seems to be simple, but PHP is impossible to understand, the file is there, but it says that it is not there, what to do, how to launch it? The previous project is always launched, why is not clear
  6. This answer is of course not clear to me, just like And why was this published on the PHP Coding Help forum? A newbie will post where he understands, if the developer of some forum has not developed it to full understanding, then the newbie is not to blame)
  7. I can't understand why the styles disappeared <?php $path = $_SERVER['DOCUMENT_ROOT']; ?> <!DOCTYPE html> <html lang="en"> <?include "$path/private/head.php"; ?> <body> <div class="cont"> <?include "$path/private/header.php"; ?> <main class="startPage"> <div id="startLogin" class="startbtn">Log In</div> <div id="startSignup" class="startbtn">Sign Up</div> </main> <?include "$path/private/footer.php"; ?> </div> </body> </html> //это head отдельный файл <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="/css/styles.css"> <script src="/js/jquery-3.7.1.min.js"></script> <script src="/js/script.js"></script> </head> //style *{ margin: 0; padding: 0; box-sizing: border-box; } body{ background-color: gray; } .cont{ height: 100vh; width: 960px; margin: 0 auto; display: grid; grid-template-rows: 100px 1fr 100px; gap: 5px; } header,main,footer{ border-radius: 10px; } header{ background: linear-gradient(white,skyblue); color: rgb(147, 136, 136); font-size: 2.3rem; display: grid; align-content: center; justify-content: center; letter-spacing: 5px; } .startPage{ display: grid; align-content: center; justify-content: center; gap: 20px; background-color: white; } .startbtn{ width: 180px; height: 80px; background: white; border-radius: 10px; display: grid; align-items: center; justify-items: center; font-size: 2rem; color: skyblue; border: 2px solid skyblue; transition: all .5s; cursor: pointer; } .startbtn:hover{ color: pink; box-shadow: 0px 0px 20px gray; } footer{ background-color: white; }
  8. I have text on my monitor with the feedback text class, it doesn’t fit on one line, why is this happening? https://codepen.io/codepcod/pen/RwzojGQ
  9. the file itself with the php extension
  10. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Game Website</title> <link rel="stylesheet" href="css/main.css"> </head> <body> <div class="wrapper"> <header class="container"> <span class="logo">logo</span> <nav> <ul> <li class="active"><a href="/">Home</a></li> <li><a href="about.php">About us</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">News</a></li> <li class="btn"><a href="contacts.php">Contacts</a></li> </ul> </nav> </header> <div class="hero container"> <div class="hero--info"> <h2>3D game Dev</h2> <h1>Work that we produce for our clients</h1> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard.</p> <button class="btn">Get more details</button> </div> <img src="img/joystick.svg" alt=""> </div> <div class="container trending"> <a href="#" class="see-all">SEE ALL</a> <h3>Currently Trending Games</h3> <div class="games"> <div class="block"> <img src="/img/game1.png" alt=""> <span><img src="/img/fire.svg" alt=""> 40 Followers</span> </div> <div class="block"> <img src="/img/game2.png" alt=""> <span><img src="/img/fire.svg" alt=""> 40 Followers</span> </div> <div class="block"> <img src="/img/game3.png" alt=""> <span><img src="/img/fire.svg" alt=""> 40 Followers</span> </div> <div class="block"> <img src="/img/game4.png" alt=""> <span><img src="/img/fire.svg" alt=""> 40 Followers</span> </div> </div> </div> <div class="container big-text"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </div> <div class="container banner"> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> <img src="/img/banner.png" alt=""> </div> </div> <div class="features"> <div class="container"> <h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> <div class="info"> <div class="block"> <img src="/img/feature1.png" alt=""> <p>Mobile Game Development</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature2.png" alt=""> <p>PC Game Development</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature3.png" alt=""> <p>PS4 Game Development</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature4.png" alt=""> <p>AR/VR Solutions</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature5.png" alt=""> <p>AR/ VR design</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature6.png" alt=""> <p>3D Modelings</p> <img src="/img/arrow.png" alt=""> </div> </div> </div> </div> <div class="wrapper"> <div class="container projects"> <h3>Our Recent Projects</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> <div class="images"> <img src="/img/Project1.png" alt=""> <img src="/img/Project2.png" alt=""> <img src="/img/Project3.png" alt=""> </div> <div class="images"> <img src="/img/Project4.png" alt=""> <img src="/img/Project5.png" alt=""> <img src="/img/Project6.png" alt=""> </div> <a href="" class="see-all">SEE ALL</a> </div> <div class="container email"> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> <div class="block"> <div> <h4>Stay in the loop</h4> <p>Subscribe to receive the latest news and updates about TDA. We promise not to spam you! </p> </div> <div> <input type="email" id="emailField" placeholder="Enter email address"> <button onclick="checkEmail()">Continue</button> </div> </div> </div> </div> <footer> <div class="blocks container"> <div> <span class="logo">logo</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> </div> <div> <h4>About us</h4> <ul> <li>Zeux</li> <li>Portfolio</li> <li>Careers</li> <li>Contact us</li> </ul> </div> <div> <h4>Contact us</h4> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> <p>+908 89097 890</p> </div> </div> <hr> <p>Copyright ® 2021 Lorem All rights Rcerved</p> </footer> <script> function checkEmail() { let email = document.querySelector('#emailField').value; if (!email.includes('@')) alert('Нет символа @'); else if (!email.includes('.')) alert('Нет символа .'); else alert('Все отлично!'); } </script> </body> </html> // about.php <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Game Website</title> <link rel="stylesheet" href="css/main.css"> </head> <body> <div class="wrapper"> <header class="container"> <span class="logo">logo</span> <nav> <ul> <li><a href="/">Home</a></li> <li class="active"><a href="/about.html">About us</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">News</a></li> <li class="btn"><a href="/contacts.html">Contacts</a></li> </ul> </nav> </header> <div class="hero-about container"> <div class="info"> <h1>Lorem Ipsum is simply dummy text of the printing and.</h1> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p> <button class="btn">Get in touch</button> </div> <img src="/img/about-banner.png" alt=""> </div> <div class="container work"> <h2>Why work with us</h2> <div class="blocks"> <div class="block"> <span class="badge purple">Lorem ipsum</span> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> </div> <div class="block"> <span class="badge brown">Lorem ipsum</span> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> </div> <div class="block"> <span class="badge green">Lorem ipsum</span> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> </div> </div> </div> </div> <footer> <div class="blocks container"> <div> <span class="logo">logo</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> </div> <div> <h4>About us</h4> <ul> <li>Zeux</li> <li>Portfolio</li> <li>Careers</li> <li>Contact us</li> </ul> </div> <div> <h4>Contact us</h4> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> <p>+908 89097 890</p> </div> </div> <hr> <p>Copyright ® 2021 Lorem All rights Rcerved</p> </footer> </body> </html>
  11. I’ll say right away that I’m not a fan of this language, but for analysis I want to find out why, when moving to another file, it says that the page was not found and the extensions in the HTML browser. , not PHP? It also sometimes happens that from the main page it goes to another page, but if you go back, it gives the error file not found, how can I not find it if I’ve already been there? Are the problems only with this language or is it a problem with the servers? Or am I doing something wrong, but the documentation doesn't help me.
  12. 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?
  13. 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
  14. 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
  15. Damn, how difficult it is to understand all this))
  16. 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?
  17. I still don’t understand why the cycle goes through letters and not numbers?
  18. ``` 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?
  19. 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))
  20. When you can't do something, don't go to extremes)))) I'm not a programmer yet.
  21. 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.
  22. 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.
  23. 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.
  24. yes, i read your post, in the last line i output all the values from the table into columns.
  25. 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
×
×
  • 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.