File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch12_Projects/card_include.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch12_Projects/card_include.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch12_Projects/card_include.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 2 months ago
Size: 410 bytes
 

Contents

Class file image Download
<?php
$connection
= @mysql_connect("localhost","dbuser","dbpass") or die(mysql_error());
$db = @mysql_select_db("wcphp", $connection) or die(mysql_error());

function
display_card($card) {
    print
'<div style="height: ' . $card["height"] . ';' .
            
' width: ' . $card["width"] . ';' .
            
' border: 1px solid; ' .
            
' text-align: center;">';
    print
$card["content"];
    print
'</div>';
}
?>

For more information send a message to info at phpclasses dot org.