User Profile

Collapse

Profile Sidebar

Collapse
huda89
huda89
Last Activity: Sep 17 '13, 10:35 AM
Joined: Oct 19 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thank you gumpagoo =)
    See more | Go to post

    Leave a comment:


  • Hi solutionwand,
    Thank you for your reply =)
    I have managed to solve that problem.
    See more | Go to post

    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)'];
    ...
    See more | Go to post

    Leave a comment:


  • Hi Rabbit, it is means i should do the calculation something like this:
    $z = $y - $x;
    See more | Go to post

    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)'];
    ...
    See more | Go to post

    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',
    ...
    See more | Go to post

    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 =)
    See more | Go to post

  • huda89
    replied to master and sub code
    in PHP
    Hi Atli i had post new thread regarding this question.
    The title is "calculatio n that fetch value from different table".
    Thank You.
    See more | Go to post

    Leave a comment:


  • huda89
    started a topic calculation that fetch value from different table
    in PHP

    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...
    See more | Go to post

  • huda89
    replied to master and sub code
    in PHP
    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?
    See more | Go to post

    Leave a comment:


  • huda89
    started a topic master and sub code
    in PHP

    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. =)
    See more | Go to post

  • OK, thank you Rabbit. I will try search for it :)
    See more | Go to post

    Leave a comment:


  • huda89
    started a topic Display data in one form from 2 different tables
    in PHP

    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. =)
    See more | Go to post

  • huda89
    replied to search problem
    in PHP
    Thank You omerbutt, i got it. =)
    See more | Go to post

    Leave a comment:


  • huda89
    started a topic search problem
    in PHP

    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",
    ...
    See more | Go to post

  • huda89
    started a topic Barcode reader
    in PHP

    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. :)
    See more | Go to post

  • huda89
    replied to Login Problem
    in PHP
    Thank You sharmahemal :)
    See more | Go to post

    Leave a comment:


  • huda89
    replied to Login Problem
    in PHP
    ok, thank you :)
    let me check.
    See more | Go to post

    Leave a comment:


  • huda89
    replied to Login Problem
    in PHP
    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,
    ...
    See more | Go to post

    Leave a comment:


  • huda89
    started a topic Login Problem
    in PHP

    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();
    ...
    See more | Go to post
No activity results to display
Show More
Working...