News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

tucking an html button inside a php logical statement

Started by rcane, March 30, 2022, 07:21:40 PM

Previous topic - Next topic

rcane

I've got a logical test to either stop and present a button to go back, or it moves on with some successful other things.

I've tucked php inside html but for some reason I can't get an html button inside this block of code to work.

if (!$sum==0) {
     
       while($row = $resource->fetch_object()) {
        $results[] = $row;
            }
           
      } else {
          **need a simple <button></button> here ****
          die("   No Transactions For Display");
         
      }

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

rcane


Kindred

Don't forget that single quotes within the html must be escaped
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: