[thelist] php

Todd ToddManaze at ev1.net
Tue Jun 19 20:03:02 CDT 2001


<?
$user = "Manaze";
$pass = "MyPSW";
$db =  "Manaze";
$link = mysql_connect( "localhost", $user, $pass );
if ( ! $link )
 die( "Couldnt Connect" );
mysql_select_db( $db, $link )
 or die( " couldnt open $db: " .mysql_error() );
$query = "INSERT INTO domains (domain, sex, mail )
 values( '123xyz.com', 'F', test at whatec.com' );
 mysql_query( $query, $link )
//I get a parse error here
 or die ( "Couldn't add data to table: ".mysql_error() );
 mysql_close( $link );
?>





----------------------------------------------------------------
Todd Manaze           
www.manaze.8m.com   
[Design | Hosting | Flash | Branding | Illustration]
www.brewermc.com
Web solutions for small business





More information about the thelist mailing list