note 75090 deleted from function.mysql-result by philip
| From: | philip@php.net | Date: | Fri, 04 Sep 2015 22:02:54 +0000 |
| Subject: | note 75090 deleted from function.mysql-result by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203696@lists.php.net to get a copy of this message | ||
Note Submitter: djurredenboer at hotmail dot com
----
<?
$link = mysql_connect("host", "user", "passw");
mysql_select_db("database", $link);
$number = 3;
$insert = mysql_query("SELECT
test1.*, test2.*,
FROM test1, test2, `
WHERE ((test1.author = test2.ID) AND
(test2.ID ='$number'))
ORDER BY toetsen.autoID DESC",$link);
echo mysql_result( $insert , 0, 'test1.question') ;
#here he echoes the questions the stuff out of the first table
echo mysql_result( $insert , 0, 'test2.name') ;
#here he echoes the questions the stuff out of the second table
?>