Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? foreach ($waiting_users as $waiting_user): ?>
- <? echo $waiting_user->user_id; ?>
- <? endforeach; ?>
- I need to define the user id in a javascript variable. What is the best way of doing something like this?
- <script type="text/javascript">
- var variable = "<? echo $waiting_user->user_id; ?>"; <-------------???
- </script>
Add Comment
Please, Sign In to add comment