Skip to content

Tag: mysql

MySQL select column length in php (below PHP7)

How do I get the actual max length of a specified column in php (prior to PHP7)? For instance, this table: id – int(11) name – string(20) I want in php to select the maximum number of characters that a field can have, like and it should then return 20 (since it’s the maximum number of charac…

Get value of input box, without a form?

Does anyone know how I can get the value of an input box, without having a form? I want a submit button, but instead of submitting a form, I want it to change data in a MySQL database. Something like this maybe? Could I use that code on a “onclick” event? The input box’s name and id is &#822…

mysql get last auto increment value

Hi I have a field in mySql table called jobnumber which auto increments with each new entry. What I want to do is when a user views my form, get the value of the next ‘jobnumber’ . But I want to do …

Formulas to Calculate Geo Proximity

I need to implement a Geo proximity search in my application but I’m very confused regarding the correct formula to use. After some searches in the Web and in StackOverflow I found that the solutions are: Use the Haversine Formula Use the Great-Circle Distance Formula Use a Spatial Search Engine in the …