User Profile
Collapse
-
Thank you gumpagoo =) -
Hi solutionwand,
Thank you for your reply =)
I have managed to solve that problem.Leave a comment:
-
Thanks, i just need to change code position.
...Code:$query = "SELECT e.component_1, o.component_2, SUM(e.quantity_1), SUM(o.quantity) FROM equip_ments e LEFT JOIN outbound o ON e.serial_num=o.serial_num GROUP BY component_1"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $y = $row['SUM(e.quantity_1)']; $x = $row['SUM(o.quantity)'];Leave a comment:
-
Hi Rabbit, it is means i should do the calculation something like this:
$z = $y - $x;Leave a comment:
-
Hi Rabbit, thank you for your reply, I had done joining the table, but when I perform the calculation there's problem,I cannot get the value of $z, is there anything wrong with my code,thank you. Below is my code:
...Code:$query = "SELECT e.component_1, o.component_2, SUM(e.quantity_1), SUM(o.quantity) FROM equip_ments e LEFT JOIN outbound o ON e.serial_num=o.serial_num GROUP BY component_1"; $y = $row['SUM(e.quantity_1)'];
Leave a comment:
-
I find this code from internet then i edit a little bit and apply it to my code.
...Code:<?php /* * PHP code to export MySQL data to CSV * http://911-need-code-help.blogspot.com/2009/07/export-mysql-data-to-csv-using-php.html * * Sends the result of a MySQL query as a CSV file for download */ /* * establish database connection */ $conn = mysql_connect('localhost',Leave a comment:
-
Export MYSQL data for specific date into Excel/CSV via php
Hi,
I would like to export mysql data into excel/CSV for specific date.
For example i would like to generate data from 01-11-2012 to 31-12-2012, how do i perform this process?
I had done export mysql data into excel/CSV file for whole data in database but now the problem is i would like to generate data in date range. Can anyone help me. Thank You =) -
Hi Atli i had post new thread regarding this question.
The title is "calculatio n that fetch value from different table".
Thank You.Leave a comment:
-
calculation that fetch value from different table
Hi,
Can i perform calculation that fetch value from different table in database?
i have two tables which are inbound and outbound table ,
i need to calculate item in stock,item out and total item.
i need to minus total item with item out,in order to find item in stock.
But the problem is total item is store in inbound table and item out is store in outbound table,
so how do i need to perform the calculation... -
Hi @Rabbit
Thank you for your reply, Can we hold the previous question for a while, i am really sorry about that, can i ask you another question about this problem first, can i perform calculation that fetch value from different table in database?Leave a comment:
-
master and sub code
Hi,
If i would like to display the result based on different sub categories, do i need to set the master and sub code in database for each different categories and sub categories? Thank you. =) -
-
Display data in one form from 2 different tables
Hi,
I would like to ask, is it possible if i would like to display data in one form from two different table in database? Thank you. =) -
-
search problem
Hi,
I do the search function, when enter the search keyword and click button find, the lists of item display.
But the problem is i would like to do something like this, when i click one of the list items, it will redirect to another page that display details of the clicked items.
Can someone help me please? Thank you :)
Below the code that i had done so far
...Code:<?php mysql_connect ("localhost", -
Barcode reader
Hi i just want to ask, if i would like to do bar code reader using php and mysql, is there anything else that i needed to consider other than php and mysql in order to develop this bar code reader?
I am quite blur regarding this thing and how to manage/create it. Thank you. :) -
-
-
I think so, because i just copy it from internet, and i change it according to my connection. Below the code for config.php
...Code:<?php $mysql_hostname = "localhost"; $mysql_user = "root"; $mysql_password = ""; $mysql_database = "trial"; $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Opps some thing went wrong"); mysql_select_db($mysql_database,Leave a comment:
-
Login Problem
Hi, i do some code in order to learn login function and i find the code from internet, but when i run the code this error is appear
>>Warning: mysql_fetch_arr ay() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs \login2\login.p hp on line 12
I do not know what the problem is, can someone help me please?
...Code:<?php include("config.php"); session_start();
No activity results to display
Show More
Leave a comment: