How would one incorporate tags into the results that are displayed in a table?

How would one incorporate tags into the results that are displayed in a table?

cronk005cronk005 Posts: 2Questions: 1Answers: 0
edited June 2017 in Free community support

I'd like to be able to have someone hover over a result and have it display information. In my regular php pages I would add something like this:
<abbr title=\"".htmlspecialchars($row['reisklass'])."\">".$row['klasscode']."</abbr> into my code, as well as the appropriate css information.

How would this be accomplished most efficiently using the script:

 $data = array();
 while( $row=mysqli_fetch_array($query) ) {  // preparing an array
$nestedData=array(); 

$nestedData[] = date('d-M-Y H:i', strtotime($row['vertrekdatum2']));
$nestedData[] = $row["vluchtnmr"];
$nestedData[] = $row["vluchthaven"];
$nestedData[] = $row["aanluchthaven"];
$nestedData[] = htmlspecialchars($row["airline"]);
$nestedData[] = $row["aircraft"];
$nestedData[] = $row["inschrijvingnmr"];
$nestedData[] = $row["reisklass"];

$data[] = $nestedData;
 }

Answers

  • cronk005cronk005 Posts: 2Questions: 1Answers: 0

    after a lot of trial and error I figured it out. This message can be closed.

This discussion has been closed.