I don't see errormessage

General discussions related to php

Moderators: macek, egami, gesf

mikaeerik
New php-forum User
New php-forum User
Posts: 3
Joined: Fri Sep 27, 2013 7:25 am

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?

Return to “PHP General”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron