WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : upload one or more files, and show thumbs and html code of images, i images were uploaded.
Categories : PHP, HTML and PHP Update Picture
Almando Menezes
Date : Apr 24th 2001
Grade : 3 of 5 (graded 1 times)
Viewed : 6190
File : upimagens.php
Images : No Images for this code example.
Search : More code by Almando Menezes
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?
include("bdlogin.php");
include("cab.inc.php");
if (!$nfile) $nfile++;
//echo "elementos do array:'".sizeof($img)."'";
for ($i = sizeof($img)-1;$i >= 0;$i--)
{
        if ($img[$i] != '' and $img[$i] != 'none' and $img_size[$i] < 124000)
        copy($img[$i], "/home/httpd/htdocs/img/".$img_name[$i]);
}
?>
<br>
<table align="center" border="1" cellspacing="0">
<tr>
        <td bgcolor="#000080" colspan="2" align="center"><font color="#FFFFFF"><b>
                Upload de Imagens</font>
        </td>
</tr>
<form method="post" name="nimagens">
<tr>
        <td bgcolor="#c0c0c0" align="left"><font color="#000000"><b>
         Nmero de Imagens: <input type="Text" name="nfile" size="3" maxlength="3"
value="<? echo $nfile; ?>">
                                 <input type="Submit" name="nimagens"
value="OK">
        </td>
</tr>
</form>
<form method="post" enctype="multipart/form-data" name="upimagens">
<?
while ($nfile--)
{
?>
<tr bgcolor="#c0c0c0">
        <td>
                <input type="File" width="90" name="img[]">
                
        </td>
</tr>
<?
}
?>
<tr bgcolor="#c0c0c0">
        <td>
                <input type="submit" name="Enviar" value="Enviar">
        </td>
</tr>
</form>
</table>
<?
if (!$img)
{
        include("rod.inc.php");
        exit;
}
?>
<br>
<table align="center" border="1" cellspacing="0">
<tr>
        <td bgcolor="#000080" colspan="" align="center"><font color="#FFFFFF"><b>
                IMAGENS</font>
        </td>
        <td bgcolor="#000080" colspan="" align="center"><font color="#FFFFFF"><b>
                HTML</font>
        </td>
</tr>
<?
for ($i = sizeof($img)-1;$i >= 0;$i--)
{
        
        if (($img[$i] != '') and ($img[$i] != 'none') and ($img_size[$i] < 124000))
        {
?>
<tr bgcolor="#c0c0c0">
<td>
        <?
         $tipo = split("/",$img_type[$i]);
         if ($tipo[1] == "pjpeg" || $tipo[1] == "gif")
         {
        ?>
                <IMG border="0" <? if ($img_size[$i] > 50000);
                                        echo "width=\"300\" height=\"300\"";
                                        ?> SRC="http://www.fesurv.br/img/<? echo
$img_name[$i]; ?>">
<? }
         else
         {
                echo "Arquivo do Tipo:".$img_type[$i];
         }
?>
</td>
<td><font face="Verdana" color="#FFFFFF"><b>
<? if ($tipo[1] == "pjpeg" || $tipo[1] == "gif")
         {?>
         <IMG SRC="http://www.yoursite.com/img/<? echo $img_name[$i]; ?
>" border="0">
         <?
         }
         else
         {
                ?>
                <a href="http://www.yoursite.com">Texto</a>
</td>
</tr>
<?
         }
        }
}
include ("rod.inc.php");
?>



PHP3: Formmail. Just a cgi formmail, but than in PHP. It is easy to use!
Categories : HTML and PHP, Email, PHP, Perl, HTML and PHP
A script to generate a report from a valid mysql connection. The user has to supply which fields he wants to display in table. All properties are changable.
Categories : PHP, PHP Classes, Databases, MySQL, HTML and PHP
Simple PHP control CSS Calendar
Categories : PHP, HTML and PHP, Calendar, Date Time, CSS
Automatically printing the contents of an sql table in MySQL.
Categories : MySQL, PHP, HTML and PHP, Databases
PHP template processing
Categories : PHP, Templates, HTML and PHP
Local-to-user date and time display regardless of time zone or where the website's server is located
Categories : PHP, Date Time, HTML and PHP, Java Script
Reduce PHP/HTML File Sizes
Categories : PHP, Compression, HTML and PHP, Zlib
Barcodes On The Fly With GD
Categories : Ecommerce, Graphics, HTML and PHP, PHP
PhpView 0.1 - simple php viewer, using temporary files and frames.
Categories : PHP, PHP Options and Info, Debugging, HTML and PHP
Browser Detection, Redirection Type, MSIE, MOZILLA, Netscape Navigator, NS, $HTTP_USER_AGENT, HTTP_USER_AGENT
Categories : PHP, HTTP, Browsers, HTML and PHP
Parsing html tags with php. Get an array from this function
Categories : PHP, HTML and PHP, Arrays, Tag Extractors
A very simple way to build and do a hierarchical html categories browser without javascript , just using html php and mySql
Categories : HTML and PHP, Databases, Algorithms, PHP, MySQL
How can i Preload a 'SELECT MULTIPLE'?
Categories : HTML and PHP, PHP, MySQL, Databases
Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
Simple PHP Form Field Generator
Categories : PHP, Beginner Guides, Form Processing, HTML and PHP