Re: Dynamic Link/Content with PHP



Ben Allen wrote:
Hi,
I've created a mySQL database with the fields id, title and content. 'ID' is a unique field. Any ideas on how I can use PHP to generate a list of the titles which are links. When you click on a link you are taken to a page with the content held in the database. I'm guessing the generated links would be something like /page.PHP?pageid=x based on the id, that's if this script is possible at all.


Sorry for being such a newbie, but I guess we all have to start somewhere.

Thanks,
Ben
It seems I found what I need here:
http://www.php-mysql-tutorial.com/cms-php-mysql.php

If, after further reading, this isn't what I need I'll resort to using my own code.

Thanks,
Ben
.



Relevant Pages

  • Dynamic Link/Content with PHP
    ... I've created a mySQL database with the fields id, ... 'ID' is a unique field. ... Any ideas on how I can use PHP to generate a list of the titles which are links. ... I'm guessing the generated links would be something like /page.PHP?pageid=x based on the id, that's if this script is possible at all. ...
    (comp.lang.php)
  • Re: Updating Tables
    ... >I have a large table in a MySQL database. ... Connection is cn. ... How can I simply append a record to a table without ... > reading the entire thing? ...
    (microsoft.public.vb.database.ado)
  • Re: reading from pipe, writing to a file
    ... I am reading a giant chunk of data from a MySQL database, ... Use single quotes to prevent its interpolation: ...
    (comp.lang.perl.misc)
  • format date field
    ... I am reading in a date field from a mysql database the field on the screen ... 05-01-2007 currently I am issueing the following command print ... how can I format this field??? ...
    (php.general)
  • NULL COLUMN
    ... I have a dataset which selects a column from my mysql database. ... column is a text data type, but the dataset is reading it as null - any ideas ... Prev by Date: ...
    (microsoft.public.dotnet.general)