Search found 4 matches
- Tue Feb 17, 2009 5:02 am
- Forum: PHP - Code
- Topic: How to show php results in JS?
- Replies: 8
- Views: 514
Re: How to show php results in JS?
Thank you very much! You solved my problem. 
- Mon Feb 16, 2009 9:27 am
- Forum: PHP - Code
- Topic: How to show php results in JS?
- Replies: 8
- Views: 514
Re: How to show php results in JS?
Thx sparrow. Now It's working. But!!! Now I get results on two places: 1st on the place where is PHP code, and 2nd in the JS I want to show results only in the JS, how to do it? -- If I have PHP code like this: <?PHP session_start(); require_once("includes/configuration.php"); //1 $sql...
- Sun Feb 15, 2009 2:41 am
- Forum: PHP - Code
- Topic: How to show php results in JS?
- Replies: 8
- Views: 514
Re: How to show php results in JS?
Thx sparrow but I didn't understand! I would like to show results of <?PHP include("includes/configuration.php"); $sql = 'SELECT COUNT(userid) FROM user'; $upit = mysql_query($sql) or die(); $r = mysql_fetch_array($upit); echo 'Total '.$r[0].' users'; ?> in this JavaScript place var fcon...
- Sat Feb 14, 2009 1:00 pm
- Forum: PHP - Code
- Topic: How to show php results in JS?
- Replies: 8
- Views: 514
How to show php results in JS?
Hello, Next php code shows how many reg. users I have: <?PHP include("includes/configuration.php"); $sql = 'SELECT COUNT(userid) FROM user'; $upit = mysql_query($sql) or die(); $r = mysql_fetch_array($upit); echo 'Total '.$r[0].' users'; ?> I would like to show results in Javascrip...