<td><a href="$_SERVER['PHP_SELF'] . '?id=' . $myrow["article_tittle"]  ">'.$row["article_tittle"].'</a></td>

what's the error in above code, its showing error

Parse error: syntax error, unexpected T_STRING in ...../class.article.php on line 64

Please identify

Recommended Answers

All 4 Replies

furqankhyraj, you are going from HTML straight to PHP, you have no PHP tags to identify:

<a href="<?php $_SERVER['PHP_SELF'] . 'id?=' . $myrow['article_tittle'];?> "><?php $row['article_tittle']; ?></a>

Hi Squidge thanks for the reply but stil its not working and showing the same error :(

is it$myrow['article_tittle'] or $row['article_tittle'] ?

Hi,
Try this string (it waz mising "." and single quote, after $myrow["article_tittle"] ):

'<td><a href="$_SERVER['PHP_SELF'] . '?id=' . $myrow["article_tittle"]. '">'.$row["article_tittle"].'</a></td>';
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.