The database in mysql(xampp) is called bodymechanix and the table is called clients1. In the table theres two columes, first_4 and last_4. I keep getting this message after submitting the form "MySQL returned an empty result set (i.e. zero rows). (Query took 0.0010 seconds.)" and the data is not visable in mysql Here is a piece of my code...thank you! This is my database, it wont even show the table with data like my other databases
<input class="form-textbox validate[required]" type="text" size="10" name="q4_name[first]" id="first_4" />
<label class="form-sub-label" for="first_4" id="sublabel_first" style="min-height: 13px;"> First Name </label>
<input class="form-textbox validate[required]" type="text" size="15" name="q4_name[last]" id="last_4" />
<label class="form-sub-label" for="last_4" id="sublabel_last" style="min-height: 13px;"> Last Name </label>
<button id="input_2" type="submit" class="form-submit-button">
Submit </button>
<?php
if(isset($_POST["input_2"])){
$q4_name[first]=$_POST['q4_name[first]'];
$q4_name[last]=$_POST['q4_name[last]'];
$con=mysqli_connect('localhost','root','') or die(mysqli_error($con));
mysqli_select_db($con,'bodymechanix') or die("cannot select DB");
$query=mysqli_query($con, "SELECT * FROM clients WHERE first_4='".$q4_name[first]."' AND last_4='".$q4_name[last]."'");
$numrows=mysqli_num_rows($query);
if($numrows!=0)
{
while($row=mysqli_fetch_assoc($query))
{
$dbfirst_4=$row['first_4'];
$dblast_4=$row['last_4'];
}
?>