Jul
9
awarded Student
Oct
11
awarded Notable Question
Jan
1
awarded Popular Question
Sep
5
comment Want to give a file name in include_once php but with the root address. How?
@Pekka is there any problem if I call javascript by this wayc/wamp/www/sms/js/ajax.js Because php files are working now but js is not working.
Sep
5
comment Want to give a file name in include_once php but with the root address. How?
@Pekka I am using windows vista, wamp server, file path is c/wamp/www/sms/add/comment.php in this file I am including ../inc/check.php
Sep
5
awarded Commentator
Sep
5
comment Want to give a file name in include_once php but with the root address. How?
Dear @Pekka, can you give me a small example or demo code to understand the implementation.
Sep
5
asked Want to give a file name in include_once php but with the root address. How?
Aug
27
comment pass associative array from php to javascript
If I dont use json_encode($arrayname) then it works perfectly. But when I pass the array it doesn't. And no error on console.
Aug
27
comment pass associative array from php to javascript
@Gordon I have Google enough. I asked this question because I am passing the array using a function and the function is not working.
Aug
27
comment pass associative array from php to javascript
function is not working. no output. I think this is because calling of the function is wrong. But I dont know what is wrong
Aug
27
comment pass associative array from php to javascript
code <script type="text/javascript"> function check_valid_range(product_field, quantity_field, inventory) { var product = document.getElementById(product_field).value; var quantity = document.getElementById(quantity_field).value; var v = inventory[product]; alert(v); } </script>
Aug
27
comment pass associative array from php to javascript
sorry I dont know how to post the code more clearly. New on Stackoverflow.
Aug
27
comment pass associative array from php to javascript
code<script type="text/javascript"> function check_valid_range(product_field, quantity_field, inventory) { var product = document.getElementById(product_field).value; var quantity = document.getElementById(quantity_field).value; var v = inventory[product]; alert(v); } </script> code <input type="text" style="width:70;" name="<?php echo $quantity;?>" id="<?php echo $quantity;?>" onkeyup="check_valid_range('<?php echo $itemName;?>','<?php echo $quantity;?>',<?php echo json_encode($product_inventory);?>);">
Aug
27
comment pass associative array from php to javascript
I am doing the same thing. json_encode function. But with a small difference, I am passing array of php to js by calling a function. And the function is not working. I just used alert() in the calling funcition to check if value is received. But nothing happened.
Aug
27
asked pass associative array from php to javascript
Aug
23
comment Mysql question, sum some field according to multiple employee id supplied in where clause
Thanks brother... really help full...
Aug
23
asked Mysql question, sum some field according to multiple employee id supplied in where clause
Aug
20
comment php variable $a contains variable $b in it update $b and $a should automatically update
actually I have a string variable which depends upon a number of other variables. So I want to update this variable if any of the other variables updates. Thanks for your valuable replies. I think I should go with function...
Aug
20
asked php variable $a contains variable $b in it update $b and $a should automatically update