Hello
I have used the following code (very kindly done for me by someone in this forum) to have my php page search a table and pull out a list of documents - which are then displayed as a list of titles (which use another field to make them clickable)
$connect = odbc_connect('conserve', 'sa', '');
$result = odbc_exec($connect, 'SELECT doc_title, doc_url FROM documents');
while ($row = odbc_fetch_array($result))
{
echo '<a href="' . $row['doc_url'] . '">' . $row['doc_title'] . '</a><br>';
}
odbc_close($connect);
this works brilliantly in the vast majority of cases, however for a few of my documents - the link does not work. I click on the title and it goes nowhere.
just to clarify:
I have a document called marine_heritage.doc in a folder called conserve the web address for it is
http://www.britarch.ac.uk/conserve/Consultations/marine_heritage.doc
but when I use the above code to access the database and the document I retrieve the title of the document that should be clickable through to the document. But it does not work . The address I get in the address bar is
http://www.britarch.ac.uk/charlotteresults.php#http://www.britarch.ac.uk/conserve/Consultations/marine_heritage.doc#
I can't figure out why these few documents do not behave like the others and do not get pulled successfuly out of the database?
If anybody knows what I'm getting at or has any ideas about why I am having this little problem - any hints or tips would be much appreciated.
thank you