For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2004 > Math and mySQL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Math and mySQL
Ron Piggott

2004-12-30, 8:56 am

Is there any way of retreiving the last record of a mySQL table where I may
specify one of the values in it? I know the SELECT command and just for
example the field I know could be serial_number = 30612312-ABDEFG --- I have
the serial_number field set as a varchar.

Part two of my question is how do you do math in PHP? I want to take the
running_total (another field in the table) and add or subtract what the user
has typed in.

Ron
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com