Hi I need away to do the following (NOTE MYSQL code done just need to know how to use case to run different mysql's
if the user types is stock:Telstra then it searches all of the database
but if they type in stock:asx.Telstra then it runs the case stock but then see that there is the asx. and runs that Mysql that is in that case.
Can you help
<?php
$parts = explode(":",$q);
switch($parts[0])
{
case "Stock":
case "stock":
//code
break;
}
?>
