HighDots Forums  

Javascript and mysql

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Javascript and mysql in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Storey
 
Posts: n/a

Default Javascript and mysql - 03-14-2005 , 07:04 AM






Hi

I have some pages which perform Javascript calculations etc. and end up
with a number in a box at the bottom of a page. The pages themselves are
PHP, but with Javascripts embedded in them.

How can I get the results of these calculations (which are in text
boxes), and place them into a mysql database?I gather that it may not be
possible to do this directly, but is there any way around it? I dont
want to have to rewrite the scripts in another language!

Cheers

Chris

Reply With Quote
  #2  
Old   
Peter Mount
 
Posts: n/a

Default Re: Javascript and mysql - 04-15-2005 , 09:43 AM






Hi

Since you are already using PHP then PHP would be your best bet.

I found some PHP tutorials on this page:

http://www.tutorialized.com/tutorials/PHP/66

I haven't tried them myself but it might be worth looking at the
Database tutorials so you can get started. I know you don't want to
re-write your JavaScript code into another language but if you've got
the logic already worked out then it shouldn't be too difficult to
change it to PHP. The logic is where the real work goes into it so
you're already more than half way there if you re-write anyway. I've had
a go at converting JavaScript to PHP and all I really did was substitute
some of the syntax and maybe change a few functions.

Have fun

Peter Mount
info (AT) petermount (DOT) au.com

Chris Storey wrote:
Quote:
Hi

I have some pages which perform Javascript calculations etc. and end up
with a number in a box at the bottom of a page. The pages themselves are
PHP, but with Javascripts embedded in them.

How can I get the results of these calculations (which are in text
boxes), and place them into a mysql database?I gather that it may not be
possible to do this directly, but is there any way around it? I dont
want to have to rewrite the scripts in another language!

Cheers

Chris

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.