I have run into another problem that I just cannot seem to figure out. I would greatly appreciate some guidance on this probably very easy solution.
All I am trying to do is have the user enter a name, and then I search the database to find that name. I have a form set up to get the information, and it is going in properly, but my query is not returning any results. I even tried skipping the user input, and just pulled out a team I knew was in there, still to no avail.
Your suggestions are greatly appreciated, thank you.
SirBee
<?php
include 'connect.PHP';
$oldName=$_POST['oldName'];
$registrationQuery=mysql_query("SELECT `showstandings`.`subcategory` AS `subcategory` AND `showstandings`.`cat_id` AS `catID` FROM showstandings WHERE `showstandings`.`subcategory` = '$oldName'");
echo "$oldName <br><br>";
while ($registration_array=mysql_fetch_array($registrationQuery))
{
echo "Cat ID = ".$catID." Team Name = ".$subcategory."<br><br>";
}
?>


Sign In
Create Account


Back to top










