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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CSS Menu Writer 2

Thread began 7/19/2010 11:36 am by bob240897 | Last modified 7/21/2010 2:56 am by bob240897 | 638 views | 4 replies |

bob240897

CSS Menu Writer 2

I've recently upgraded to CSS menu writer 2. I am trying to create a nested dynamic menu structure.
My MySql database is set-up with 2 tables Category (Name & ID) and Items (Name, ID & CatID). I can create the top level menus dynamically ok, but when I try to nest the second level - linked by the Cat ID - I get the following error... Fatal error: Call to undefined function getsqlvaluestring() in C:\xampp\htdocs\The George\CSSMenuWriter\cssmw1\menu.php on line 50

Sign in to reply to this post

Eric Mittman

This function should be added to any page that has a recordset on it, the code is Dreamweavers that is part of a recordset. If you open any other page that has a recordset on it you should see this function defined at the top of the page. You can add it to this page if it is missing. If you can post back with the page as it is now I will take a look to see if there is a problem I can spot about how the page was created.

Sign in to reply to this post

bob240897

Current files

Originally Said By: Eric Mittman
  This function should be added to any page that has a recordset on it, the code is Dreamweavers that is part of a recordset. If you open any other page that has a recordset on it you should see this function defined at the top of the page. You can add it to this page if it is missing. If you can post back with the page as it is now I will take a look to see if there is a problem I can spot about how the page was created.  


Can't find it in the recordset !

Attached Files
Bob CSS Menu Write.zip
Sign in to reply to this post

Eric Mittman

The page that you posted is not the one that the error is coming from, the error is coming from the CSSMenuWriter\cssmw1\menu.php on line 50. The problem is that you are missing this code above line 50:

php:
<?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";
      break;    
    case 
"long":
    case 
"int":
      
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case 
"double":
      
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case 
"date":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;
    case 
"defined":
      
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
      break;
  }
  return 
$theValue;
}
}
?>



You can add this into the file yourself, or you can post back with the file and I can add it in for you.

Sign in to reply to this post

bob240897

Dynamic Menus

Thanks Eric, all working fine now - but why wasn't the code generated properly in the first place ?

I'm still awaiting a reply to this question !!
Having manually put-right the missing code, if I now edit my content in any way from the Web Assist panel, it removes this code and puts me back to square 1.

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