I am trying to get the direct path of the $result below:
$query="SELECT videoid from blabla";
$result=mysql_query($query);
$destination="ftp:/.../";
I am trying to get the direct path of the videoid which is in $result so i can send all the actual video files to an ftp.
So far I have:
ftp_put ($connection,$destination,$result,FTP_ASCII);
When I run it it says that the source has to be a string or something like that.
$resultis not the field your are looking for, you have to fetch the data from the$result. Note themysql_fetch_assoccall which pulls data out of the query result.Here is an example from the mysql_query documentation
You can therefore modify your code as follows: