sfraise Posted April 8, 2010 Share Posted April 8, 2010 Hi, I'm working on a Joomla plugin that shows a member's videos added through the seyret component in a tab in their community builder profile. I'm having an issue calling up the video title from the database to then echo it in the url for the link back to the actual video. Here's what I'm using to set the variable, videotitle is the field in the jos_seyret_video table: //--- Video Title Call $database->setQuery("SELECT 'videotitle' FROM #__seyret_video as a " . "\n WHERE a.published = '1'" . "\n AND a.addedby = '$userid' " . $where); $videotitle=$database->query(); And here's where it makes the url: $editlink= sefRelToAbs("index.php?option=com_seyret&view=video&id=".$row1->id."&videotitle=$videotitle#tabs-2") But instead of printing the video title in the url it prints this: index.php?option=com_seyret&view=video&id=1&videotitle=Resource%20id%20#171#tabs-2 It should look like this: index.php?option=com_seyret&view=video&id=1&videotitle=omaha#tabs-2 where omaha is the title of the video. What am I doing wrong here? Link to comment https://forums.phpfreaks.com/topic/198026-call-item-title-from-database-to-echo-in-url/ Share on other sites More sharing options...
ialsoagree Posted April 8, 2010 Share Posted April 8, 2010 $videotitle_array = mysql_fetch_assoc($videotitle); $videotitle = $videotitle_array['videotitle']; Link to comment https://forums.phpfreaks.com/topic/198026-call-item-title-from-database-to-echo-in-url/#findComment-1039081 Share on other sites More sharing options...
sfraise Posted April 9, 2010 Author Share Posted April 9, 2010 No joy, using this leaves the video title in url blank. Link to comment https://forums.phpfreaks.com/topic/198026-call-item-title-from-database-to-echo-in-url/#findComment-1039236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.