$vars to JS in a linked js page.
| From: | John Starkey | Date: | Fri, 30 Mar 2001 06:00:18 +0000 |
| Subject: | $vars to JS in a linked js page. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-8022@lists.php.net to get a copy of this message | ||
I've got 2000 pages that are dependent on one include and I don't wanna
alter it too much and I'd like to use some JS in a linked file. I don't
wanna include it in and have it displayed.
Is there a way to do:
$some_number = $mysql_num_rows;
<link lanuguage="JavaScript" type="text/javascript"
src="external.js">
And use the $some_number variable in that external.js file?
I've tried several ideas, to no avail. Like: changing the .js to a .php
and echoing the value, etc.
Thanks,
John