Jump to content

Query for current database?


roopurt18

Recommended Posts

Hmm you should be a little more specific but i will asume a few things and give you an example:

<?php

mysql_connect("host", "username", "password");
mysql_select_db("database");

$query = mysql_query("select (fieldname) from (tablename)");

echo $query;

?>

Hope this answers your question.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.