Hey,
I have a question on how to make an inline style to this..:
$sqlCommand = "SELECT * FROM pages WHERE subjectid='" . $subjectid . "' AND showing='1' ORDER BY pos ASC"; //***
$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());
$PageMenuDisplay = '';
while ($row = mysqli_fetch_array($query)) {
$pid = $row["id"];
$pagelinklabel = $row["linklabel"];
$position = $row['pos'];
/* Her sættes $sid=$subjectid ind i linket sammen med pid, sådan at pages ikke forsvinder og kan vises tilhørende det relevante subject */
$PageMenuDisplay .= '<li><a href="index.php?pid=' . $pid . '&sid=' . $subjectid . '">>>> ' . $pagelinklabel . '</a></li>';}//***
//***
mysqli_free_result($query);
So this gets me 5 links in total.
I gave the links a style like this:
a {border-right: 1px solid #black;}
I just need to make a border-left style (same style..) on the FIRST link that appears after the while have run through the first time.
How can I add a(inline style) left border to that, when the specific tag doesnt appear because they are being pulled from the DB?
The first link have got ID = 1 in the DB, if that is to any use?
Klemme