MySQL Forums
Forum List  »  PHP

Re: How to call function in PHP
Posted by: Chis Florinel
Date: September 02, 2005 02:20AM

1. First 4 lines
<?php

//database connection here
//include_once 'connect.php';

mysql_connect($host, $username,$password);
mysql_select_db($dbName);


last lines:

<?php
//put your query here....
$sql = "SELECT * FROM tableName";

//instead of mysql_query($sql) you can call your sendsql function, or whatever....

$result = mysql_query($sql);
table2html($result);
?>
</body>
</html>


I can't be more specific than that, maybe first teach you some basic php (not an option - lack of time), than, we can discuss further....

Options: ReplyQuote


Subject
Written By
Posted
September 01, 2005 03:31AM
September 01, 2005 04:04AM
Re: How to call function in PHP
September 02, 2005 02:20AM
September 05, 2005 02:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.