Hi, I am relatively new to Cake, I took over a web site that uses it and am 
still learning the ropes, but slowly getting there.

One issue has do have is with the image shown below.

I want to be able to retrieve data from the DB when clicking on the Apply 
link.

I have create a model and controller and have added this code to the click 
event for the link.

$('#go').click(function(){
$.ajax({
url:'/discount/index',
type:'POST',
data:data
});

What I'm unsure about is how to retrieve the the data from the DB and how 
to put it into the input box - table is called settings and field is 
discount_code.

Any help would be greatly appreciated


<https://lh5.googleusercontent.com/-UeDIxoN7XCQ/UM69JhsY2iI/AAAAAAAAABc/pxT5Ps_sO-w/s1600/cakephp1.PNG>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to