-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
  • 208,517
  • 23
  • 234
  • 262
AlesSvetina
  • 403
  • 3
  • 6
  • 19

1 Answers1

1

"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,134
  • 11
  • 30