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

sam

 

Link to comment
Share on other sites

hi 

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.

Sam    

Link to comment
Share on other sites

 Share

×
×
  • Create New...