Re: [PHP] Get Value

2004-08-25 Thread Syed Ghouse
Thankyou. i got the solution Thanks & Regards syed - Original Message - From: "Robby Russell" <[EMAIL PROTECTED]> To: "Syed Ghouse" <[EMAIL PROTECTED]> Cc: "php mailinglists" <[EMAIL PROTECTED]> Sent: Thursday

Re: [PHP] Get Value

2004-08-25 Thread Jim Grill
Google(value to extract)'; echo preg_replace('/\(.*)\<\/a\>/i', "$1", $link); ?> Jim Grill - Original Message - From: "Syed Ghouse" <[EMAIL PROTECTED]> To: "php mailinglists" <[EMAIL PROTECTED]> Sent: Wednesday, August 25, 2004 11:11 PM Subject: [PHP] Get Va

Re: [PHP] Get Value

2004-08-25 Thread Robby Russell
On Wed, 2004-08-25 at 21:11, Syed Ghouse wrote: > Hi All > > Will anybody tell me how to extract the value (say Google) > from the code below: > > Google(value to extract) > > Thanks and Regards > > Syed You can use regular expressions for this. $in = 'meep'; preg_match("|>(.*)|", $in, $out

Re: [PHP] get value of array without key

2004-07-13 Thread Prasit Narkdee
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 14 July 2004 11:54, Prasit Narkdee wrote: > > $tmp = unpack("d", substr($this->data, $spos + 6, 8)); > > // It machine machine dependent > > > > if ($this->isDate($spos)

Re: [PHP] get value of array without key

2004-07-13 Thread Jason Wong
On Wednesday 14 July 2004 11:54, Prasit Narkdee wrote: > $tmp = unpack("d", substr($this->data, $spos + 6, 8)); > // It machine machine dependent > > if ($this->isDate($spos)) { > list($string, $raw) = $this->createDate($tmp['']); >

Re: [PHP] Get value between 2 strings

2003-11-17 Thread Justin French
On Monday, November 17, 2003, at 05:27 PM, Matt Palermo wrote: Hello. I was wondering if anyone knew of a function to get the value between 2 strings. For example, lets say I have the following line: $line = "I want the value between word ONE and word TWO. Please return it..."; Now, I want to

Re: [PHP] get value

2001-08-06 Thread mjriding
$data=mysql_fetch_row($result); $count=$data[0]; That's it! On Mon, 6 Aug 2001, Jeremy Morano wrote: > hi,,, > > can someone tell me how to access the value of count? please? > > - > $db = @mysql_select_d

RE: [PHP] get value

2001-08-06 Thread Sam Masiello
There might be an easier way to do it, but this should work: Change your SELECT statement to "SELECT count(*) as c " After $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); Do this: $mycount = mysql_result($result, 0, 'c') ; $mycount should now be the value held