Hi, ist there any way to combine PHP with JavaScript. My Problem is to execute a special JavaScript if a certain mySQL Field is equal to 1, but I don't know how to embedd the JavaScript into my PHP Code.
Any suggestions ?
Thanks for help and sorry for the bad english.
Jörg Kirchhoff
You may use if else statments to decide if you ant to include javascript to your page or not 😉 But it's not best solution.
I heard about sth like javascript/php.
Please search letter on this forum, you may find sth.
Hamster.
Hi!
How about just making an if-else, which only echo's the script and an onload-parameter into the body tag, if the field is 1.
Adios Oliver
Blessed are those who can read ;-) . Overseen the previous post of Hamster, sorry.