I realized I was making my selection criteria much more complicated than I need. I wrote the function with sql and can see more clearly my criteria: public function getFilePath() { $fileid = $this->getFileId(); mysql_connect("localhost","myuser","mypassword"); mysql_select_db("mydb"); $getfilepath = "SELECT file_path FROM file WHERE file.id = $fileid"; $run = mysql_query($getfilepath); $row = mysql_fetch_assoc($run); $filepath = $row['file_path']; return $filepath; mysql_close(); } This works well, and I can use return instead of echo. Okay, this propel language is so foreign to me! I'll keep learning and rewrite my sql statements someday...when I get smarter!
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---