[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

05/30/2006 at 08:32AM PDT, ID: 21868226
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

PHP "require" page problem

Asked by dereksheahan in PHP Scripting Language

Tags: google, subfinder

Hi all,
I have a 2 php pages where I trying to access google maps and update and display points on the map from an SQL database. I found a tutorial on the net but can't seem to get it functioning correctly. The first php page has no /body and /html tags but instead they look like they are bring called from another file. Just wondering is it normal for a page to end with no /html tag and the other page try to write it instead like this:

<?php

require_once('../Connections/Map.php'); ?>
<?php
echo "<html><head><link href=\"/style/hans.css\" rel=\"stylesheet\" type=\"text/css\">";
echo "</head><body>";
echo "Lat: " . $new_lat . "<br>";
echo "Lon: " . $new_lon . "<br>";
echo "Text: " . $new_desc . "<br>";
echo "URL: " . $new_url . "<br>";
echo "Marker: " . $new_marker . "<br>";
echo "Will now be added to the database...";



$new_desc = addslashes($new_desc);
$link = mysql_connect($dbserver, $username, $password) or die("Could not connect: " . mysql_error());
mysql_select_db("dbmapserver",$link) or die ("Can\'t use dbmapserver : " . mysql_error());
$sql = "INSERT INTO subfinder ";
$sql = $sql . "VALUES ('','".$new_lat."','".$new_lon."','".$new_desc."','".$new_url."','".$new_marker ."')";
$result = mysql_query($sql ,$link);
if (!$result)
{
echo "<p>Due to an error (" . mysql_error() . ")<br>, your entry could not be loaded into the database. Please return to <a href=\"subfinder.php\">Subfinder</a>.";
} else
{
echo "<p>Your entry has been loaded into the database. Please return to <a href=\"subfinder.php\">SubFinder</a>.";
}

echo "</body></html>";
?>
[+][-]05/30/06 10:05 AM, ID: 16791532

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: google, subfinder
Sign Up Now!
Solution Provided By: jasco4617
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05/30/06 04:43 PM, ID: 16794590

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91