Heyas--
I know that almost all of the topics I start that ask for help, have to do with variables inside mysql queries.
This is another one of those topics 😉
$file = $ftp . $dir . $item['name'];
$result = mysql_query("SELECT dir FROM ftp WHERE dir ='$file'")
$query = mysql_fetch_array( $result ); //Line 68
If($query != 0) {
mysql_query("INSERT INTO ftp(dir, klasor, boyut, gun) VALUES
('$file', '$item['type']', '$item['size']', 'date("d")') ")
or die(mysql_error());
}
Is what I have,
Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\ftp.php on line 68
Is the reply.
As you can see, the code tries to check to see if the string is already in the table, if it's not, it attempts to put it in the table.
But it doesn't work.. 🙁