close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Querry runs fine on local but not on remote without error - it returns just blank page

Thread began 2/10/2018 1:45 am by kost36 | Last modified 2/12/2018 10:52 am by Ray Borduin | 938 views | 4 replies |

kost36

Querry runs fine on local but not on remote without error - it returns just blank page

<?php require_once('Connections/local_mysqli.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
<?php
$Recordset3 = new WA_MySQLi_RS("Recordset3",$local_mysqli,0);
$Recordset3->setQuery("SELECT eak_nominees.`Title`, eak_nominees.`Director` FROM eak_nominees WHERE eak_nominees.katigoria_nominee LIKE 'Documentary%' ORDER BY eak_nominees.`Title` ASC");
$Recordset3->execute();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<?php
while(!$Recordset3->atEnd()) {
?>
<table>
<tbody>
<tr>
<td><?php echo($Recordset3->getColumnVal("Title")); ?> (<?php echo($Recordset3->getColumnVal("Director")); ?>)</td>
</tr>
</tbody>
</table>
<?php
$Recordset3->moveNext();
}
$Recordset3->moveFirst(); //return RS to first record
?>
</body>
</html>


thank's
/kostas

Sign in to reply to this post

Ray BorduinWebAssist

A blank page usually means you haven't uploaded the include files necessary. If you add this to the top it may show the error instead of a blank page:

<?php
ini_set('display_errors',1);
?>

Sign in to reply to this post
Did this help? Tips are appreciated...

kost36

it returns
Warning: mysqli_stmt_result_metadata() expects parameter 1 to be mysqli_stmt, boolean given in /home7/kost36/public_html/webassist/mysqli/rsobj.php on line 478

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, null given in /home7/kost36/public_html/webassist/mysqli/rsobj.php on line 480

Warning: mysqli_fetch_fields() expects parameter 1 to be mysqli_result, null given in /home7/kost36/public_html/webassist/mysqli/rsobj.php on line 481

Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, null given in /home7/kost36/public_html/webassist/mysqli/rsobj.php on line 483

Warning: mysqli_stmt_store_result() expects parameter 1 to be mysqli_stmt, boolean given in /home7/kost36/public_html/webassist/mysqli/rsobj.php(472) : eval()'d code on line 1

Warning: mysqli_stmt_bind_result() expects at least 2 parameters, 1 given in /home7/kost36/public_html/webassist/mysqli/rsobj.php(472) : eval()'d code on line 1

Sign in to reply to this post

Ray BorduinWebAssist

It looks like your database connection information is wrong for the live server. Open the connection file and make sure the server name, username, password, and database name are correct.

Sign in to reply to this post
Did this help? Tips are appreciated...

kost36

thank's Ray, solved

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