Search results

  1. M

    Help with PHP/MySQL required and non required feilds?

    I am trying to create a form that a user can fill out and some of the fields are optional. I just can't figure out the best way to do this. My Code: <?php if(count($_POST) > 0) { $image_title = $_FILES['image']['name']; $image_temp = $_FILES['image']['tmp_name']; $title =...
  2. M

    Help with PHP/MySQL if else statement that effects the html?

    I am trying to figure out how to write an if else statement. What I need it to do if check if the image row is empty and if so then to echo out this html. If the $image has a value then generate this html. Here is a snippet of my code (without the if else statement): <?php $sql = "SELECT *...
Back
Top