Jump to content

xampi

Member
  • Posts

    36
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. xampi

    PHP help

    Ty so much guys for the help!
  2. xampi

    PHP help

    I can't do it with any array. It's an exercice from school.
  3. xampi

    PHP help

    Look I have something more elaborated that doesn't work. I hope it helps you understand what i'm trying to get: // $numbers = ''; // for($i=0;$i<=9;$i++){ // $rannumberi= ''; // $rannumber.= mt_rand(1, 10); // // if(strstr($numbers, $rannumber) == FALSE) { // print($numbers).'<br>'; // $numbers.= $rannumber; // // }else{ // // $i = $i - 1; // // } // }
  4. xampi

    PHP help

    The thing is that I want numbers from 1 to 10 randomly generated with no repetitions. I need them to be random, not from 1 to 10 thanks to $i but thanks for the help!
  5. xampi

    PHP help

    Hi guys, I want to create a STRING that contains numbers from 1 to 10 without repetition. How can I do that? (This is what I have) (I'm very newbie in programming). <?php for($i=0;$i<=9;$i++){ $rannumber=''; $rannumber.= mt_rand(1, 10); print($rannumberi); } ?>
  6. xampi

    PHP help

    Wow. Ty for helping!
  7. xampi

    PHP help

    Thanks for the help guys. It was as easy as closing the 'tr' and open it back again after a counter of 10. Here the solution: <?php echo "<table>"; echo "<tr>"; for($i=0;$i<=99;$i++){ $counter = 0; if(($i % 10) == 0){ echo "</tr><tr>"; } for($j=1;$j<=$i;$j++){ if($i % $j== 0){ $counter++; } } if($counter == 2){ echo "<td style='background-color: yellow'>".$i."</td>"; }else{ echo "<td style='background-color: blue'>".$i."</td>"; } } echo "</tr>"; echo "</table>"; ?>
  8. xampi

    PHP help

    Is there a way to do it using just loops, variables and IF's?
  9. xampi

    PHP help

    Ty for helping @minibois! Sadly it still echo's like this. Here an example I would like to output:
  10. xampi

    PHP help

    So I want to create a table with php and html that outputs a 10x10 table with numbers from 0 to 99 and differentiating prime numbers: The problem is that every time it checks prime numbers from 0 to 99 it prints it in every '<tr>'. Ty in advance for the help! <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body> <?php echo "<table>"; for($i=0; $i < 10; $i++){ echo "<tr>"; for($x=0; $x < 10; $x++){ for($i=0;$i<=99;$i++){ $counter = 0; for($j=1;$j<=$i;$j++){ if($i % $j==0){ $counter++; } } if($counter==2){ echo "<td style="background-color: yellow;">".$i."</td>"; }else{ echo "<td style="background-color: blue>".$i."</td>"; } } echo "</tr>"; } } echo "</table>"; ?> </body> </html>
  11. xampi

    MPRT | GtG

    Okay, thank u all guys!
  12. xampi

    MPRT | GtG

    Hi guys, I've been looking the specs of 'Gigabyte AORUS FI27Q' and i saw that it has a response time of 1ms (MPRT). Which kinda is the ghosting transition time. This monitor actual response time is 4ms if i'm not mistaken. My question is: Does this monitor comunicate with the graphics card with a delay of 4ms or 1ms? If it's 4ms will i notice the differance by coming from a 1ms one? Thanks for the help in advance and sorry for my english!
  13. But would this work on a 8/9 gen mobo?
  14. Hi guys, recently my i7 broke and I won't get the replacement until a month. Can you guys tell me the cheapest processor that works with Aorus Z390 ELITE please. Thanks in advance!
×