View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Data Assist and CMS

Thread began 11/06/2009 7:49 pm by mrs | Last modified 11/09/2009 2:47 pm by mrs | 822 views | 1 replies


Data Assist and CMS

I have just added a table to the database of PowerCMS and then ran data assist to help me build admin pages to edit the new table. I have just tested the pages, and for the first time ever that I have run this extension, I have resultant pages that error. The error is:

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/linux/a/ on line 91

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/linux/a/ on line 95

Line 91 is: mysql_select_db($database_localhost, $localhost);

and 95 is: $WADAseo = mysql_query($query_limit_WADAseo, $localhost) or die(mysql_error());

The two lines are part of this:

$maxRows_WADAseo = 1000;
$pageNum_WADAseo = 0;
if (isset($_GET['pageNum_WADAseo'])) {
$pageNum_WADAseo = $_GET['pageNum_WADAseo'];
$startRow_WADAseo = $pageNum_WADAseo * $maxRows_WADAseo;

mysql_select_db($database_localhost, $localhost);
$query_WADAseo = "SELECT seoID, pagename, browsertitle, metatags, metadescription FROM seo";
$query_limit_WADAseo = sprintf("%s LIMIT %d, %d", $query_WADAseo, $startRow_WADAseo, $maxRows_WADAseo);
$WADAseo = mysql_query($query_limit_WADAseo, $localhost) or die(mysql_error());
$row_WADAseo = mysql_fetch_assoc($WADAseo);

if (isset($_GET['totalRows_WADAseo'])) {
$totalRows_WADAseo = $_GET['totalRows_WADAseo'];
} else {
$all_WADAseo = mysql_query($query_WADAseo);
$totalRows_WADAseo = mysql_num_rows($all_WADAseo);
$totalPages_WADAseo = ceil($totalRows_WADAseo/$maxRows_WADAseo)-1;

Have you got any advice on this as I am stumped. There is content in the MySQL table, it's a simple table, and yet I can't get the results page to display. The insert and search page (prior to a search) will display, but these don't seem to be calling anything from the database yet.

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





Ease of use


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