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?
cronk005
Posts: 2Questions: 1Answers: 0
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;
}
This discussion has been closed.
Answers
after a lot of trial and error I figured it out. This message can be closed.