Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

dialgarocksful

Member
  • Content Count

    371
  • Joined

  • Last visited

Posts posted by dialgarocksful


  1. Hi, my system specs is currently R5 2600, Noctua NH-L12s, 2x8GB Patriot Viper Steel 3000MHz, Gigabyte B450i, Corsair SF450, all within SG13. Currently running 3.8GHz at 1.2v and was wondering if I there's a way to reach 4 (or up to 4.2) within my specs. Also, was wondering I can't do memory-provided XMP settings and I have to manually OC it according to DRAM calculator.

     

    Quick edit: Collecting first suggestions before restarting PC. List away!


  2. 3 minutes ago, Pangea2017 said:

    you still have it. The table would look like this:

    item_name store_ID price
    a 1 100
    a 2 200
    a 3 150
    b 2 1000
    c 1 500
    c 3 700

    I think I got it using least() and having a where clause that the price > 0.

     

    Next dilemma is getting the name of the column (from the original table where the price is equal to the answer of the least query ).

     


  3. 8 minutes ago, Pangea2017 said:

    why not redesign the table?

    just three rows: item_name, store, price

    just use a normal search and you don't need to save any values for stores which don't have the item.

    it's more of a price comparison tool to get the cheapest possible price (much like pcpartpicker's). i still need the original prices of items per store


  4. Hi, I have this dilemma here. I'd like to know if using min() is viable for rows. Am trying to get the lowest price that isn't a zero per item

     

    EDIT: I need to call the column_name with matching price from store1/store2/store3.

     

    a.png


  5. On 12/13/2017 at 7:45 AM, Godlygamer23 said:

    What are your temps when doing long-term stress testing? Stock cooling won't necessarily hinder performance, and in many instances, it might be perfectly fine, especially if you're only planning to do 50% load on the CPU. Alternatively, you could run your CPU at 100%, but run both Folding@home and some sort of crypto-mining application, but you do need to consider profitability with the mining applications.

    I usually reach 71-79C on a long-term stress testing under stock. I limit my former mining to 50% load so that it won't reach peak temp easily


  6. 6 minutes ago, vorticalbox said:

    are you hand coding all the data? How many are we talking?

     

    either way i would use JavaScript for this, make a array/dictionary in json then load depending on what is picked. 

    yes, I'm hand-coding all. Let's say around 10 items per category. I'm thinking of having an sql database and just call it whenever, but I'd like to hear how json works


  7. 26 minutes ago, vorticalbox said:

    So what are you going to do with the post data? If it is to change something on the website don't use php use JavaScript. 

     

    That means the data isn't being passed correctly check or action is pointing to the right file. 

    it will be echoing different values, here's my snippet:

     

    <?php
      if ($value == 1)
      {
      $cpuName = "AMD Ryzen 7 1800X";
      $cpuPrice = 27000;
      }
    
      if ($value == 2)
      {
      $cpuName = "AMD Ryzen 7 1800X";
      $cpuPrice = 27000;
      }
    
      echo "<td>$cpuName</td>";
      echo '<td id="alignRight">';
      if ($cpuPrice > 0)
      echo number_format($cpuPrice, 2);
      else
      echo number_format($cpuPrice, 0);
      echo '</td>';
    ?>	

     


  8. 54 minutes ago, vorticalbox said:
    
    $text = '';
    
    if($_POST['store'] == 1){
    	$text = "One";
    }else if( $_POST['store'] == 2){
    	$text = "two";
    }
    
    echo $text;

    You get the data from $_POST and the inputs name, in this case store. Then check.

    Here's what happened:

     

    <form action="" method="POST" id="forms">		
      <label class="radio-inline">
        <input type="radio" name="store" onclick="onClick1" value="1" checked>One
      </label>
      <label class="radio-inline">
        <input type="radio" name="store" onclick="onClick1" value="2">Two
      </label>
    </form>
    <?php
    	if ($_POST['store'] == 1)
    		$value = 1;
    	else if ($_POST['store'] == 2)
    		$value = 2;
    ?>

    if-else statements are line 36 and 38. it gave me then this

     

    Notice: Undefined index: store in <filename> on line 36

    Notice: Undefined index: store in <filename> on line 38


  9. 1 minute ago, vorticalbox said:

    Can you explain more what you're trying to do? so far 

    
    $text = "One";
    

    You get text to One but nothing with it?

    I'm stuck at that point. I got used in using a submit button (via isset[submit]). Can't seem to echo Two since it's default value is set at 1

×