<cpptutor2000@xxxxxxxxx> schrieb im Newsbeitrag
Could some PHP guru please help me? I am trying to create menus whose
content will be extracted dynamically from a database table. What I am
not sure about is how the information that is extracted from the
database is to be sent to the menu.php file, if I am trying to use a
include ... from inside another php file. Are there any simple
examples anywhere? Any hints or suggestions would be of great help.
Thanks in advance for your help.


if you are already using some menu.php file, than just get DB data from this
file directly (you don't need to forward it or something).

it could be something like this (for example you have some table menu with
following columns: menu_id, description, menu_order):

$sql = "SELECT menu_id, description FROM menu ORDER BY menu_order";
$result = mysql_query($sql);

while ($row = mysql_fetch_row($result)) {
print "<td>$row[1]</td>";


it is not complete, but it is quite simple..



Relevant Pages

  • Re: Export to Excel file
    ... "Alan" schrieb im Newsbeitrag ... > I will extract data from database and want to export fields of records ... > Excel format file. ...
  • Re: Excel 2000 - How to create an auto search
    ... "echo7" schrieb im Newsbeitrag ... > I wanted to create an automatic seacrh in MS Excel or MS Access. ... > for the unit price of orange in a database. ...
  • Re: Delete WSS Database
    ... "Costas" schrieb im Newsbeitrag ... I installed WSS 3.0 with the included Database. ... After some test I deleted two SharePoint Webs but forgot to ativate the "delete content database" control. ...
  • Re: Get Caption from all Components in a Form
    ... "" schrieb im Newsbeitrag ... > value found in a database. ... compoent class is tlabel ...
  • Re: WHY
    ... I know at least the Eurex and Xetra trading systems and they're NOT database ... schrieb im Newsbeitrag ... > Frank Kabel" wrote in message ...