How do I call a value from the datase using ajax

How do I call a value from the datase using ajax