Thread: Javascript array in PHP
Results 1 to 1 of 1
Related
-
Passing PHP array from one file to Javascript array in another file Forum: PHP Forum
Replies: 4 -
How to send an array to php? Forum: Javascript Forum
Replies: 0 -
Array to string Forum: PHP Forum
Replies: 3 -
Is it possible to stop a javascript function w/ other javascript code? Forum: Javascript Forum
Replies: 5
-
11-12-2009, 09:02 AM #1
Javascript array in PHP
I want to create a single javascript array to be used on the client side in PHP as shown in the code:
<?
while($row=mysql_fetch_array($result))
{
list($width, $height, $type, $attr) = getimagesize($row[photoPath]);
if(($width < 600) && ($height <= 900))
{
for ($i; $i<=1; $i++)
{
echo "show image";
}
echo "show image ";
//Value for javascript array row will come here
}
else
{
for ($i; $i<=1; $i++)
{
echo "show image";
}
echo "show image";
//Value for javascript array row will come here
}
}
?>
Any help will be appreciated
Thanks,
Srinivas
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum