I am writing a site that does a NFL Pick 'em type application and I have a feed that gives me the scores of the NFL games every week I have it split apart down to each game two teams and a score directly after it...
Here is what it is stripping the info from to begin with
&nfl_s_left1=Houston%20at%20Buffalo%20(1:00%20PM%20ET)
Here is the code:
Code: [Select]foreach($content_array as $content) {
if (strpos($content, "_left")) {
$count=0;
$equalpos = strpos($content, "=");
$end = strlen($content);
$title = substr($content, ($equalpos+1), $end);
$title = str_replace("^", "", $title);
$title = str_replace("%20%20%20", "
",$title);
$title = str_replace("%20", " ", $title);
$game[$i]=$title;
$scorearray[$i]["title"] = $title;
$i++;
}
}
Here is an example of what it looks like
here is what it looks like after the game
Houston 31 at Buffalo 30 (Final)
And here is what it looks like before the game
Houston at Buffalo (1:00 PM ET)
The information that I need is team_home, team_home_score, team_away, team_away_score, game_status(Whether it is finished or what time the game is).
Any ideas or anything would be great!
read integers that returns a negative or prints the average
Im trying to finish this homework assignment by tommarow afternoon and I keep getting stuck.
Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...Code: $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME'
unserialize help, getting errors
hi all , I got a form with 6 fields (2 input and 4 select box), when the page loads one block is shown and through javascript all the fields can be copied multiple times so I need to store the data in
Php navigation
I have four buttons on a php page.If i click a button it will redirect to different php pages.How would i do that with php?
How to refresh a parent page from a modal popup
Hi,I have a modal popup in which I need to upload a file and store in the database should give a message to the user that file is uploaded and update the parent page when I close the
Need help with basic sql
Hi,
Website Direction...
I recently used this code to try and make it so the page loads as http://www.domain.com/ when you type in http://domain.comI thought this code would make sense and be a solution, but just loops.Could
setcookie and isset($_COOKIE(name)) seem very finnicky.
I'm currently playing around with a user system with login and registration. I'm trying to use cookies to log the user in but the cookie either doesn't set or it sets after I travel through a few
please help
HTML Code:Code: <span id="ctl00"><span> <div class="ldpPropFeatures"> <div
MII Netweaver Server stopped due to CPIC connection Problem
Dear Experts,