note 3257 modified in Persistent database connections by ronabop

From: Date: Sat, 13 Jan 2001 08:17:37 +0000
Subject: note 3257 modified in Persistent database connections by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-9755@lists.php.net to get a copy of this message
$MySQLLink = mysql_pconnect("localhost", "myUser", "myPasssword"); $MySQLQuery = "SELECT * FROM mytable"; $MySQLResult = mysql_query($MySQLQuery, $MySQLLink); while($MyRow = mysql_fetch_row($MySQLResult) {print($MyRow)} It's just like using a normal connection, just use the according "pconnect" function Hope this'll help ya guys Chris http://www.php.net/manual/persistent-database-connections.php

« previous php.notes (#9755) next »