-2

how can I put a dot between two variables in mysql? Something like this, but it doesn't work:

$query_filename->execute(array(".$value.".".$ext.", $key));

So the table would read (for example): file.txt

Thank you!

tadman
  • 200,744
  • 21
  • 223
  • 248
AlesSvetina
  • 371
  • 3
  • 5
  • 17

1 Answers1

0

"file.txt" (or any variation) isn't even remotely valid SQL. It isn't a query, just a filename.

In PHP, then to achieve what you want, try:

array($value . '.' . $ext,$key);

In MySQL, your query should include

CONCAT(value,".",ext)
thelr
  • 1,055
  • 11
  • 29