Jump to content

Eiffel-Mtl

New Members
  • Posts

    8
  • Joined

  • Last visited

Eiffel-Mtl's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So I don't understand how to do your solution. For now I found a solution, not the pretty one : Make two query, one with offset 1 and the other one with limit 1.
  2. Is it more easy to get the ID of the first row? If it's possible, how to?
  3. Hi, I got a code who give class name different if rowid = 1, but if row('id') 1 is deleted the class is not appear. I want the class use only on first row. Here is my code while($row = mysqli_fetch_array($result)) { if ($row['id'] == '1'){ ?> <li><a id="<?php echo $row["urlName"] ?>Tab" class="active" href="#<?php echo $row["urlName"] ?>Content"><?php echo $row["title"] ?></a></li> <?php } else { ?> <li><a id="<?php echo $row["urlName"] ?>Tab" href="#<?php echo $row["urlName"] ?>Content"><?php echo $row["title"] ?></a></li> } } ?> Any help will be useful. Thanks
  4. Ok, let say from a mysql database. From database: History text will be instead of "abcdefg" <div class="accordion-title"><span>History</span></div> <div class="accordion-content">abcdefg</div> Description text will be instead of "hijklm" <div class="accordion-title"><span>Description</span></div> <div class="accordion-content">hijklm</div> And so on. boats.txt
  5. Iit is maybe easy, but it's been long time that I did code in php.
  6. The content <span>History</span> {{{text from line 1 cell 1 of data files}} <span>{{{text from line 1 cell two of data files}}</span> is hidden. The a href is open it from a lightbox (https://www.w3schools.com/howto/howto_js_lightbox.asp). But I need to set the data for this <span>History</span> {{{text from line 1 cell 1 of data files}} <span>{{{text from line 1 cell two of data files}}</span> from a data file. So when the lightbox is oppening it it will depend of the line of the data file.
  7. The href is pointing to <span>History</span> {{{text from line 1 cell 1 of data files}} <span>{{{text from line 1 cell two of data files}}</span> from lightbox. The multiple braces id only for parameter
  8. Hi, it's been a long time since I've coded in php and I've lost a bit. I want to write a website with php and I want to use data from either mysql, csv files or excel file and I want to know how to call the data. Here is a bit of my code <a href="#boatsLightbox{{call first line of data files}}" class="myButton inline"> More info... </a> <span>History</span> {{{text from line 1 cell 1 of data files}} <span>{{{text from line 1 cell two of data files}}</span> I want to do the same the each line (I will have 5 lines). Manually call the each line and data from each line when I call it. Thank you
×
×
  • 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.