I've been working on a mafia game, in PHP. And I'm on to the Crimes page. I want it to be done by the database, so I can add crimes etc whenever. I've managed to make it echo the Crime names and payouts to the page, but I'm having trouble when pressing the commit button.
I hope this makes sense.
object1.setOnMouseClicked( event -> {
System.out.println("HELLO");
});
object2.setOnMouseClicked( event -> {
System.out.println("HELLO");
});
This is my code. The top part only echos out one of the crime names, not the other.