View Full Version : css Menu make code wrong.. need help?
toleehua356796
03-03-2009, 11:06 AM
i am used the css menu writer & date assist to make the dynamic item Menu. i am follow before your train video to do it. but when i finish the Dreamweaver cs3 Live Data Error
show on the page. Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C: \AppServ|www\zone|CSSMenuWriter\cssmw_content\menu _41qjlfy92x.php on line 31 & 33
my website: http://www.yaozone.com
the code:
Line: 31 mysql_select_db($database_connbulesky, $connbulesky);
Line: 32 $query_rsHZ = "SELECT * FROM items WHERE ItemCatID = 1 ORDER BY ItemID ASC";
Line: 33 $rsHZ = mysql_query($query_rsHZ, $connbulesky) or die(mysql_error());
Line: 34 $row_rsHZ = mysql_fetch_assoc($rsHZ);
Line :35 $totalRows_rsHZ = mysql_num_rows($rsHZ);
on the localhost used firefox show the index.php
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\zone\CSSMenuWriter\cssmw_content\me nu.php on line 31
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\zone\CSSMenuWriter\cssmw_content\me nu.php on line 33
i don't know how to fix this. please help?
i used the date: bludskymusic. all the page is make by dateassist. the Menu make by CSS Menu Writer. help me please. i spend tow weeks still dont know how to fix.
please go to mine web site to see. i upload still not working!
http://www.yaozone.com
Thanks any one can help!
Ray Borduin
03-03-2009, 11:20 AM
These errors imply that the connections folder is not included or is not referenced properly on the page. Make sure the connections file is correct and appears on the top of the page.
toleehua356796
03-05-2009, 12:19 PM
These errors imply that the connections folder is not included or is not referenced properly on the page. Make sure the connections file is correct and appears on the top of the page.
Thanks so much! I got fix it. But the templates pages (siteassistpro_template.dwt.php) Still don't work. When i used the live date. DW CS3 show on like this:
Warning: require_once(Connections/connbulesky.php) [function.require-once]: failed to open stream: No such file or directory in C:\AppServ\www\zone\CSSMenuWriter\cssmw_content\me nu.php on line 1
Fatal error: require_once() [function.require]: Failed opening required 'Connections/connbulesky.php' (include_path='.;C:\php5\pear') in C:\AppServ\www\zone\CSSMenuWriter\cssmw_content\me nu.php on line 1
Can your tell me again how to fix it. please?
Ray Borduin
03-05-2009, 12:22 PM
open up the file:
cssmw_content\menu.php
and look at line 1
it appears that an incorrect connections reference is on this page. You would need to either remove or update it.
toleehua356796
03-06-2009, 02:14 PM
Thanks again to you! I got another question about the ecart.
I follow the ecart “getting_started_guide” finish the index.php > add the ecart object.
But on the product page: ecart add to cart button> General> Properties> look up item ID from the recordset. I don’t know which recordset. I pick?
I open the product page. Widow server behaviors> tow recordset on this page.
Recordset (WADAitems ) follow the AdminSuite_SolutionRecipe video the product page come with.
Recordeset (rsHZ) this one is mine before do the css menu writer & date assist to make the dynamic item Menu. Add on the Menu.php page.
I check this tow recodset is the same:
Filter> itemCatID
Entered Value =1
Sort> ItemID> ascending.
Would you please teach me which recordset I can choice is right one?
Thanks again to you!
Ray Borduin
03-06-2009, 02:28 PM
I think it refers to the WADAitems recordset. But I really can't be sure because I don't quite understand what you are talking about.
toleehua356796
03-07-2009, 07:49 AM
Sorry! I need help again for the Ecart:
When I finish the
Product.php page:
Ecart Add to Cart Button.> on the product.php page.
DW CS3 Live Data Error show like this:
An error occurred while requesting the document form the testing server:
Fatal error: Call to a member function GetContent() on a non-object in C:\AppServ\www\yaozone\products.php on line 3
Fire fox show:
Fatal error: Call to a member function GetContent() on a non-object in C:\AppServ\www\yaozone\products.php on line 3
Product.php page code:
Line 1: <?php require_once('Connections/connbulesky.php'); ?>
Line2: <?php
Line3: $BlueSky->GetContent(); *********wrong on this Line *********
Line4: ?>
Line5: <?php
Line6: //WA Database Search Include
Line7: require_once("WADbSearch/HelperPHP.php");
Line8 ?>
Line9: <?php
items_Detail.php page:
Ecart Add to Cart Button> on the items_Detail.php page.
The DW CS3 Live Data Error Show like this:
Parse error: syntax error, unexpected T_VARIABLE in C:\AppServ\www\yaozone\WA_eCart\BlueSky_PHP.php on line 10
Fire fox show:
Parse error: syntax error, unexpected T_VARIABLE in C:\AppServ\www\yaozone\WA_eCart\BlueSky_PHP.php on line 10
Item_Detail.php page code:
Line 1: <?php
Line 2: //WA eCart Include
Line 3: require_once("WA_eCart/BlueSky_PHP.php");
Line4: ?>
Line5: <?php require_once('Connections/connbulesky.php'); ?>
Line6: <?php
Line7: $BlueSky->GetContent();
Line8: ?>
Line9: <?php
Line10: if (!function_exists("GetSQLValueString")) { *******wrong on this line *******
Line11: function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
Line12: {
Line13: $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
Please help me again! Thanks again to you!
Ray Borduin
03-09-2009, 08:54 AM
The page with the error is missing:
<?php
//WA eCart Include
require_once("WA_eCart/BlueSky_PHP.php");
?>
This code has to appear before: $BlueSky->GetContent();
toleehua356796
03-09-2009, 08:10 PM
when i post your toll me the code on page. the wrong line go to line 10. DWcs3 live date show on:
Parse error: syntax error, unexpected T_VARIABLE in C:\AppServ\www\yaozone\WA_eCart\BlueSkyCart_PHP.ph p on line 10
Before page code:
line 1: <?php require_once('Connections/connbulesky.php'); ?>
line 2: <?php
line 3: $BlueSkyCart->GetContent(); ******wrong code here*****
line 4: ?>
line 5: <?php
line 6: //WA Database Search Include
line 7: require_once("WADbSearch/HelperPHP.php");
line 8: ?>
line 9: <?php
line 10: //WA Database Search (Copyright 2005, WebAssist.com)
line 11: //Recordset: WADAitems;
line 12: //Searchpage: items_Search.php;
line 13: //Form: WADASearchForm;
After post:
line 1: <?php require_once('Connections/connbulesky.php'); ?>
line 2: <?php ****** post your toll me the code*****
line 3: //WA eCart Include ********post your toll me the code*****
line 4: require_once("WA_eCart/BlueSkyCart_PHP.php"); ****post you toll me code****
line 5: ?><?php
line 6: $BlueSkyCart->GetContent();
line 7: ?>
line 8: <?php
line 9: //WA Database Search Include
line 10: require_once("WADbSearch/HelperPHP.php"); ??????DW cs3 show wrong on this line ?????
line 11: ?>
line 12: <?php
line 13: //WA Database Search (Copyright 2005, WebAssist.com)
line 14: //Recordset: WADAitems;
line 15: //Searchpage: items_Search.php;
line 16: //Form: WADASearchForm;
line 17: $WADbSearch1_DefaultWhere = "";
line 18: if (!session_id()) session_start();
line 19: if ((isset($_GET["Search_x"]) && $_GET["Search_x"] != "")) {
line 20: $WADbSearch1 = new FilterDef;
line 21: $WADbSearch1->initializeQueryBuilder("MYSQL","1");
line 22: //keyword array declarations
line 23: $KeyArr1 = array("ItemShortDesc");
Please help me again! Thanks!
wrong go to the line 10: see ??????DW cs3 show wrong on this line??????
thanks again!
Ray Borduin
03-10-2009, 08:45 AM
It looks correct. What is the exact error you are getting?
toleehua356796
04-11-2009, 08:35 AM
Thanks anyone can help? when i follow the css menu & dataassist before the video to make the menu. on the
cssmw_content\menu.php
line 1<?php require_once('../../Connections/connbulesky.php'); ?>
line 2<?php
the video teach me the remove the line1. so i remove the line. the Memu is working. But when i add the Ecart on the page. ( The Menu link to the item page this itempage is working ) go to >add to cart button > shopping cart.php page. the page show this code wrong:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\yaozone\CSSMenuWriter\cssmw_content \menu.php on line 31
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\yaozone\CSSMenuWriter\cssmw_content \menu.php on line 33
i before post same problem. before i am not add the ecart on page. is working. But now add ecart ( add to the cart button) on the page is not working. i don't know how to fix this problem. i buy super suit. with tools can be fix this problem.
The Webassist adminer toll me need to "You would need to either remove or update it" How to update it? Can you tell me how to do it is update?
But i am new to build. i don't know any code. can you teach me how to fix this ?
help me please? any one. i spend lot the time on this web.
Thanks anyone! leehua
and look at line 1
it appears that an incorrect connections reference is on this page.
Ray Borduin
04-13-2009, 07:46 AM
Try to add a dreamweaver recordset to the page and follow tutorials on how to do so. Once you add a recordset it will have also added your connection.
David Stringer
04-13-2009, 10:04 AM
Before page code:
line 1: <?php require_once('Connections/connbulesky.php'); ?>
After post:
line 1: <?php require_once('Connections/connbulesky.php'); ?>
I think you need to check the spelling of bluesky.php - could this be the problem in connecting?
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.