close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Connection failing

Thread began 1/23/2019 6:41 am by john70964 | Last modified 1/25/2019 3:07 pm by john70964 | 3559 views | 9 replies

Ray BorduinWebAssist

This section of code still has old recordsets:

php:
<?php

mysql_select_db
($database_conn1_i, $conn1_i);
$query_rsCondition = "SELECT * FROM boatcondition";
$rsCondition = mysql_query($query_rsCondition, $conn1_i) or die(mysql_error());
$row_rsCondition = mysql_fetch_assoc($rsCondition);
$totalRows_rsCondition = mysql_num_rows($rsCondition);
mysql_select_db($database_conn1_i, $conn1_i);
$query_rsCurrency = "SELECT * FROM categorycurrency";
$rsCurrency = mysql_query($query_rsCurrency, $conn1_i) or die(mysql_error());
$row_rsCurrency = mysql_fetch_assoc($rsCurrency);
$totalRows_rsCurrency = mysql_num_rows($rsCurrency);
mysql_select_db($database_conn1_i, $conn1_i);
$query_rsDisplay = "SELECT * FROM measuredisplay ORDER BY MeasureIn DESC";
$rsDisplay = mysql_query($query_rsDisplay, $conn1_i) or die(mysql_error());
$row_rsDisplay = mysql_fetch_assoc($rsDisplay);
$totalRows_rsDisplay = mysql_num_rows($rsDisplay);
mysql_select_db($database_conn1_i, $conn1_i);
$query_rs_Measure_Beam = "SELECT * FROM measuredisplay_beam ORDER BY MeasureIn DESC";
$rs_Measure_Beam = mysql_query($query_rs_Measure_Beam, $conn1_i) or die(mysql_error());
$row_rs_Measure_Beam = mysql_fetch_assoc($rs_Measure_Beam);
$totalRows_rs_Measure_Beam = mysql_num_rows($rs_Measure_Beam);
?>


but it looks like the connections have been updated to mysqli, so I'm not sure why they weren't updated to mysqli syntax.

Do the recordsets show up in your server behaviors window? Instead of saving the page as .txt, just attach the actual page so I can open it in Dreamweaver in the future.

I think if you open and re-apply these then they should be updated properly. You may want to break them into separate code chunks first like:

php:
<?php

mysql_select_db
($database_conn1_i, $conn1_i);
$query_rsCondition = "SELECT * FROM boatcondition";
$rsCondition = mysql_query($query_rsCondition, $conn1_i) or die(mysql_error());
$row_rsCondition = mysql_fetch_assoc($rsCondition);
$totalRows_rsCondition = mysql_num_rows($rsCondition);
?>
<?php
mysql_select_db
($database_conn1_i, $conn1_i);
$query_rsCurrency = "SELECT * FROM categorycurrency";
$rsCurrency = mysql_query($query_rsCurrency, $conn1_i) or die(mysql_error());
$row_rsCurrency = mysql_fetch_assoc($rsCurrency);
$totalRows_rsCurrency = mysql_num_rows($rsCurrency);
?>
<?php
mysql_select_db
($database_conn1_i, $conn1_i);
$query_rsDisplay = "SELECT * FROM measuredisplay ORDER BY MeasureIn DESC";
$rsDisplay = mysql_query($query_rsDisplay, $conn1_i) or die(mysql_error());
$row_rsDisplay = mysql_fetch_assoc($rsDisplay);
$totalRows_rsDisplay = mysql_num_rows($rsDisplay);
?>
<?php
mysql_select_db
($database_conn1_i, $conn1_i);
$query_rs_Measure_Beam = "SELECT * FROM measuredisplay_beam ORDER BY MeasureIn DESC";
$rs_Measure_Beam = mysql_query($query_rs_Measure_Beam, $conn1_i) or die(mysql_error());
$row_rs_Measure_Beam = mysql_fetch_assoc($rs_Measure_Beam);
$totalRows_rs_Measure_Beam = mysql_num_rows($rs_Measure_Beam);
?>



That could help it update properly.


Did this help? Tips are appreciated...

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