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 : Using select multiple with php3
Categories : HTML and PHP, PHP
Boaz Yahav
Date : Apr 25th 1998
Grade : 2 of 5 (graded 3 times)
Viewed : 8002
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Boaz Yahav
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?
function DisplayThreads()
{
$result=mysql_query("select min(datestamp),topic,thread from forum group
by thread order by topic") or die ("Can't Preform query
1");
echo"<SELECT NAME=\"threads[]\" SIZE=\"8\" MULTIPLE>\n";
while( $row = mysql_fetch_object($result))
echo"<OPTION VALUE=\"$row->thread\">$row->topic($row->thread)\n";
echo"</SELECT>\n";
}

Function SetHeader()
{
echo"
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">
<HTML><HEAD>
<TITLE>WebThreads powered by PHP3</TITLE>
<STYLE>
A {text-decoration: none;}
INPUT {font-family: Geneva, Verdana, Helvetica, Arial;font-
size: 10pt;}
TEXTAREA {font-family: Geneva, Verdana, Helvetica, Arial;font-
size: 10pt;width: 400px;}
</STYLE>
</HEAD>
<BODY BACKGROUND=\"../images/bumps2.jpg\" link=\"#0000FF\" vlink=
\"#000080\" bgcolor=\"#D1C7B8\" text=\"#000000\" alink=\"#FF0000\">
";
}


switch($command)
{
case 1 : SetHeader();
echo "<BR><BR><BR><FORM NAME=\"Myform\" ACTION=
\"admin.run\"><CENTER>";
echo"<H2>Choose a thread to delete</H2>";
DisplayThreads();
echo "<INPUT TYPE=\"hidden\" NAME=\"command\" VALUE=\"2\">
<INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Delete Thread(s)
\">
</CENTER>
</FORM>";
break;

case 2 : SetHeader();
$ThreadNum=count($threads);
for($i=0 ; $i < $ThreadNum ; $i++)
echo"Deleting thread number $threads[$i]<BR>\n";
}




?>



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
Complete, simple working example of login screen and check on a unique page using php functions, cookies and mysql database.
Categories : PHP, Cookies, MySQL, HTML and PHP, Authentication
PHP Tester - Lets you test php code from a browser (modification).
Categories : PHP, HTML and PHP, Testing
Dynamic form field
Categories : PHP, HTML and PHP, Form Processing
PHPixel - output of 1 pixel transparent/colored gif for counters etc.
Categories : PHP, Graphics, HTML and PHP
PHP MultiList Mailing List Manager
Categories : Email, HTML and PHP, PHP
How to use regular expressions to get the list of links from an HTML page
Categories : PHP, Regexps, HTML, HTML and PHP
Produces browser-safe strings while preserving HTML tags.
Categories : Strings, HTTP, PHP, HTML and PHP
dynamic table columns
Categories : PHP, HTML and PHP, Arrays, Databases, MySQL
Simple PHP/3 Access Counter (using GD and DBM functions)
Categories : Databases, PHP, Graphics, HTML and PHP, dBase
Pull Down Surfing - Surf on Change
Categories : Java Script, MySQL, HTML and PHP, PHP, Databases
CSS style switcher
Categories : PHP, CSS, HTML and PHP, Arrays, Sessions
This script allows people to add their favorite quotes to your website. This could easily be modified to be a guestbook script or comment page script.
Categories : PHP, Complete Programs, HTML and PHP, Misc
phpEasyMail: An easy way to send data from HTML-forms via EMail.
Categories : Email, HTML and PHP, Complete Programs, PHP
Amazon book cover handling
Categories : HTML and PHP, PHP, MySQL, Ecommerce