close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Driving directions to either of two addresses

Thread began 3/01/2010 4:50 am by gwh362692 | Last modified 3/15/2010 4:46 pm by gwh362692 | 1973 views | 14 replies


I don't know what I did but now when it loads, there is no map appearing initially at all. It's only when you fill in the form and select a destination that the map appears along with the driving instructions.

In step 2 of 5 of the wizard, I have all the addresses populated with the rstDestinations recordset.

  If this is the case one thing you can do to account for that would be to set the default value of your filter to be a record id from your locations table for the location you would like to see as the default.  

How do I do this?

The following is the php code at the top of my document:

<?php require_once('../Connections/locations.php'); ?>
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
return $theValue;

mysql_select_db($database_locations, $locations);
$query_rstLocations = "SELECT * FROM locations ORDER BY store ASC";
$rstLocations = mysql_query($query_rstLocations, $locations) or die(mysql_error());
$row_rstLocations = mysql_fetch_assoc($rstLocations);
$totalRows_rstLocations = mysql_num_rows($rstLocations);

$colname_rstDestination = "-1";
if (isset($_POST['location'])) {
$colname_rstDestination = (get_magic_quotes_gpc()) ? $_POST['location'] : addslashes($_POST['location']);
mysql_select_db($database_locations, $locations);
$query_rstDestination = sprintf("SELECT locationID, store, street, suburb, `state`, postcode, Country FROM locations WHERE locationID = %s", GetSQLValueString($colname_rstDestination, "int"));
$rstDestination = mysql_query($query_rstDestination, $locations) or die(mysql_error());
$row_rstDestination = mysql_fetch_assoc($rstDestination);
$totalRows_rstDestination = mysql_num_rows($rstDestination);

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...