close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

no connection to db file inn mySQL (WAMPP)

Thread began 4/07/2011 5:29 pm by chasmichaelp422603 | Last modified 4/07/2011 6:44 pm by Jason Byrnes | 1280 views | 1 replies |

chasmichaelp422603

no connection to db file inn mySQL (WAMPP)

I am using XAMPP while following the training-instructions set forth in the “Database_Starter_Kit_PHP” flash video training series. Unfortunately this training program uses mySQL in some kind of stand alone mode that uses a different GUI than XAMPP, nevertheless, I think I imported the “physical_goods.sql” db correctly and as I followed all the steps in DW it didn’t burp or belch. HOWEVER, when it came to step 09 Previewing your data, the following messages appeared in both the browser and in Live View:

Warning: virtual() [function.virtual]: Unable to include '/htdocs/WebAssist_Dynamic/ConnWA.php' - request execution failed in C:\xampp\htdocs\recordset.php on line 1

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\xampp\htdocs\recordset.php on line 34

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\xampp\htdocs\recordset.php on line 36

Line 1 <?php virtual('/htdocs/WebAssist_Dynamic/ConnWA.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {

}

Line 34 mysql_select_db($database_connWA, $connWA);
$query_rsItems = "SELECT ItemName, ItemLongDesc, ItemPrice, ItemThumb, items.ItemCatID FROM items WHERE ItemPrice < 50 AND items.ItemCatID =1 ORDER BY ItemName ASC";
Line 35 $rsItems = mysql_query($query_rsItems, $connWA) or die(mysql_error());
$row_rsItems = mysql_fetch_assoc($rsItems);
Line 37 $totalRows_rsItems = mysql_num_rows($rsItems);
?>

In addition, in the testing server file view all the files are red (pink) but the files in these folders are green. Both the files and folders are green in local view. In reality I am doing everything on the testing server. I did not build a local_site directory to avoid unnecessary duplication ( an approach recommended in WAMPP instructions.

Any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

In your Dreamweaver site settings, there is an option on the Local Info tab to to "Create Links relative To", set this to Document instead of site so that Dreamweaver will use the require_once() function for include files instead of the virtual() function.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...