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

Search results only shows 23 records

Thread began 2/15/2011 10:17 am by kbettenc296716 | Last modified 2/16/2011 2:44 pm by Jason Byrnes | 1173 views | 7 replies |

kbettenc296716

Search results only shows 23 records

All .php files were created by DataAssist. Using the search page (siteimages_search.php) for all records with a type 1 (quilt) only 23 records show. When I look at the actual MySQL table there are 37 records where type=1. Some records had a field with a NULL value in it, I changed those values to 0, nothing changed, still only 23 records. When I try the same search on my localhost it works fine, all the records show.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the results page so i can look at the code please.

Sign in to reply to this post

kbettenc296716

Also

Also, I redid all the pages and still had the problem. Here is the results page.

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

Jason ByrnesWebAssist

to troubleshot, add the following code just after the body tag:

php:
SQL: <?php echo($query_limit_WADAsiteimages): ?><br />




this will write the query being used to the screen.

Sign in to reply to this post

kbettenc296716

I get this

Parse error: syntax error, unexpected ':', expecting ',' or ';' in \\nawinfs02\home\users\web\b341\rh.sgregg55\siteimages_Results.php on line 283

I tried taking the SQL: off, no change

Sign in to reply to this post

Jason ByrnesWebAssist

sorry, it should be:

php:
SQL: <?php echo($query_limit_WADAsiteimages); ?><br />
Sign in to reply to this post

kbettenc296716

This is what you get when I look at the binding for the results page:
SELECT siID, siTitle, siYear, siStatus, siNewWork, siAddDate, siType, siGroup
FROM siteimages
ORDER BY siAddDate DESC

This is what your code produced, which explains everything.
SQL: SELECT siID, siTitle, siYear, siStatus, siType, siNewWork, siGroup, siAddDate FROM siteimages WHERE ((siType = 1)) AND ((siNewWork = 1)) ORDER BY siAddDate DESC LIMIT 0, 1000

I know what to do to fix it, thanks, that is a nifty debug.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it helped find the problem.

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