php - I can't update a SQL table with right concatenation -


could me concatenate in way ? tried wasn't able make it!

here's code :

include('config.php');  $base="recettes";  $sql="insert into". $base." (username, titre)  select '$username', '$output[0]' "; $request = mysqli_query($con,$sql); 

thank you!

about concatenation... you're missing space behind , before ($username

when have query error, echo query see looks like.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -