Hello,
few days before, I installed Opensuse 13.2, and also LAMP using yast-pattern. But since I installed it, my php scripts can not execute any sql query via mysqli_query command if arguments are strings. It just works with constants. For very simple example:
$query=“insert into table (record1, record2) VALUES (’$value1’, ‘$value2’)”
would not product any result (nothing would be inserted into table of database, but if I wrote:
$query=“insert into table (record1, record2) VALUES (‘12’, ‘2342’)”
12 and 2342 would be inserted into database. I think it is no need to tell that I use mysqli_query() command for this. As I already said - everything worked fine in OpenSUSE 13.1
My questions are:
- How can I insert something in database using string instead of constants?
- Is there any additional package I have to install to fix this problem?
Once again, I installed LAMP using yast pattern “WEB and LAMP server”.
Thank you for answering my questions.