NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page sscanf problem help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-25-2006, 03:49 AM THREAD STARTER               #1 (permalink)
NamePros Member
 
Coreycyberdesig's Avatar
Join Date: May 2006
Posts: 39
Coreycyberdesig is an unknown quantity at this point
 



sscanf problem help


Hey I need some help with this

here is the code

Quote:
$rawhtml = $curl_result;
????: NamePros.com http://www.namepros.com/programming/210555-sscanf-problem-help.html
$chistart = strpos($rawhtml, 'Mfr. Model:');
$chidata = substr($rawhtml, $chistart, strlen('Mfr. Model:') + 100);
list($mfrid) = sscanf($chidata, '<strong>Mfr. Model:</strong></td><td>*</td>');
print $mfrid ;
something is not working where the star is there is a mfr number that is comprised of both upercase and lowercase letters and numbers what should i use to get it to retur the results
i just need it to search for this string
<strong>Mfr. Model:</strong></td><td></td>
and return whatever is between the begining and ending td
Coreycyberdesig is offline  
Old 06-25-2006, 08:29 AM   #2 (permalink)
NamePros Regular
Join Date: Mar 2006
Posts: 397
sacx13 is on a distinguished road
 



Hi,

Try in this way
Code:
list($mfrid) = sscanf($chidata, '<strong>Mfr. Model:</strong></td><td>%s</td>');
Regards
sacx13 is offline  
Old 06-25-2006, 08:37 AM THREAD STARTER               #3 (permalink)
NamePros Member
 
Coreycyberdesig's Avatar
Join Date: May 2006
Posts: 39
Coreycyberdesig is an unknown quantity at this point
 



thanks


Thank you i couldent find the damn thing for it
Coreycyberdesig is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:35 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger