This topic is locked

query was empty a error 256

8/7/2008 1:48:49 PM
PHPRunner General questions
R
ronnyd8719 author

Technical information

Error type 256

Error description Query was empty

URL www.bedandbreakfastregistry.com/php/clients_search.php?

Error file /home/bedandb1/public_html/php/include/dbconnection.php

Error line 26

SQL query
The above is the error message I am getting. I don't understand why phprunner did this. I will put the code below. Please help me.

I am putting a part of the code and the error is on line 26.

I put line 26 in red.
{

global $host,$user,$pwd,$errstr,$sys_dbname,$port;

$strhost=$host;

if($port && $port!=3306)

$strhost=$strhost.":".$port;

$conn = mysql_connect($strhost,$user,$pwd);

if (!$conn || !mysql_select_db($sys_dbname,$conn))

{

trigger_error(mysql_error(), E_USER_ERROR);

}

return $conn;

}
function db_close($conn)

{

return mysql_close($conn);

}
function db_query($qstring,$conn)

{

if(!($ret=mysql_query($qstring,$conn)))

{

trigger_error(mysql_error(), E_USER_ERROR);

}

return $ret;
}
function db_exec($qstring,$conn)

{

return db_query($qstring,$conn);

}
function db_pageseek($qhandle,$pagesize,$page)

{

db_dataseek($qhandle,($p

J
Jane 8/8/2008

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

R
ronnyd8719 author 8/8/2008

I seam to figure out the problems now before you get to me. I will try and figure things out a little more before I ask a question. There is one thing. Do you have something more than the video on the website to make the dropdown menu. That is not explained well in the video. So if you have a way to can explain it to me better I would like to have it. Then it may be what I am using it for. You don't have exsamples of the way I am using it.

Thanks