Mysql look up and then rename
| From: | Brent Clark | Date: | Fri, 19 Mar 2004 10:12:55 +0000 |
| Subject: | Mysql look up and then rename | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180949@lists.php.net to get a copy of this message | ||
Hi all
for some reason I seem to be having a problem having to do a look up in a mysql table
and the take the result of that query and then perform the right action.
Basically I need to do a look up for a file
for example
10006547.pdf.
I then need to:
if no letter of the alphabet is present.
then make it 10006547A.pdf
else if does exist, make it 10006547B.pdf
for some reason I cant seem to pull this off, add I honestly thought is would be a simple function.
If anyone knows of a URL or can help in anyway
I really would appreciate it
Kind Regards
Brent Clark