Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi I'm trying to find out 2 things,


1)  how to pass a button value that comes from mysqli while loop to javascript then on to Ajax script.


2)  how to pass a php array on to javascript and then onto the Ajax script.


I will be really grateful if anyone could help.

many thanks



Link to comment
Share on other sites


yeah sure, so im trying to copy what you have in the book on chapter 15 pages 578, 579, 580, view.php.


So when someone clicks the button it submits a bid or a value to the database.

i am trying to display a similar concept however struggling with the bidding inputs being on the item list, instead of having to click on the item to then follow onto bid. 

so therefore not having to click on every item, the bidding inputs will be displayed on each item on the list. 

Problem i have is individualing ID'S between each item, because they are all on the same page all the item ID'S are over writing one another to the last record. I need them to stay individual to their own items so when theyre passed onto the javascript it can submit the item as clicked on by the user.


Thanks for your help, hope to hear from you soon.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...