Back to the month index |
Back to the list index
|
rasmus@bellglobal.com
Wed, 4 Sep 1996 09:51:40 -0400 (EDT)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Anderson, Hans: "Re: [mSQL] Opinions? Best msql web interface"
- Previous message: Siegfried Stepke: "[mSQL] INSERT ignored"
- Next in thread: Anderson, Hans: "Re: [mSQL] Opinions? Best msql web interface"
From: rasmus@bellglobal.com Date: Wed, 4 Sep 1996 09:51:40 -0400 (EDT) Subject: Re: [mSQL] Opinions? Best msql web interface Message-Id: <ML-2.3.841845100.5627.rasmus@inet-dev>> I'm currently experimenting with writing Javascript using W3-mSQL so
> that I can embed mSQL field values into JavaScript variables. If I
> can do that then I can pass these to Java applets...
>
> Can PHP/FI do this easily? W3-mSQl is about as straight forward as
> you can get. PHP/FI appears rather daunting for doing the above.
Very easily. If you look at http://www.vex.net/php/ and click on the
"View Source" button at the bottom of the page, you will see:
<?$lynx=0;
if(reg_match(".*ozilla/[23].*",$HTTP_USER_AGENT) ||
reg_match(".*MSIE.3.*",$HTTP_USER_AGENT)); $js=1;
$start_msg = " Welcome to the PHP/FI Page";
>
<script language="JavaScript">
var CurrentMsg = '<?echo $start_msg>';
...
That's a code fragment which checks to see if you are using either
Netscape 2,3 or IE 3 and if so, sends a JavaScript where the CurrentMsg
JavaScript variable is set to the value of the $start_msg PHP/FI variable.
That $start_msg variable could easily have come from an msql() call in
PHP.
-Rasmus
--------------------------------------------------------------------------
To remove yourself from the Mini SQL mailing list send a message containing
"unsubscribe" to "unsubscribe" to msql-list-request@bunyip.com. Send a message containing
"info msql-list" to majordomo@bunyip.com for info on monthly archives of
the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!
- Next message: Anderson, Hans: "Re: [mSQL] Opinions? Best msql web interface"
- Previous message: Siegfried Stepke: "[mSQL] INSERT ignored"
- Next in thread: Anderson, Hans: "Re: [mSQL] Opinions? Best msql web interface"