NYCPHP Meetup

NYPHP.org

[nycphp-talk] Can PHP be wraqpped around HTML??

Sean sean712 at gmail.com
Tue Jan 15 16:01:07 EST 2008


This should work

<?PHP
 if (update_ind !=  "u")
   {  ?> <TD><a href="#" onclick="window.print()"><BUTTON>Print
</BUTTON></a><input value="UPDATE" type="submit"></TD> <?  }
?>

-Sean
On Jan 15, 2008 3:56 PM, PaulCheung <paulcheung at tiscali.co.uk> wrote:

> This might seem quite trivial or rather silly; But it is causing me
> absolute
> havoc. However, each time I update a MySQL record I set an "update
> indicator" on, the idea being, So as not to update the record more than
> once.
> I am trying to wrap PHP coding around HTML coding and not the usual other
> way around. the question is, is it possible?? If so, what am I doing
> wrong?
>
> here is what I want to do, If update_ind != "u"  submit update
>
>
> <?PHP
>  if (update_ind !=  "u")
>    { <TD><a href="#" onclick="window.print()"><BUTTON>Print
> </BUTTON></a><input value="UPDATE" type="submit"></TD>; }
> ?>
>
> Thanks
>
> Paul
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080115/1de5f827/attachment.html>


More information about the talk mailing list