473,385 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

remove scroll and resizing php embeded

Remove scroll and resizing php embeded
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.   <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <link rel="stylesheet" href="style.css" type="text/css" />
  6.     <title>Gallery Testing</title>
  7.     <style type="text/css">
  8.         overflow-x:hidden;
  9.     </style>
  10.   </head>
  11. <body>
  12.   <div id="wrap">
  13.  
  14.   <div id="gallery">
  15.   <?php
  16.     echo "<ul";
  17.     $filearray = array(); 
  18.     if ($fil = opendir("php00/")) {
  19.       while (($file = readdir($fil)) !== false) {
  20.         if ($file != "." && $file != "..") 
  21.         { 
  22.           $filearray[] = $file;
  23.           $page = empty($_GET['page']) ? 1 : $_GET['page'];
  24.           $num_per_page = 3;
  25.           $total_pages = ceil(count($filearray)/$num_per_page);
  26.         }
  27.       }
  28.  
  29.       for($i = ($page - 1) * $num_per_page; $i < $page * $num_per_page; $i++) 
  30.       {?>
  31.           ><li><a href="img/<?php echo $filearray[$i]; ?>">
  32.           <embed src="php00/<?php echo $filearray[$i];  ?>"  alt="<?php echo $filearray[$i]; ?>" />
  33.       </a></li
  34. <?php }
  35.  
  36. closedir($fil);
  37. echo "></ul>";
  38. $pages = array();
  39. for($i = 1; $i <= $total_pages; $i++) {
  40.   $pages[] = "<a href=\"".$_SERVER['PHP_SELF']."?page=".$i."\">".$i."</a>";
  41. }
  42. echo "Page: ".implode(" ", $pages);
  43. }
  44.  
  45.  
  46. ?>
  47. <br />
  48. </div>
  49. </div>
  50. </body>
  51. </html>
Jun 17 '12 #1
1 1151
Frinavale
9,735 Expert Mod 8TB
On line 33 in the above posted code you are missing a ">".

I'm not sure what the problem is though.

-Frinny
Jun 18 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: z | last post by:
Hi, i just wanted to know how i can resize a table using javascript but in this special manner: I have two tables, one at the top of the page and the other below that one. The problem is that in...
3
by: Joe | last post by:
Hi, is there way to have a scroll box that works in NN/FF? I am using a div with overflow and its great in IE but not in anything else. Is there a way? Thanks - Joe
7
by: John Ortt | last post by:
Hi there, I am trying to do a two level embeded query but it is causing Dr Watson errors. The line which is causing the problem is: CFCDeci: (Select sum (FlexChangeDeci) FROM as WHERE (....
0
by: Eric | last post by:
I have a TableLayout that I'm having problems with. I am placing controls in it that have scroll bars. When I put enough of them on the control to make the TableLayout's scroll bars appear the...
0
by: Rachel | last post by:
I am developing an application for Windows Mobile devices using C#. I have a form that has several controls (labels and textboxes that are dynamically created on opening the form) and a vertical...
4
by: invy | last post by:
Hi, I'm experiencing a problem while declaring scroll cursor. I'm using Embeded SQL with C. my code is given below. #ifdef SQLSRVR_RDBMS EXEC SQL DECLARE CUR_DWNLD SCROLL CURSOR FOR SCURS;...
1
by: prashweenet | last post by:
Hi I cannot remove the scrollbars in my application using scrollbars=no My browser is IE 6.0.2900 sp2 help much appricated Code snippet is below var sreturnval =...
3
by: pksa | last post by:
Hi, I am resizing my frame height according to the window content length but some time the scroll bar is missing, this is happening randomly, any help is greatly appreciated. Thanks in advance
3
by: PrabodhanP | last post by:
I have CSS based mouseover scrolling for divContent embeded in my webpage.It works fine in IE,but not working in mozilla-FF. It is located at the location.....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.