Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Database Connection Chunk

DZone's Guide to

Database Connection Chunk

·
Free Resource

mysql_select_db($database_conname, $conname);

$query_name = "SELECT * FROM tablename ORDER BY column DESC LIMIT 0, 10";
$name = mysql_query($query_name, $conname) or die(mysql_error());
$row_name = mysql_fetch_assoc($conname);
$totalrows_name = mysql_num_rows($conname);
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}