Hi, habe mal wieder ein Problem mit MYSQL...
Ich will ein INSERT befehl asuführen...
dabei ist user eine simle php-variable. text setzt sich aus mehreren teilen zusammen. Aus mehreren Abfragen, bzw festen texten...
in etwa so:
das der ganze insert so aussehen würde:
leider funktioniert in CONCAT keine sql-abfragen, hat da jemand eine lösung?
thx schonmal
Ich will ein INSERT befehl asuführen...
PHP-Code:
INSERT INTO log(user, text) ....
in etwa so:
PHP-Code:
CONCAT("test", SELECT date FROM action WHERE id=2 ,"test2", SELECT ...);
PHP-Code:
INSERT INTO log(user, text) .... SELECT "hallo", CONCAT("test", SELECT date FROM action WHERE id=2 ,"test2", SELECT ...)
leider funktioniert in CONCAT keine sql-abfragen, hat da jemand eine lösung?
thx schonmal
Kommentar