MySQL Forums
Forum List  »  PHP

Re: mysql query problem (very important for me...)
Posted by: Reham G
Date: July 25, 2005 04:20PM


as i understand u want the id(or the primary key) of those records which u get from ur search ..

if i'm right then..

$question = "select * from data_table where ".$finding_method." like '%".$phrase."%' ORDER BY nr DESC ";
$result = mysql_query($question);
$howmany_founded = mysql_num_rows($result);
if ur primary key is nr then u will add

//u will get one record at a time from those u select
//this will give u the id of the current record


// do what u want with $id



try and if it doesn't work explain ur problem more

Options: ReplyQuote

Written By
Re: mysql query problem (very important for me...)
July 25, 2005 04:20PM

Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.