How to format a SQL data pull result as a link.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
warriorforgod
Forum Newbie
Posts: 15
Joined: Tue Jun 02, 2009 11:16 am

How to format a SQL data pull result as a link.

Post by warriorforgod »

I am wanting to know if there is a way that I can pull something from a sql database and format the result as an html link. Not sure if this is possible.

Thanks in advance.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How to format a SQL data pull result as a link.

Post by Christopher »

It is one of the main things PHP is used for. What kind of database are you using? Have you looked at http://php.net in the documentation for your database adapter (also see PDO). There are many examples there.
(#10850)
warriorforgod
Forum Newbie
Posts: 15
Joined: Tue Jun 02, 2009 11:16 am

Re: How to format a SQL data pull result as a link.

Post by warriorforgod »

I am using an mssql database and connecting from an apache server running php5.
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: How to format a SQL data pull result as a link.

Post by mikemike »

Very possible, but you will need to do some extra configuring to get the MSSQL functions working. Check out the documentation.
Post Reply