close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

page went blank on adding 2nd array

Thread began 11/29/2010 7:07 am by bsaid1_acu419164 | Last modified 12/01/2010 12:21 am by Dave Buchholz | 1822 views | 5 replies |

bsaid1_acu419164

page went blank on adding 2nd array

Hi, i have tried to reproduce cars example given in this url: cars.php , using DW CS5 , Apache 2.2.15 (Win32), PHP 5.2.13 , Mysql 5.1.
When i add the first array, the drop down "models" work fine. but when I add the second array for the "engine size" the browser's page went blank.
I have tried my owns tests with different tables but same results.
would please take a look to the attachement :

Attached Files
cars.txt
Sign in to reply to this post

Jason ByrnesWebAssist

a blank p[age means that a php error is occuring.

add the following at line 1 to turn error reporting on:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>[/php]



from your source, it looks like you are using an older version of dynamic drop downs.


the error is that this function is being repeated on the page:
function WA_DD_Replace($startStr) {
$startStr = str_replace("'", "|WA|", $startStr);
$startStr = str_replace("\\", "\\\\", $startStr);
$startStr = preg_replace("/[\r\n]{1,}/", " ", $startStr);
return $startStr;
}


this is a bug that was corrected in the latest version of Dynamic Dropdowns.

Sign in to reply to this post

bsaid1_acu419164

page always blank

Thanks for relpy
dropdowns v.2.7.0
I have added the lines as you advice to get errors displayed but page always turns blank.
I have modified the php.ini file so that display_errors = On but same result.
tested this on FF and IExplorer
any ideas?
Please help.

Sign in to reply to this post

bsaid1_acu419164

Resolved

finally it's resolved
the error was :

Fatal error: Cannot redeclare wa_dd_replace() (previously declared in F:\UniServer5_6b\UniServer56b\www\pdrmt\cars.php:92) in F:\UniServer5_6b\UniServer56b\www\pdrmt\cars.php on line 144

I have deleted :
function WA_DD_Replace($startStr) {
$startStr = str_replace("'", "|WA|", $startStr);
$startStr = str_replace("\\", "\\\\", $startStr);
$startStr = preg_replace("/[\r\n]{1,}/", " ", $startStr);
return $startStr;
}

Now it's OK
very thanks for the help

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

Sign in to reply to this post

Dave BuchholzBeta Tester

Just to add that the latest version of Dynamic Dropdowns (2.7.5) solves this issue, so you should download it from the downloads section of your account.

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