On Monday 19 January 2004 18:21, lisi wrote:
> 2) Solution: Add the leading slash to each entry in the db (MySQL)
> Problem: How do I do this with a query without having to change each
> one manually? I know I can change the link field using UPDATE but how would
> I tell MySQL to change the e
$new_php_self = substr($PHP_SELF, 1);
Does this has anything to do with db??
- Original Message -
From: "lisi" <[EMAIL PROTECTED]>
To: "PHP-DB" <[EMAIL PROTECTED]>
Sent: Monday, January 19, 2004 10:21 AM
Subject: [PHP-DB] replacing once with ereg_repla
I have a problem with two possible solutions, I'm just not sure how to do
either one.
I have a number of pages and their links stored in a MySQL db. The links
are stored without the leading slash (i.e. animals/birds/birds.htm).
$PHP_SELF returns the link with the leading slash (i.e.
/animals/b