If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > inserting mathematical equations into mysql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-11, 00:28
vjtalari vjtalari is offline
Registered User
 
Join Date: Oct 2011
Posts: 3
inserting mathematical equations into mysql

Hi!
I need to insert data from wordpad/msword to mysql database.The data consists of mathematical equations/chemical equations etc.I'm using notations for the equations like e.g: for 9/5 I'm using \frac\{9\}\{5\} notation,but when I'm trying to dump this into mysql,it's stored as image and could not retrieve it.

I need your help,

Thanks,

Vjta
Reply With Quote
  #2 (permalink)  
Old 11-29-11, 02:47
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Can you provide more details about the table definition? Also what exactly gets stored in the database when you attempt to load it?
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 11-29-11, 03:33
vjtalari vjtalari is offline
Registered User
 
Join Date: Oct 2011
Posts: 3
hi

I have a table with two columns
1)QID
2)Question with TEXT data type-> in which im going to insert mathematical equations.I'm not sure how it's getting stored in db.
I need to insert quadratic expressions and other mathematical formulas
Reply With Quote
  #4 (permalink)  
Old 11-29-11, 03:49
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
What happens when you do a SELECT * FROM table. This will give you an indication of what has gotten stored in the database. Also because you use backslashes and these are used as escape characters you may need to escape these. In PHP there is a function called mysql_real_escape_string which returns a string that is escaped to be stored into the database.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On