Digital Point Forums
iKobo

Go Back   Digital Point Forums > Design & Development > Programming > PHP
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Feb 29th 2008, 2:18 am
balasun balasun is offline
Peon
 
Join Date: Jan 2008
Posts: 29
balasun is on a distinguished road
Need help in this work

Hello!

I want to concatenate JavaScript variable 'num' with '$name' with PHP. But it does not works.

My code is as follows:
Code:
<script type="text/javascript">
var seqslides=new Array()
var num;
for(num=0;num<=<?php echo $count; ?>;num++)
{
seqslides[num]=["<?php echo $name['+num+']; ?>" ,"http://www.dynamicdrive.com"]
}
</script>
Help me to do this. Pls!
Reply With Quote
  #2  
Old Feb 29th 2008, 2:39 am
tamen tamen is offline
Champion of the Naaru
 
Join Date: Sep 2007
Posts: 182
tamen is on a distinguished road
Try this:

Code:
<script type="text/javascript">
var seqslides=new Array()
var num;
for(num=0;num<=<?php echo $count; ?>;num++)
{
seqslides[num]=["<?php echo $name; ?>+num" ,"http://www.dynamicdrive.com"]
}
</script>
__________________
Vintage Domain Names: $5 per finely aged domainname with pagerank.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[PORTFOLIO WORK] Cheap PHP, MySql, XHTML and CSS work available. ACiD394 Programming 0 Feb 3rd 2008 11:52 am
Need Some manual work to be done super quickly. 2-3 Hours copy paste work. aditya_sfs Services 13 Oct 5th 2007 11:52 pm
Needs RSS feeds work bonus if work done early and needs continious work mansec PHP 1 Jun 15th 2007 4:12 am
PAID WORK - Required For - Regular Flash Work & Edits briancollins Graphics & Multimedia 0 Mar 1st 2007 4:19 pm
Web study work required, approx 100 hours of work. patrickberry Services 8 Nov 15th 2006 7:39 am


All times are GMT -8. The time now is 6:52 pm.