RE: [PHP-DB] Simple database error (SPACE) From: Dave Watkinson (d.watkinson <email protected>)
Date: 08/30/01

try urlencode in the PHP manual ... I believe that'll do the trick!

Cheers

Dave

-----Original Message-----
From: Nagasea [mailto:nagasea <email protected>]
Sent: 30 August 2001 23:02
To: php-db <email protected>
Subject: [PHP-DB] Simple database error (SPACE)

//-- Anybody can help me with this problem (I think
//-- it's simple but im to stupid to know the answer)

==================================================
while ($myrow = mysql_fetch_row($result)) {
echo("
<a href=m_template.php?nick=$myrow[3]>$myrow[3] ."</a>");
}
==================================================

If I have a database in $myrow[3] and it has "space", it didn't work.

Example Database : John Doe
__________________________________________________

it will shown
                 m_template?nick=John

I NEED PHP to show the space and Doe also
so it's suppose to be :

                 m_template?nick=John Doe

_____________________________________________________________
www.kaskus.com - FREE EMAIL SERVICE

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>