php4-beta | 199912
Date: 12/20/99
- Next message: Allen Lee: "Re: [PHP4BETA] Searching a MySQL DB..."
- Previous message: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4/sapi/aolserver aolserver.c"
- Next in thread: Allen Lee: "Re: [PHP4BETA] Searching a MySQL DB..."
- Reply: Allen Lee: "Re: [PHP4BETA] Searching a MySQL DB..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ok this doesnt have a lot to do with php but it uses it and i figured the
people on this list are also mysql experts also. :)
What i am asking is how can i search a column for any data that begins with
a certain letter. in other words use wildkards or somthing?
This example most likely does not work but this is just here to show you a
little mroe of what i mean:
$query = "SELECT * FROM $tbcont WHERE namef = 'A*' ";
$result = mysql_db_query( "$dbname", $query, $sqlcon);
if ($result) {
while ($r = mysql_fetch_array($result)) {
blah........
}
}
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Allen Lee: "Re: [PHP4BETA] Searching a MySQL DB..."
- Previous message: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4/sapi/aolserver aolserver.c"
- Next in thread: Allen Lee: "Re: [PHP4BETA] Searching a MySQL DB..."
- Reply: Allen Lee: "Re: [PHP4BETA] Searching a MySQL DB..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

