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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -