Dyamic Table Display For Picture Presentation
I am trying to practice good web coding technique and stay away from the dread iframes. (Just like the bogey monster under your bed when you were 5, but hidden in cyberspace =/ ) So here is an overview of what i am trying to do. Values are sent to the Picture Window using a function.
Corresponding values trigger images to show up in the Picture Window dynamically. When the user clicks on pic3 the value is sent to the Picture window; this displays a larger image of "pic 3" is shown in the Picture Window. The variable passed corresponds to the images the user clicked on. For example the user click on pic3 a value of pic3-large.jpg is sent to the getPicture function which displays a larger image in that window.
General layout of the function is written below. The question that I have is how can I capture the user clicks to send a value to the function getPicture($image)? My next question is how can I get pic3-large.jpg to show up in the pic3 table, while keeping all other parts static? The table id for the picture viewer is picture_view. I could use an iframe but I rather do this in PHP. Since the support for iframes is rather buggy; and really isn’t a cross browser solution. Here is a picture to better explain what im trying to do and below it is some code:
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
If No Picture Available - Display Something
I'm building a product catalog but some items do not have pictures (none available). So instead of having the ugly broken picture symbol in IE and Nutscrape I wanted to have a generic image that says "No picture Available".
Using The Same Page To Display A Hundred Pictures One Picture At A Time
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I created an array already, and whereby, the HTML and Javascript currently used amount to about 14KB for each of four different pages, the PHP page I started working on is already over 35KB in size (most of it is server side processing creating the array of pictures). What I'd like to do, is load the array only one time, and keep that loaded so the page doesn't recreate the array each time, thus minimizing the server side array creation. Also, I think I'm running into some problems whereby the javascript is messing up Google's parsing of the page. I don't see creating 100 different html pages as an answer, in the respect if something ever changes, that's one big mess to update and major portion of the content and alot of files. Am I wrong in trying to avoid doing it via strictly HTML pages? The pages exist at, and they represent swimming pools designed by the owner of Aquatic Creations (North Carolina In-Ground Swimming Pool Designers): Custom Swimming Pool Water Features http://aquaticcreationsnc.com/lib/php/viewing0.php Custom Designed Swimming Pools http://aquaticcreationsnc.com/lib/php/viewing1.php Custom Designed Spas http://aquaticcreationsnc.com/lib/php/viewing2.php Custom Swimming Pool Features http://aquaticcreationsnc.com/lib/php/viewing3.php Stone And Tile Around Swimming Pools http://aquaticcreationsnc.com/lib/php/viewing4.php Does anyone have any suggestions on how to accomplish such or directions to pursue? If you could take a look as well and provide comments on the pages, I appreciate constructive criticism as well.
Display/resize Thumbnail From Picture In Web File System
i have 20 pictures (let's say they are each at a resolution of 1024x768) on a template page in one of my webfolders. i want each picture to be displayed as a thumbnail on the page except for 1 picture - that will be displayed in a size of 250x 250 pixels. each thumbnail is 60 x 60 pixels. PHP Code:
ASP.NET & PHP - Php Xml Table Display
I hope that there is someone fluent in both php and asp.net who can help me bridge a gap. In asp.net it is fairly easy to take a simple xml file and display it as a table [or datagrid], using something like: void Page_Load() { String xmlFilename = @"C:...example.xml"; DataSet newDataSet = new DataSet(); newDataSet.ReadXml(xmlFilename); DataGrid1.DataSource = newDataSet; DataGrid1.DataBind(); } followed by: <asp:DataGrid id="DataGrid1" runat="server"></asp:DataGrid> I would like to know how to do this in php.
Presentation Graphics W/PHP
I'm interested in producing presentation style graphics using PHP. Things like pie charts, bar graphs, etc. I have a couple of PHP books, but they only address basic drawing primitives.
PHP & Table Display Problems
Simple PHP script which selects data from a DB and outputs the data into a nice simple html table formatted using css classes. Now the odd bit.. Works fine on my machine everytime but on others the HTML formatting goes to pot on the odd line, like the font is too big, or the background color has gone, or a cell is missing which puls the remaining cells one in from the right misaligning the table. Now the even odder bit... When you view source on the bad page, the HTML is absolutely perfect. Any ideas?
Separating Logic And Presentation
I hear about the statement "Separating Logic and Presentation" a lot, but I'm not really sure what it means. Does it just mean to have all your HTML in separate functions so that when you make code it's 100% PHP in one file and another files is just a whole lot of functions filled with HTML? PHP Code:
Format/layout And Presentation
I am working on a site which is totally static based on HTML/JsScript done on Dreamweaver. I am trying to develop a CMS to attach to this existing site, in a way all the updates are done through the interface I am working on. The question is weather it is possible to keep the existing structure (format) of the page and replace the html tags with Php tags where needed. Since the structure of the page (the placements of the contents, photos etc) is intended not change except the data in the page. This is what I thought of doing to put all the necessary Php scripts (Db connection, Db Select etc. ) at the top of the html tags and insert the results in variables in the body e.g. ; <?php <img alt="" border=0 '.$size[3].'src="folder/'.$row['picture'].'"> ?>. Is this the right way of doing it or are there any other methods.
Multimedia Presentation Of Web Programming
I am teaching Web programming to students many of which are not very techinically interested (but this is still a part of their curriculum) I am looking for some multimedia based presentation that can help me convey some ideas / topics. One example of such a topic would be the role of the web-server in presenting server based dynamic web pages. This may seem quite abstract to some, and somebody out there must have had the need (and the resources) to produce an animation / web based film or some other facility to explain it. (e.g. some bubbles moving from the browser over the network, entering the server...).
AJAX To Display New Records In A Table
Instead of refreshing the entire page to show the new fields in a table, I was wondering if it would be possible to use AJAX to display the new records in a table. For example: Messages are entered into the DB. I use PHP to create a table that displays the messages. Instead of refreshing the entire page to show the table with new messages, how can I use AJAX to show the new messages in the table without refreshing the entire page?
Display Content From A MySQL Table
I have copied a script out of a book and then modified it to fit my needs. But I keep getting a parse error and don't know how to fix it. I am trying to take content from a MySQL table and order it by the name. Here is the script I have: Code:
Display Query Results In A Table
$sql = "SELECT name FROM employee_tb; $result_query = @mysql_query ($sql);// run the query while ($row = mysql_fetch_array($result_query,MYSQL_NUM)){ $name = $row[0];} // assuming i have 8 results how can i display the results from this query in a table with 3 rows each column?
Display Of Mysql Table Result...
I have a mysql table of articles with fields: - recordID - department - articleTitle - articleText Using PHP, I'm attempting to get the results of the table to display as follows: Department 1 - articleTitle 1 - articleTitle 2 - etc.... Department 2 - articleTitle 1 - articleTitle 2 - etc.. I figure I should use a while loop but can't figure out how to exit/reset the loop when a new 'department' is encountered in the $result.
How To Display Random Data Table Row
I would like to be able to display a random database row in an ad system I am thinking about developing. Here is MySQL code that I create: <?php mysql_connect("localhost","username","password"); mysql_select_db("databaseName"); mysql_query("SELECT * FROM dateTableName ORDER BY RAND() LIMIT 1");?> Is this correct and what would be my next step to make a single random row display. I am sure I would use echo or print the database variables in some fashion. I the past I have been using the mysql_fetch_array method, but I am not quit sure how to do this now.
Display Results Of Survey In A Table.
Is it possible to have them fill in a survey with about 10 form fields, then display the results of everyone's survey in a table that can be sorted by different criteria so new users to the site can instantly see which one of our services is better for them.
What Is The Best Way To Display Specific Info From A Table?
I am hosting a youth sport site and I want to display schedules by select teams. I thought that I would want a drop down menu to select one of our 35 divisions, then a secondary search by team of that previously selected division menu. My schedule is in a table with the fields: * division * date * time * home_team * h_score * visiting_team * v_score * field I see problems, since secondary drop down menu would have to search two different fields. Any suggestions and hint to where I would even start?
Dynamic Image/link Presentation
I am now trying to convert the following html into dynamic php to generate 9 images per page. How can I go about this by reading the images and associated links from a mysql database, using a previous/next link at the bottom. Are there any good articles around on this: Code:
Getting Results To Display In Two Columns Of A HTML Table
How can i get the following script to display in two columns of a HTML table? At the moment i have it displaying in one column. If there are 5 results from the DB then the left HTML table column will display the 1st, 3rd and 5th result. The right HTML table column will display the 2nd and 4th results. Code:
Display Sql Query Output In Html Table
As evident from a previous post, I am a php noob. I would like to display MySQL query results in an html table with one of the row values as a category and the rest of the data displayed under the relevant category. I can get as far as displaying the data in a nice readable format but I don't know how to have the records placed under their corresponding category. This is my code thus far (sans the html output): ....ORDER BY cat ASC' while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { printf("%s Class: %s Description: %s", $row["cat"]$row["title"], $row["desc"]); }
PHP Function To Display A Database / Table Structure?
My webhosts cpanel is down for maintenence, including phpMyAdmin, and I need to view my database structure... Is there any function in PHP to display the database structure (like the "Export" function in PHPMyAdmin)?
Display Items From A Mysql Database In A Table
I am trying to display items from a mysql database in a table but I need it to start a new table row each time multiples of 3 rows of the database table have been displayed like the following example: item 1 item 2 item3 item 4 item 5 item 6 Does anybody know how I can make this work using php.
Table Display Grouped By Specific Field
I operate a youth sports website and i display my current alignments in a long running list of teams (one field within my table) with association divisions (another field within table). I would like to group them by divisions, like a two column table for better clarification.
Display Table Content With Double Search???
I would like to display schedules by team. The best option I can think of to do so is to have two drop down menus. First menu to select division, then search for specific team in the second menu. Where do I start of this? I have the schedule in a table with fields being: Code:
Display Values Of The Form Inside The Table On The New Page
I am generating data from database and displaying it inside input text boxes (for users to make some changes). What I need to do is when user presses "submit" button display all of the results inside the table on the new opened page. How can I do it?
Creating Hyperlinks From Data Input To Be Display In Table
Ive used search functions and have found relevent thread but the coding does not match. I have a php page the displays records from a form. id name, address, phone, website etc I would like to make the website data to turn into a hyperlink once submitted. Here is my following php code that displays the table Code:
Display Database Output In Mutli Column Html Table
I am building an HTML form using data from a mysql query. The data to be displayed on the form is 1 column from the db - but multiple rows. Because there are many rows (well, only about 100+) in the table I want to be able to put 2 or 3 (space permitting) rows from the result on each row of the HTML table with a checkbox beside each entry from the db table. The idea is that the user will scroll down the list and check up to 4 or 5 boxes before submitting the form and I didn't want them to have to scroll ALLLL the way to the bottom (100+ rows). I understand how to get data from a db table and put it into an html table, but I cannot figur out how to put more than 1 row from the result on to the same row of the html table. I hope I haven't confused anyone reading this -- If I am way off base with what I am trying to do please give me alternatives. I am trying to avoid paginating the data for a couple reasons a) clicking a next and/or prev button is more hassle than just scolling down a list and b) the data in the column being displayed is only about 35 - 40 characters and it seems to be if i only placed one result row on each html table row, there would be a lot of wasted space.
GD To Take Picture>?
Hey say i'm running a script x.com/getpic.php is it possible through GD -or- some other script to take a picture of x.com/home.html bascially want I want is a picture of what the html page looks like, weather thats taking a picture of it, or "rendering" the html on the fly in the script then outputting a picture? I don't know. If anyone could offer up some advice, and if it could be done that would be awesome.
Picture
Anyone can help or point me in the right direction on how to use variable in url, to make all images on that page whatever the ratio would be, like for instance 3:1 or 2:1 or whatever, i hope i explained that good enough
Cut Out Picture
My problem is the following. I am trying to write a function that will cut out a fixed-size piece from the CENTER of an uploaded picture. However, my function seems to always cut out a piece from the bottom right corner of the image (filling the difference with black), although the image itself is rather large and the coordinates are given. Code:
Printing A Picture
I have some if statement where I want have a picture show instead of echoing text. The picture will be saved in another area so just doing the regular "picture.gif" will not work I will need to do the entire address.
Website Picture From PHP
does anyone of you know a save method on PHP to relyably, maybe using other programs create scrennshots (thumbnails) of websites? I am the administrator of the open source project (at SourceForge) "TSEP - The Search Engine Project" (http://tsep.sf.net) and we might want to show pictures of the website our search engine has found. The generation process of the thumbnails should be pretty automatic (as much as possible) My tries to find an "optimal" solution did not bring any good results yet, so I am hopeing for better information here.
Picture Gallery
I don't know if my question is out of topic...so I apologize if I am. I use the coppermine picture gallery for my web (actually I want to use it but the server doesn't seem to have GD running but I will beg them to activate it). How can I actually find out if GD is installed? I tried to use phpinfo() and I searched for a GD entry, but no one was there, so can I be sure, that GD isn't installed? (Because the admins of the webhosting told me that it IS installed.) But the actual question is: I've got an old web gallery with descriptions of the pictures. I'd now like to transform this into the new gallery - I don't mind uploading the pictures again, but I am really horrified by the idea of entering all that description text again for all those pictures. So I was asking myself, if it was possible to take the descriptions somehow out of all those html-files and insert them automatically as comments (the coppermine gallery is able to receive comments to the pictures) to the coppermine picture gallery. Do you know if there's a way to do this or is it just impossible? The text could, instead of as a comment, also just be added as text below the picture (I'd even prefer this solution). The original html-files are just very simple (some thumbnails, then the picture, below the text...).
Work With BIG Picture
i have a script where you simply upload a picture and with $image = imagecreatefromjpeg create an object to be able to work with it. If i upload small picture ( less then 2M )it work fine and i'm able to resize crop end save but with bigger picture php generate and error of memory_limit on the line where is "$image = imagecreatefromjpeg($_FILES['imgfile']['tmp_name']);" my php.ini memory_limit is set to 40M; i have to be able to upload jpg on hight resolution up to 5-6 Mb
PDF To Create A Picture
Hey is there a way to create a picture of a PDF? Such as a user uploads a PDF. Then I want to display the first page to the PDF as an image. How would I do that without creating an image with photoshop or such like program?
Watermark On Picture
I currently have this code which works and adds text on top of the pictures when they are generated. However it is hard to read and the color is not the same on all of them. How could I make a small black box to go behind the text? PHP Code:
How To Know If A Picture Exists Or Not
im trying to get custom pictures on my website based on how the user was directed there. i.e. if he clicked a link that says www.mysite.com/index.php?key=Gears%20Of%20War i use key to find "Gears of War.jpg" and display it on the page. Alot of the links that visitors may click will not have a picture designated for them, so i want a default picture to show when "Gears of War.jpg" does not exist. im assuming i need an if statement of some sort. How exactly would i go about doing this?
How To Blur A Picture On The Fly???
I have an adult website. That means that some of the pictures should only be visible before login. But I would like to show a blurred picture. Is it possible to generate a blurred picture?
Upload Picture
I cannot upload pic!!!! It was ok on php4 when I used phptriad. but I am now using php5 with apache mysql5...and the same code doesn't work.
Picture Gallery
I am looking for the code that will allow me to create large picture galleries where if the thumbnail is clicked it will open on the site on a page by itself. Since I have thousands of pictures it would really be a pain to have to create thousands of pages and then put the picture on each one with html. Is there a way to do this with PHP?
Get Picture From My Email
I wrote a code that connect to my mail box in gmail and draw specific picture from specific message with the function imap_fetchbody. After I did this, how can i show this picture(without save it)? this is my code: ....
Show Latest Picture
I'm trying to show the latest picture uploaded, similar to a picture of the day, but not I'm going to name picture files 001.gif 002.gif 003.gif etc, but what I want to do is get a list of the pictures in a directory and show the one with the highest number.
Sort By Date Picture Taken
I am displaying a bunch of pictures on my website and I would like to sort them by a Date Picture Taken key. I have looked into exif data and I wrote a little code that just prints all the keys and their contents. Code: $file = "MyPicture.jpg"; $exif = read_exif_data ("$file"); while(list($k,$v)=each($exif)) { echo "$k: $v<br> "; } For date picture taken, All I get is: FileName: MyPicture.jpg FileDateTime: 1180959961 .... ExifVersion: 1220 DateTimeOriginal: DateTimeDigitized: CompressedBitsPerPixel: 892484151/3289658 .... nothing as you can see. Here is the info from phpinfo about my exif setup: exif EXIF Support enabled EXIF Version 1.4 $Id: exif.c,v 1.173.2.5 2006/04/10 18:23:24 helly Exp $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF When I download the jpg, I can view/sort by the date picture taken using Windows Explorer. Does anyone know why I am not seeing the DateTimeOriginal information? If anyone knows a better way to sort by Date Picture Taken On, I'd love to hear it. Windows can do it so it must be in there somewhere.
View The Picture Before Save
when i upload the picture.. is there a way we can let the user to view the picture which they just browsed before they upload>?? e.g. user need to upload 3 pictures... so when user browsed the picture... usually what we get is just the path name...instead.. i wan to view the picture and the path... but these picture are not yet upload to the folder.
Php/gd : Can Not Create Dynamic Picture,
I am trying to draw curve with data stored into an array. I am working with linux mandrake 8.1. I succeed to create a png picture with a grid, and the two axes the problem is, I can not input and create curves from data calculated from previous calculation from a php script. I obten no compilation message error, sometime a blank page without the picture when I try to call data stored into an array a call to a mysql data can you provide me a little script to do dynamic pictures from an array on the internet example jpgraph they inpout a static array but not dynamic data.
Download A Picture By URL. What's The Best Method?
I want to enable visitor to upload picture to my server, or simply provide an URL of that picture. Upload is easy and how to program with "Download by URL"? For example, a visitor provides "http://www.webmasterworld.com/ax/dlogo.png", how can I download this file to my server via PHP and handle all errors?
|