Jump to content

piano0011

Members
  • Posts

    189
  • Joined

  • Last visited

Everything posted by piano0011

  1. I feel so stupid that I can't see where is the problem here... I have open a new php tag for each php that I have...maybe I didn't close my html tags? I get it... I can't redirect to the same page....So, I guess that I can't use header after an html output? I must use it before the html? It still doesn't work..... ..
  2. Hey guys! I am able to set the width and height of my logo picture from my html page but can't get it to work in my css.... This is the working html code: <?php include_once 'header.php'; ?> <section class="main-container"> <img class="pc101" src="includes/pictures/pc101.gif" width="10" height="80" alt="pianocourse101 logo"> <br></br> <div class="main-wrapper"> <h3>Welcome to PianoCourse101</h3> <br></br> </div> <div class="main-wrapper"> <h1>At PianoCourse101, your child can now learn how to play Classical music right from the comfort of your own home!<br></br>PianoCourse101 teaching methods are based on the Bastie Piano Basics series and therefore, we highly recommend you to purchase the book prior to your piano lessons!<br></br> At PianoCourse101, you can choose 4 levels beginning with the FREE "Bastien Piano Basics: Primer Level" lessons!<br></br>If you would like a challenge and are ready to progress to the next level, then you can choose to upgrade your free membership to premium membership, where you can access Level 1, Level 2 and Level 3!<br></br>Also, please ensure that you have read the Q/A section of the website and if you have any questions, you can email to our customer support team from the Contact Us section. </h1> </div> <form class="signup-form" action="newsletters.php" method="POST"> <label><center>Enter your E-mail Address</center></label> <br></br> <center><input type="text" name='email' placeholder="Enter E-mail Address"></center> <br></br> <center><button type="submit" name="submit">Subscribe to PianoCourse101!</button></center> <br></br> </form> <img class="snoopy" src="includes/pictures/snoopy.jpg" width="100" height="80" alt="snoopy playing the piano"> </section> This is the code that I am using without the width and height because I am using css: <?php include_once 'header.php'; ?> <section class="main-container"> <img class="pc101" src="includes/pictures/pc101.gif" alt="pianocourse101 logo"> <br></br> <div class="main-wrapper"> <h3>Welcome to PianoCourse101</h3> <br></br> </div> <div class="main-wrapper"> <h1>At PianoCourse101, your child can now learn how to play Classical music right from the comfort of your own home!<br></br>PianoCourse101 teaching methods are based on the Bastie Piano Basics series and therefore, we highly recommend you to purchase the book prior to your piano lessons!<br></br> At PianoCourse101, you can choose 4 levels beginning with the FREE "Bastien Piano Basics: Primer Level" lessons!<br></br>If you would like a challenge and are ready to progress to the next level, then you can choose to upgrade your free membership to premium membership, where you can access Level 1, Level 2 and Level 3!<br></br>Also, please ensure that you have read the Q/A section of the website and if you have any questions, you can email to our customer support team from the Contact Us section. </h1> </div> <form class="signup-form" action="newsletters.php" method="POST"> <label><center>Enter your E-mail Address</center></label> <br></br> <center><input type="text" name='email' placeholder="Enter E-mail Address"></center> <br></br> <center><button type="submit" name="submit">Subscribe to PianoCourse101!</button></center> <br></br> </form> <img class="snoopy" src="includes/pictures/snoopy.jpg" width="100" height="80" alt="snoopy playing the piano"> </section> CSS code for the logo: .pc101 { width: 50px; height: 50px; background-repeat: no-repeat; text-align: center; padding-left: 100px; }
  3. I have the following screen so far and I am happy with the layout.... but as mentioned above, I am not sure why $resultCheck does not work, it doesn't increment the $increment value but it does when I am using $x...
  4. This is strange because I have checked line 87 and can't find anything wrong... Maybe, I forgot to closed a tag <?php include_once 'header.php'; ?> <section class="main-container"> <img class="pc101" src="includes/pictures/pc101.gif" width="10" height="80" alt="pianocourse101 logo"> <br></br> <div class="main-wrapper"> <h3>Welcome to PianoCourse101</h3> <br></br> </div> <div class="main-wrapper"> <h1>At PianoCourse101, your child can now learn how to play Classical music right from the comfort of your own home!<br></br>PianoCourse101 teaching methods are based on the Bastie Piano Basics series and therefore, we highly recommend you to purchase the book prior to your piano lessons!<br></br> At PianoCourse101, you can choose 4 levels beginning with the FREE "Bastien Piano Basics: Primer Level" lessons!<br></br>If you would like a challenge and are ready to progress to the next level, then you can choose to upgrade your free membership to premium membership, where you can access Level 1, Level 2 and Level 3!<br></br>Also, please ensure that you have read the Q/A section of the website and if you have any questions, you can email to our customer support team from the Contact Us section. </h1> </div> <form class="signup-form" action="newsletters.php" method="POST"> <label><center>Enter your E-mail Address</center></label> <br></br> <center><input type="text" name='email' placeholder="Enter E-mail Address"></center> <br></br> <center><button type="submit" name="submit">Subscribe to PianoCourse101!</button></center> <br></br> </form> <img class="snoopy" src="includes/pictures/snoopy.jpg" width="100" height="80" alt="snoopy playing the piano"> </section> <?php include_once 'footer.php'; ?> <?php if(!isset($_SESSION['u_uid'])) { header("Location: index.php?index=notlogin"); exit(); } else { if(isset($_SESSION['u_uid'])) { include_once 'includes/dbh.php'; // update profile image echo '<hr>'; echo '<center> <h3>Welcome '.$_SESSION['u_first'].' '.$_SESSION['u_last']. ' </h3></center>'; echo '<center> <h3>Your last login was at '.$_SESSION['u_session']. '</h3></center>'; echo '<br></br>'; echo '<center><h3><a href="practice_diary.php">Click here to access your Practice Diary!</h3></a></center>'; echo '<br></br>'; echo '<center><h3><a href="uploadform.php">Click here to Upload your Profile Image!</h3></a></center>'; echo '<br></br>'; echo '<center><h3><a href="deleteprofile.php">Click here to Delete your Profile Image!</h3></a></center>'; echo '<br></br>'; echo '<center><h3><a href="reward.php">Click here to view your Reward Page!</h3></a></center>'; echo '<br></br>'; echo '<center><h3><a href="referal.php">Click here for Referal Points!</h3></a></center>'; $sql = "SELECT * FROM review"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); while ($row = mysqli_fetch_assoc($result)) { echo '<hr>'; echo '<br></br>'; echo '<center> '.$row['user_uid']. '</center>'; echo '<br></br>'; echo '<center> "'.$row['review']. '"</center>'; echo '<br></br>'; echo '<center> '.$row['datesubmitted']. '</center>'; } } } } $fullUrl = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; // Primer level error handlers if (strpos($fullUrl, "primer=notchosen") == true) { echo "<br>"; echo "<p class='error'>You have not subscribed for Primer Level Lessons!</p>"; exit(); } if (strpos($fullUrl, "primer=maintenance") == true) { echo "<br>"; echo "<p class='error'>Your Primer Level Lessons are under maintenance</p>"; exit(); } if (strpos($fullUrl, "primer=notlogin") == true) { echo "<br>"; echo "<p class='error'>You have not login!</p>"; exit(); } // Level 1 error handlers if (strpos($fullUrl, "level1=notactivated") == true) { echo "<br>"; echo "<p class='error'>You have not activated your Level 1 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level1=overdue") == true) { echo "<br>"; echo "<p class='error'>Your Level 1 Lessons fee is overdue!</p>"; exit(); } if (strpos($fullUrl, "level1=cancelled") == true) { echo "<br>"; echo "<p class='error'>Your Level 1 Lessons have been cancelled!</p>"; exit(); } if (strpos($fullUrl, "level1=expired") == true) { echo "<br>"; echo "<p class='error'>Your Level 1 Lessons have expired!</p>"; exit(); } if (strpos($fullUrl, "level1=notpaid") == true) { echo "<br>"; echo "<p class='error'>You have not paid for your Level 1 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level1=maintenance") == true) { echo "<br>"; echo "<p class='error'>Your Level 1 Lessons are under maintenance!</p>"; exit(); } if (strpos($fullUrl, "level1=notchosen") == true) { echo "<br>"; echo "<p class='error'>You have not subscribed for Level 1 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level1=notlogin") == true) { echo "<br>"; echo "<p class='error'>You have not login!</p>"; exit(); } // Level 2 error handlers if (strpos($fullUrl, "level2=notactivated") == true) { echo "<br>"; echo "<p class='error'>You have not activated your Level 2 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level2=overdue") == true) { echo "<br>"; echo "<p class='error'>Your Level 2 Lessons fee is overdue!</p>"; exit(); } if (strpos($fullUrl, "level2=cancelled") == true) { echo "<br>"; echo "<p class='error'>Your Level 2 Lessons have been cancelled!</p>"; exit(); } if (strpos($fullUrl, "level2=expired") == true) { echo "<br>"; echo "<p class='error'>Your Level 2 Lessons have expired!</p>"; exit(); } if (strpos($fullUrl, "level2=notpaid") == true) { echo "<br>"; echo "<p class='error'>You have not paid for your Level 2 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level2=maintenance") == true) { echo "<br>"; echo "<p class='error'>Your Level 2 Lessons are under maintenance!</p>"; exit(); } if (strpos($fullUrl, "level2=notchosen") == true) { echo "<br>"; echo "<p class='error'>You have not subscribed for Level 2 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level2=notlogin") == true) { echo "<br>"; echo "<p class='error'>You have not login!</p>"; exit(); } // Level 3 error handlers if (strpos($fullUrl, "level3=notactivated") == true) { echo "<br>"; echo "<p class='error'>You have not activated your Level 3 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level3=overdue") == true) { echo "<br>"; echo "<p class='error'>Your Level 3 Lessons fee is overdue!</p>"; exit(); } if (strpos($fullUrl, "level3=cancelled") == true) { echo "<br>"; echo "<p class='error'>Your Level 3 Lessons have been cancelled!</p>"; exit(); } if (strpos($fullUrl, "level3=expired") == true) { echo "<br>"; echo "<p class='error'>Your Level 3 Lessons have expired!</p>"; exit(); } if (strpos($fullUrl, "level3=notpaid") == true) { echo "<br>"; echo "<p class='error'>You have not paid for your Level 3 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level3=maintenance") == true) { echo "<br>"; echo "<p class='error'>Your Level 3 Lessons are under maintenance!</p>"; exit(); } if (strpos($fullUrl, "level3=notchosen") == true) { echo "<br>"; echo "<p class='error'>You have not subscribed for Level 3 Lessons!</p>"; exit(); } if (strpos($fullUrl, "level3=notlogin") == true) { echo "<br>"; echo "<p class='error'>You have not login!</p>"; exit(); } // Contact form error handlers if (strpos($fullUrl, "contact=mustbeloginfirst") == true) { echo "<br>"; echo "<p class='error'>You must login first before using the contact form!</p>"; exit(); }
  5. Hey guys! I am getting the above error and it is the first time that I have come across that error message, so I am not sure of what to do.
  6. So, I have to use the quote tags around my codes? I am just hoping not to be spoon fed too much but to be guided because I like to learn things that way. I am just hoping that you guys won't change the code too much but back to my curiosity, I was wondering why that $resultCheck did not work in terms of updating my sql query? I am trying to make a practice diary, where the user can submit records of their practice to be inserted into the database and each time that they submit it, there will be a random sticker appearing on the page.... thanks!
  7. Of course.. I am so silly.... The $x has to be more than $resultCheck for it to be false.... I have been advised to just give a random sticker instead of doing it this way and I have got the following code, which does work only if I used if ($x == $increment) instead of if ($resultCheck ==$increment)... I thought that both should work because from my understanding, $resultCheck is the number of rows that the user has? This is the working code: I forgot as well but do we need to add backticks here to format the code? I really appreciate that you guys have replied to my questions... cheers! <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <?php session_start(); include_once 'includes/dbh.php'; include_once 'header.php'; $sql = "SELECT * FROM practice_diary WHERE user_uid = ?;"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "s", $_SESSION['u_uid']); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); $resultCheck = mysqli_num_rows($result); $reset = 5; $x = 0; $stickers = array('<div class="star1"><i class="fas fa-star fa-5x"></div></i>', '<i class="fas fa-gift fa-5x"></i>', '<i class="fas fa-crow fa-5x"></i>','<i class="fas fa-dove fa-5x"></i>','<i class="fas fa-feather fa-5x"></i>','<i class="fas fa-feather-alt fa-5x"></i>','<i class="fas fa-fish fa-5x"></i>'); $random_key = array_rand($stickers); if ($resultCheck >0) { echo $stickers[$random_key]; $increment = 5; $points = 0; for ($x = 1; $x <= $resultCheck; $x++) { if ($x == $increment) { $increment += 5; $points += 100; $sql = "UPDATE rewards Set reward_points = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "is", $points, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } } $sql = "SELECT * FROM rewards WHERE user_uid = ?;"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "s", $_SESSION['u_uid']); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); while ($row = mysqli_fetch_assoc($result)) { if ($row['reward_points'] == 500) { $reward = array('RockStar Rookie'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } else { if ($row['reward_points']== 0) { $reward = array('RockStar Todler'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } else { if ($row['reward_points']== 5000) { $reward = array('RockStar Rookie'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } else { if ($row['reward_points']== 50000) { $reward = array('RockStar Padawan'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } else { if ($row['reward_points']== 500000) { $reward = array('RockStar Jedi'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } } } } } } } } } if I changed the following lines: if ($x == $increment) { $increment += 5; $points += 100; $sql = "UPDATE rewards Set reward_points = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "is", $points, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } } to this, then it won't work: if ($resultCheck == $increment) { $increment += 5; $points += 100; $sql = "UPDATE rewards Set reward_points = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "is", $points, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } } It will just give the user a 100 points but it won't add up anymore points if I don't use $x...
  8. Thanks for the reply. So, do you think that the code does not work? Maybe, I should try using a sandbox account instead?
  9. Hey guys! I have almost got my profile picture page working and here is my code for displaying the profile picture. I am not that familiar with CSS but can I use padding to move the pictures in my nav bar? It just doesn't seem to move it around when I tried it.. Here is part of my php code.. echo "<img class='profile_picture' src='includes/uploads/profile".$id.".".$fileactualext."?".mt_rand()." width = '50' height = '50''>"; } else { echo "<img class='default_picture' src='includes/uploads/profiledefault.jpg' width = '100' height = '50'>"; } and here is my CSS code .profile_picture { -webkit-transform: rotate(-90deg); padding-left: 200px; padding-top: 100px; }
  10. Hey guys! I have been following a video by passive code income on how to implement ipn simulator but I keep getting the message invalid from 000webhost.. Here is my code: <?php if ($_SERVER['REQUEST_METHOD'] != 'POST') { header("Location: index.php"); exit(); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://ipnpb.sandbox.paypal.com/cgi-bin/webscr'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "cmd=_notify-validate&" . http_build_query($_POST)); $response = curl_exec($ch); curl_close($ch); file_put_contents("test.txt", $response);
  11. Hey guys! I am trying to create a counter for giving the user a sticker, each time they input something into the database. At the moment, I can display the stickers on the screen but it just keeps going and won't stop. I guess that Is because of my condition as it is set to less than the row. Do I need to add a second for loop there? Here is my current code that is working . <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <?php session_start(); include_once 'includes/dbh.php'; include_once 'header.php'; $sql = "SELECT * FROM practice_diary WHERE user_uid = ?;"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "s", $_SESSION['u_uid']); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); $resultCheck = mysqli_num_rows($result); $increment = 5; $points = 0; $reset = 5; for ($i = 1; $i<= $resultCheck; $i++) { echo '<div class="star1"> <i class="fas fa-star fa-10x"></i></div>'; if ($i == $increment) { $increment += 5; $points += 100; $sql = "UPDATE rewards Set reward_points = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "is", $points, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } } $sql = "SELECT * FROM rewards WHERE user_uid = ?;"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "s", $_SESSION['u_uid']); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); while ($row = mysqli_fetch_assoc($result)) { if ($row['reward_points'] == 500) { $reward = array('RockStar Rookie'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } else { if ($row['reward_points']== 0) { $reward = array('RockStar Todler'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } else { if ($row['reward_points']== 5000) { $reward = array('RockStar Rookie'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } else { if ($row['reward_points']== 50000) { $reward = array('RockStar Padawan'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } else { if ($row['reward_points']== 500000) { $reward = array('RockStar Jedi'); $reward_earned = implode(',', $reward); $sql = "UPDATE rewards SET reward_earned = ? WHERE user_uid = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { echo 'SQL error'; } else { mysqli_stmt_bind_param($stmt, "ss", $reward_earned, $_SESSION['u_uid']); mysqli_stmt_execute($stmt); } } } } } } } } } ?> However, I tried to add the following lines into my code but it just keeps looping endlessly.. for ($i = 1; $i<= $resultCheck; $i++) { echo '<div class="star1"> <i class="fas fa-star fa-10x"></i></div if ($i == 5) { $i =0; }
×
×
  • 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.