On page coding solution, without messing around with database... I think you can use regex to check whether the initial characters of fetched url are http:// or not. Even you can use php's strncmp function to build the same. Try this
$a = strncmp($fetched_url_string,"http://",7); if ($a == 0) { // Don't include http:// it's already there } else { // Include http:// } Hope this will help you :) --- On Thu, 9/4/08, Tedit kap <[EMAIL PROTECTED]> wrote: > From: Tedit kap <[EMAIL PROTECTED]> > Subject: [php_mysql] replace link text > To: php_mysql@yahoogroups.com > Date: Thursday, September 4, 2008, 8:27 AM > Hi, > > I am trying to modify the values I entered before into a > mysql table column where I had entered links only. They > were links however they did not have http://www. in the > beginning (I was taking care of the proper display in php > display file). > > From now, I want to enter links properly, so I changed the > php file, without automatically adding/writing http://www. > in the beginning, but this time the old values links dont > work. > > How can I add http://www. to the beginning of all vaules in > this column? > > Thanks > > > > > [Non-text portions of this message have been removed] > > > ------------------------------------ > > The php_mysql group is dedicated to learn more about the > PHP/MySQL web database possibilities through group learning. > Yahoo! Groups Links > > >