Skip to content
Advertisement

Tag: mysqli

@SET (SQL) in PHP

How to state SET @unix_four_weeks_ago = UNIX_TIMESTAMP(curdate()) – 2419200; in php file. SQL PHP The query is all about getting the last 4weeks records. The query was working fine in SQL, but not giving any output when I run php file. Answer As the others already said, multi_query will allow you to run multiple statements in one go. However, this

SQL: mysqli_query, no output

Im not sure what’s the problem with this, I’ve tried searching around here and tried different ways of writing the syntax and checking for errors in parameter but still no output for the command. What am i missing here? UPDATE As answered by the others, I tried doing this. There is still no output or an output of 0 was

Advertisement