Click here to Skip to main content
15,887,135 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: help me (PHP beginner) Pin
Mohibur Rashid11-Aug-11 18:51
professionalMohibur Rashid11-Aug-11 18:51 
GeneralRe: help me (PHP beginner) Pin
Ahmad Alweshahi12-Aug-11 1:03
Ahmad Alweshahi12-Aug-11 1:03 
GeneralRe: help me (PHP beginner) Pin
User 171649212-Aug-11 0:16
professionalUser 171649212-Aug-11 0:16 
GeneralRe: help me (PHP beginner) Pin
Ahmad Alweshahi12-Aug-11 3:01
Ahmad Alweshahi12-Aug-11 3:01 
GeneralRe: help me (PHP beginner) Pin
cjoki16-Aug-11 11:08
cjoki16-Aug-11 11:08 
Questionphp and mysql related firefox problem Pin
doitnow114711-Aug-11 0:46
doitnow114711-Aug-11 0:46 
AnswerRe: php and mysql related firefox problem Pin
Mohibur Rashid11-Aug-11 18:45
professionalMohibur Rashid11-Aug-11 18:45 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 19:21
doitnow114711-Aug-11 19:21 
i am posting my mysql query check it if you find any problem?
PHP
$sql_item=mysql_query("select * from add_out_stock where challan_no='$challan_no'");

while($rs=mysql_fetch_array($sql_item))
{

 $cata_name=$rs['catalogue_name'];


 $design_no=$rs['design_no'];


$qty=$rs['quantity'];



  $sql_stock=mysql_fetch_array(mysql_query("select * from  stock where catalogue_name='$cata_name' AND design_no ='$design_no'"));


   $tqty=$sql_stock['roll_no']-$qty;


 $qty= mysql_query("update stock set roll_no='$tqty' where catalogue_name='$cata_name' AND design_no ='$design_no'");



}


when i am using this code it executing $qty two times
GeneralRe: php and mysql related firefox problem Pin
Mohibur Rashid11-Aug-11 22:48
professionalMohibur Rashid11-Aug-11 22:48 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 23:18
doitnow114711-Aug-11 23:18 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 23:28
doitnow114711-Aug-11 23:28 
AnswerRe: php and mysql related firefox problem Pin
Peter_in_278011-Aug-11 23:39
professionalPeter_in_278011-Aug-11 23:39 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 23:44
doitnow114711-Aug-11 23:44 
GeneralRe: php and mysql related firefox problem Pin
Peter_in_278012-Aug-11 0:01
professionalPeter_in_278012-Aug-11 0:01 
GeneralRe: php and mysql related firefox problem Pin
doitnow114712-Aug-11 0:02
doitnow114712-Aug-11 0:02 
GeneralRe: php and mysql related firefox problem Pin
Mohibur Rashid12-Aug-11 0:12
professionalMohibur Rashid12-Aug-11 0:12 
GeneralRe: php and mysql related firefox problem Pin
doitnow114712-Aug-11 0:20
doitnow114712-Aug-11 0:20 
GeneralRe: php and mysql related firefox problem Pin
doitnow114712-Aug-11 2:09
doitnow114712-Aug-11 2:09 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 20:53
doitnow114711-Aug-11 20:53 
AnswerRe: php and mysql related firefox problem Pin
Peter_in_278011-Aug-11 18:58
professionalPeter_in_278011-Aug-11 18:58 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 19:23
doitnow114711-Aug-11 19:23 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 20:54
doitnow114711-Aug-11 20:54 
GeneralRe: php and mysql related firefox problem Pin
Mohibur Rashid12-Aug-11 19:58
professionalMohibur Rashid12-Aug-11 19:58 
GeneralRe: php and mysql related firefox problem Pin
doitnow114712-Aug-11 20:10
doitnow114712-Aug-11 20:10 
GeneralRe: php and mysql related firefox problem Pin
doitnow114712-Aug-11 21:42
doitnow114712-Aug-11 21:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.