PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i need get_location in the title of the page ... $weather->get_location() . ":
so title would be something like <title>Current Weather in get_location</title>
$output = '<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="pw_style.css" />
<title>Current Temperature in ' . $weather->get_location() . '</title>
<meta name="description" content="Current temperature and weather reports from around the world"
</head>
<body>
<p>Find the current temperature and weather conditions in your area...</p>
';
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Putting this in the title makes the location always the same so no matter what is displayed on the page, the location in the page title is always Aalborg, Denmark
AutoRunway wrote:Putting this in the title makes the location always the same so no matter what is displayed on the page, the location in the page title is always Aalborg, Denmark
<title>Current Temperature in ' . $weather->get_location() . '</title>
Any ideas why the location never changes?
I'm not sure what all the code is doing, but you probably want to move the code from my previous post down just before this line:
[text]/* Always display country selection */[/text]
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.