Jump to content

Jonas_R

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by Jonas_R

  1. Hi, Thanks for the help :) It was, what i was looking for. Now everything works as it is supposed to. Thx very much. /Jonas R.
  2. Hi, Iam a bit unsure where to put this topic, if it wrong i hope the admin's will move it. My problem is that i want to use a javascript inside a php code, and i cant seem to get it to work. Well it looks like this: Iam pretty sure my problem is, that i cant seem to make the correct use of " " and ' ' . [code]<script language="JavaScript" src="mitjs.js"></script>  //here is a function called "na_open_window" </head> <body> <?php include('test3.php'); $query = mysql_query("SELECT id,path,parent_album FROM plogger_pictures WHERE parent_album = 3 ORDER BY id") or die(mysql_error()); if (mysql_num_rows($query) == 0) { echo 'No pictures!<br>'; } else { echo '<table width="800" border="0"><tr>'; echo'<td width="800">'; while($row = mysql_fetch_assoc($query)) {   $file =$row[id]."-".basename($row[path]);   $name = "Anne".$row[id];     //echo "<p>$file<p>";   echo "<a href='javascript:na_open_window('$name', 'ploggerb2.1/images/$row[path]', 0, 0, 0, 0, 0, 0, 0, 0, 0)' target='_self'><img src='ploggerb2.1/thumbs/$file' border='0'></a>";   echo "&nbsp"; }   echo'</td>';   echo'</tr>';   echo'</table>'; } ?>[/code] Best Regards Jonas Rohde
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.