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

rating

error message

Thread began 11/26/2010 3:53 pm by i.edwards384429 | Last modified 11/29/2010 11:07 am by Jason Byrnes | 1108 views | 4 replies |

i.edwards384429

error message

Hi

used the dataassist module to create the search sequence in the file boats_search.php using the search, results and details pages



I then created a sub directory ie htdocs\admin\ and re ran the da module to create an admin backend which included the delete, insert and update pages because the search criteria are different for the admin


The search, results and details pages work perfectly but when I go into the admin section and run the boats_search file I get the error below.


//save the query in a session variable if (1 == 1) { $_SESSION["WADbSearch1_admin_Results"]=$WADbSearch1->whereClause; } } else { $WADbSearch1 = new FilterDef; $WADbSearch1->initializeQueryBuilder("MYSQL","1"); //get the filter definition from a session variable if (1 == 1) { if (isset($_SESSION["WADbSearch1_admin_Results"]) && $_SESSION["WADbSearch1_admin_Results"] != "") { $WADbSearch1->whereClause = $_SESSION["WADbSearch1_admin_Results"]; } else { $WADbSearch1->whereClause = $WADbSearch1_DefaultWhere; } } else { $WADbSearch1->whereClause = $WADbSearch1_DefaultWhere; } } $WADbSearch1->whereClause = str_replace("\\''", "''", $WADbSearch1->whereClause); $WADbSearch1whereClause = ''; ?>


I've run a file compare and the two files seem only to have the differences I would expect.

Can you please take a look and let me know where I've gone wrong?

thanks

Ian

Attached Files
admin.zip
Sign in to reply to this post

i.edwards384429

update

Hi

I've solved that issue by starting from scratch ( all good experience)

when I now do a search an image field with the code

<td class="WADAResultsTableCell"><a href="admin_Detail.php?id=<?php echo(rawurlencode($row_WADAboats['id'])); ?>" ><?php echo($row_WADAboats['dt_boatImageThumbnail']); ?></a></td>

shows us as the file name ie image.jpeg.

I need the image to be displayed but when I use the code:

<img src="../boat_images/<?php echo $row_WADAboats["dt_boatImageThumbnail"]; ?>"

to replace

<?php echo($row_WADAboats['dt_boatImageThumbnail']); ?>

I get the yellow ? in DW and no image shows.

Where is my code wrong?

thanks

Ian

Sign in to reply to this post

Jason ByrnesWebAssist

it looks like the imagetag is not being closed:
<img src="../boat_images/<?php echo $row_WADAboats["dt_boatImageThumbnail"]; ?>" />

Sign in to reply to this post

i.edwards384429

update

Thanks Jason, looked at that for hours;-(

Trust you had a good holiday weekend???

cheers

Ian

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Yes, it was a fantastic holiday, thanks for asking.

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