Query doesn't work?
Whenever a username ($Name) has spaces in it, this query doesn't work.
Code:
SELECT userid, filename, username |
Check whether the space in $Name is a + or %20 or whatever, and then consider the PHP str_replace function.
|
I took a look at the database and the source and it appears as a space, so I tried this
Code:
SELECT userid, filename, username |
Code:
echo $Name; |
when I view the source, this is what I get
Code:
Jamie Ann |
Check whether 'Jamie Ann' has actually uploaded any files. If so:
Code:
echo mysql_real_escape_string(htmlspecialchars($Name)); |
when I use that, all i get is Jamie Ann
|
Without seeing all of your code, all I can do is guess, so consider getting a programmer to look at your code. Please note though that I'm not available for any freelance work at this time, so I'm sorry, but I won't review your code. If you want to upload your code, not any PhotoPlog code, in the hopes that someone else will look at it, feel free.
|
All times are GMT. The time now is 06:24 AM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.