jsin Posted February 24, 2009 Share Posted February 24, 2009 Whats wrong with this line? $sOutput .= '<div class="gift_image" style="width:'.$smallGiftSize.'px;height:'.$smallGiftSize.'px;" onmouseover="this.className=\'gift_image2\';showInfo5(\''.$row['title'].'\', \'\', \'\')" onmouseout="this.className=\'gift_image\';return nd();" onclick="getContentx(\''.getAjaxUrl('public','gifts','getgift').'\', \'id_'.$row['id'].'\', \'the_gift\')"><img id="gift'.$row['id'].'" src="'.$img.'" /></div>'; ERROR MESSAGE: The requested URL /public/gifts/getgift/id_1 was not found on this server. You can see the error at http://meetinglane.com login: mrtech pass: 1234 go to gifts (last mid menu option) and try to send a gift. a direct url works so I think the problem is in the last part of the line .getAjaxUrl('public','gifts','getgift').'\', http://meetinglane.com/index.php?do=/gifts/getgift/id_1 pastebin link to entire php http://pastebin.com/m194585ce Any help would be appreciated, 2 weeks and no progress on my side Link to comment https://forums.phpfreaks.com/topic/146622-solved-url-failing-after-item-selection-format-problem/ Share on other sites More sharing options...
phpdragon Posted February 24, 2009 Share Posted February 24, 2009 http://meetinglane.com/gifts/getgift/id_1 Put this in your web browser and you will see page not found meaning that directory does not exist, that is what your code is calling, where as your link with the do statement calls the index page of the main web directory Link to comment https://forums.phpfreaks.com/topic/146622-solved-url-failing-after-item-selection-format-problem/#findComment-769775 Share on other sites More sharing options...
Q695 Posted February 24, 2009 Share Posted February 24, 2009 Single quotes need to be on the inside of ', since ' means echo exactly. Link to comment https://forums.phpfreaks.com/topic/146622-solved-url-failing-after-item-selection-format-problem/#findComment-769793 Share on other sites More sharing options...
jsin Posted February 24, 2009 Author Share Posted February 24, 2009 I cant believe I forgot to do the do Link to comment https://forums.phpfreaks.com/topic/146622-solved-url-failing-after-item-selection-format-problem/#findComment-769815 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.