473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Resource ID no. error

I am receiving the error..anybody please help me...i will appreciate if you can answer me...thank you very much..
Expand|Select|Wrap|Line Numbers
  1. $sql = "Select sum(lu4lam + lu4bom + lu4mw + lu42day + lu4bbt + lu4sympto) from tblreg ";
  2. $totalrow = mysql_query($sql) or die (mysql_error());
  3. echo "<td>TOTAL";echo "</td>";
  4. echo "<td>";echo "$totalrow"; echo "</td></tr>";
Aug 9 '07 #1
1 1149
Motoma
3,237 Expert 2GB
I am receiving the error..anybody please help me...i will appreciate if you can answer me...thank you very much..

$sql = "Select sum(lu4lam + lu4bom + lu4mw + lu42day + lu4bbt + lu4sympto) from tblreg ";
$totalrow = mysql_query($sql) or die (mysql_error());
echo "<td>TOTAL";echo "</td>";
echo "<td>";echo "$totalrow"; echo "</td></tr>";
$totalrow is a MySQL result resource identifier.
You will need to use the MySQL fetch functions to retrieve the result from it. This article shows how to use the result from a query.
Aug 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Danny Pressley | last post by:
I have a VS.NET 2003 Visual C++ MFC Application Project in which I added a new resource file, I then added an icon to this new resource file and did a rebuild and got the following error: "fatal...
11
by: Danny Pressley | last post by:
I have a VS.NET 2003 Visual C++ MFC Application Project in which I added a new resource file, I then added an icon to this new resource file and did a rebuild and got the following error: "fatal...
2
by: Alan Johnson | last post by:
I am trying to create an automatic resource manager that works very much the same as std::auto_ptr. However, I have a compile error I cannot figure out. The following program demonstrates the...
1
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ...
6
by: martin | last post by:
Hi, I have noticed that every aspx page that I created (and ascx file) has an assosiated resource file aspx.resx. However what I would like to do is have a single global resource file for the...
1
by: coz | last post by:
Someone please help! I cannot for the life of me get a web resource in asp.net 2.0 to return any content. I know I have correctly embedded my resources (because I can manually get the resources...
0
by: filmo | last post by:
I've got a script that is receiving a PUT request from a Java Applet. To access the PUT data, the php script contains: $putdata = fopen("php://input","r"); error_log("PUTDATA = $putdata Last...
6
by: Kye | last post by:
Can anybody please suggest to me where I can look up what a Resource id #71 is??? No success so far looking for what the resource codes are on the net. -- Yours Sincerely Kye
1
by: TisMe | last post by:
Hi All, I am trying to use resource files to globalize my website application. I had this working fine, working through the API for setting page titles programatically, with the resource files...
2
by: steve | last post by:
I have the following routine for retrieving error message strigs from a resource file which is embedded in the project. But when it is called I get the error messsage "Could not find any...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.