wildcard in tablesearch

2001-04-23 Thread Sven Heising
Hi list, I'am new in this php and mysql-stuff so i need al lil bit support... this is my problem: $result = mysql_query("select * from $dbtable where $wonach like '%$first_name%' "); $wonach is a var which is set in a html form if i want to search one row it is no problemselecting works

delete in mysql

2001-04-24 Thread Sven Heising
Hi list got a problem againcan't delete : $db=mysql_pconnect($host,$dbuser,$pass) or die($dbfehler); echo "$userto"; mysql_query("use $dbase;"); mysql_query("DELETE FROM $dtable where loginid = '$userto' "); what is wrong with this? thanx in advance sven -