Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

I don't see errormessage

General discussions related to php

Moderators: macek, egami, gesf

I don't see errormessage

Postby mikaeerik » Sun Nov 03, 2013 6:06 am

In my server there is PHP 5.3.27. I have tried following:

$query_Recordset1 = sprintf("Select * From Kayttaja Where tunnus = '".$lstrTunnus."'");
$Recordset1 = mysql_query($query_Recordset1, $connect) or die("Recordset-error: ". mysqli_error($connect));

or

$Recordset1 = mysql_query($query_Recordset1, $connect);

if (!$Recordset1) {
printf("Recordset-error: ". $errmsg);
}

or

if (!$Recordset1) {
printf("Recordset-error: %s\n", $connect->error);
}

Page shows Recordset-error: but nothing else.
What is wrong?
mikaeerik
New php-forum User
New php-forum User
 
Posts: 3
Joined: Fri Sep 27, 2013 7:25 am

Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron