hw i used ancho tag in php function
and what i do to visible = false a anchor tag when it does not find any data record from database. plz help me
i am new in php

You can echo the HTML code only if there are any records pulled from the db.

if($records_exist) {

    echo '<a href="some_link">Click here</a>';
}

If you want to change visibility locally (when script's HTML has been already downloaded) you will have to use javascript's getElementById() function to get the anchor element and change the visibility of it (or enclose the anchor between divs or spans and change visibility of those).

For more precise answers post your code.

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.