title: interfacing prolog with php and mysql
body: <p>I am looking to see if this is a possible scenario -</p>
  
  <p>My php page calls prolog (and sends the query with data), and then prolog code runs and binds certain (output) variables, and then I take these variables and then load it into mysql db.</p>
  
  <p>ie,</p>
  
  <blockquote>
    <p>PHP -> call and send data -> Prolog -> execute goal and bind output variables -> send output variables into mysql db</p>
  </blockquote>
  
  <p>I have seen a lot of documentation on how to "generate" html pages using sicstus and swi etc.. but this is reverse of what i want to achieve. any pointers?</p>
  
  <p>thanks!</p>