[PHP-DB] $vars to JS in a linked js page.

2001-03-29 Thread John Starkey
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"

Re: [PHP-DB] $vars to JS in a linked js page.

2001-03-29 Thread Phil Jackson
I think your only choices are to put this value into either a database or if you are using php4 - to use a session varible - or use a cookie if you are trying to persist this value across multiple pages for multiple users...or pass as a querystring to the next page.. or as a hidden form variable

Re: [PHP-DB] $vars to JS in a linked js page.

2001-03-29 Thread Russ Michell
Not too sure if this is what you want, if not - I'm sorry: $some_number = $mysql_num_rows() sizeof() This counts the number of elements in an array..(Just wipped that outta the open page in "PHP Fast and Easy"!) Russ #---#