get specific data from the specific table
I would love to know, if it's possible to get a specific data from a specific mysql table..
Let say on the table itself has a Varchar ... mixed of words and floats..
and then ... I want to pull only the float from the table using php...
can it be done ??
trektrak
Junior Poster in Training
52 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Can you give an example of your table and the data that is in it, and an example of the output you require ?
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
yeah ... something like that ... it's a long var char...
something like... "hello, my name is jack.. my height is 5.5 feet"
let say .. I just want to pull only "5.5"
trektrak
Junior Poster in Training
52 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
The following regex would also match 45.67 and -45
/-?[0-9]+(\.[0-9]+)?/
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
tq guys... I'll give a try later..
trektrak
Junior Poster in Training
52 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0