User Profile

Collapse

Profile Sidebar

Collapse
baris22
baris22
Last Activity: Jul 23 '10, 04:17 AM
Joined: Jan 31 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • baris22
    started a topic Skip in a loop
    in PHP

    Skip in a loop

    hello,

    this is my code. output of this code is like this:

    item amount item name

    1 jacket
    3 top
    3 top
    3 top
    1 skirt

    what can i do to show like this?
    item amount item name

    1
    jacket
    3
    top
    top
    top
    1
    skirt

    If the item amount is bigger than 1, i just want to show item amount only once and skip the other ones....
    See more | Go to post

  • baris22
    replied to how to optimise a mysql table using php
    in PHP
    ok. i managed to get it working.

    Code:
    [PHP]
    
            if ($newReference == "A001")
            {
            $opt = "OPTIMIZE TABLE item";
            $opt_table = mysql_query($opt); 
            }
    
    [/PHP]
    I have got another small question. how can i add "B001" , "C001" , "D001" , "E001" ...........
    See more | Go to post

    Leave a comment:


  • baris22
    started a topic how to optimise a mysql table using php
    in PHP

    how to optimise a mysql table using php

    I am deleting rows before inserting new one and i get Overhead problems. what can i do do repair the table after i delete the row. i have been trying for ages but i could not do it. this is the code for inserting.

    when i use OPTIMIZE TABLE item, it does not work.

    Code:
    		// delete before inserting //////////////////////////
    		
    		$query = "SELECT COUNT(*) as num FROM orderr WHERE order_reference_number='".$newReference."'
    ...
    See more | Go to post

  • baris22
    replied to parse a number to float problem
    thanks alot. it works perfect now
    See more | Go to post

    Leave a comment:


  • baris22
    started a topic parse a number to float problem

    parse a number to float problem

    hello,

    i know php but i have got no knowledge on ajax. this is the function my programmer made long time ago. it is showing the total value on the text areas. The problem am facing now is:

    forexample if the value on the field is: 1.50 it turns into 1.

    What can i do to solve the problem. i think it is something to do with parseInt

    Code:
    function amtTot(){
    
    	//fee_tot1
    ...
    See more | Go to post
No activity results to display
Show More
Working...