Posted 27 August 2006 - 03:16 AM
echo '<img src=../images/items/'.$image.'.jpg>';
When the page comes up for an item with spaces in the name it just shows up as the first word and none of the data is displayed because it's an invalid item name. What's wrong? ???
Posted 27 August 2006 - 05:09 AM
Is this some kind of database question?
Possibly solution if it is, would be to pass the database record ID instead of name. Alternatives are to use urlencode() and urldecode() [check the manual for details] so that the spaces in names can be handled.
Posted 27 August 2006 - 05:15 AM
Posted 27 August 2006 - 05:19 AM
I don't know what you mean...
OK, we're even.
You have some kind of problem with some kind of code and neither I nor anyone else can solve it without seeing some code. You already have my best guesses as to what the solution might be. Did you look at the manual pages for the urlencode() and urldecode() functions?
Posted 27 August 2006 - 05:22 AM
Posted 27 August 2006 - 05:34 AM
As for posting all your code, no you haven't. You posted one img tag and a disconnected variable. You don't show the code for what get's clicked and you show nothing whatsoever relating to details not showing when something is clicked.
If you want people to devote their time to your problems you need to develop two good habits. #1 fully explain and illustrate the problem; #2 look at the manual references people offer in their replies.
Good luck with your problem.
Posted 27 August 2006 - 02:26 PM
In your case:
<?php echo '<img src="../images/items/'.$image.'.jpg">'; ?>
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users