need to develop the multi site php page

Hello I designed a website in dreamweaver now I want to develop in php with mysql. I know how to develop a website page with admin panel, but I want to accomplish the following task,

as it's a mobile Web site for each mobile phone php page will have its own image, description and specification, so my question is how to create these pages in the admin panel, I want an option in the administration panel having this link create new mobile page and when we go to this new page must have space for a new image for mobile , description and specification of area text entry, and when I save it, it takes one single page other than other mobile pages, as nokia 1100 will have a page with the content of the nokia 1100 and nokia 2300 should have other content of the page of the nokia 2300. and must be built from a single option in admin which is create new mobile page with and our admin panel should have a pre created the page with the image, description, and speification, and when it is saved, it is as I said a different content of nokia 1100 and 2300 etc...

waiting for your response.

You would have a field in your database that is named

model_id

model_make

MODEL_NAME

model_description

Create a record for each product:

The "model_id" field must be the database identifier that is unique for each product - and referred to as the "key of primatry and auto-increment.

In the "model_make" field, you must insert do--Nokia, Samsung etc.

In the field "model_name" you should insert - Nokia 1100, Nokia 2300 etc.

In the "model_description" field, you must insert the product information

Page 1 (level 1), you could list the models manually as links or you could call from the 'model_make' of the database field. If you go him the automated way and call them from the database, would need you a mqsql like query:

$model_make = mysql_query ("SELECT DISTINCT model_make FROM mobile_phones") or die (mysql_error ());

where "mobile_phones" is the name of your database table.

If you plan to automate the links then use a repeat region do echo to mobel_make on page information:

Which would give you something like:

  • Nokia mobile - all models
  • Samsung mobile - all models
  • You can now move the "model_make" to a higher level of the page using the $_GET:

    $model_make = $_GET ['model_make'];

    Then query the database for the ' model_id, 'model_make' and "model_name" based on the "model_make":

    $model_make = mysql_query ("" SELECT model_id, model_make, TEMPLATE_NAME FROM mobile_phones WHERE model_make = ' $model_make ' "") or die (mysql_error ());

    Create an another repeat region and assign the "model_id" (the field of your database that is the unique identify at the end of the affair and to assign the "model_name" for the link of the visible page):

    Which would give you something like:

  • ">Nokia 1000
  • Next, you need to create the model_details.php page and query the database based on the "model_id:

    $model_details = mysql_query ("" SELECT * FROM mobile_phones WHERE model_id = ' $model_id ' ' ") or die (mysql_error ());

    $model_details = mysql_fetch_array ($model_details);

    You can then echo all data fields associated with the identifier unique field "model_id" on page of:

    Dreamweavers server behaviors should be able to do most of the above for you. I have only provided a plan of action of the process by using mysql to query the database which I wouldn't normally use because it's a procedure dated, BUT if you are still reliant on the DW server behaviors its your best approach.

    Tags: Dreamweaver

    Similar Questions

    • Dreamweaver developer toolbox, we can us it and develop the web site on the duration of the trial. On put option despite. Thank you

      Is it legal or illegal to use it. But I need Dreamweaver developer toolbox, can we it and develop the web site on the duration of the trial. No option to sell despite. Thank you. Does break Adobe right.

      I just I want to use mxkollection and phakt mysqli

      Adobe Dreamweaver Developer Toolbox (MEASURE) was abandoned several years ago. It is no longer available for purchase and the code is NOT open source.

      If you have a registered copy of uninstaller, you can continue to use it, but it is no longer supported, and it only works with specific versions of Dreamweaver.

    • The multi site bookmark

      Is it possible to insert a bookmark of the multi site? For example, a click opens 8 sites/tabs. If so, how is this installer?

      To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java

      {Ctrl + click} works like the Middle-click.

    • Adobe flash player 11.0 blocks access to the Web site home pages

      Why is Adobe flash player 11.0, allowed to block access to the Web site home pages, until their trash is installed?  They should be prosecuted for punishment of the loss of time by Internet users, who spend countless hours trying to fix their garbage, which takes control of the web and blocks PCs access to their program settings, unless it is done according to their specific updates. N ' ILS OWN INTERNET and everything on it, or what?

      Are you sure he blocked it, or the web page requires Flash Player to see this?

      Most web pages require an element of Adobe Flash Player.

      First of all, try to enable Active Scripting in the areas of Sites Internet Options, security settings, trust.

      You should also add a corrupted on.

      Click Start, type: Internet Options

      Press enter

      Select the "Advanced" tab

      Under reset Internet Explorer settings, click "reset".

      This should restore the Internet Explorer default settings.

      Then reinstall Flash Player

      http://get.Adobe.com/flashplayer/

      ----------

      Flash Player

      Troubleshoot installation of Flash Player for Windows

      http://kb2.Adobe.com/CPS/191/tn_19166.html

      Troubleshooting player stability and performance

      http://blogs.Adobe.com/JD/2010/02/troubleshooting_player_stabili.html

      Uninstaller

      http://kb2.Adobe.com/CPS/141/tn_14157.html

      Flash Player Support Forum

      http://forums.Adobe.com/community/webplayers/flash_player

    • went to use creative cloud and it won't let me open photoshop, says need to renew the subscription, but says page not found, I was paying £15 a month for it, hope you can help as soon as possible because I need to use it for my United work

      went to use creative cloud and it won't let me open photoshop, says need to renew the subscription, but says page not found, I was paying £15 a month for it, hope you can help as soon as possible because I need to use it for my United work

      Hello

      Maybe it's an activation issue, please see the link https://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

      Kind regards

      Gag

    • I need to open the web site even in two separate tabs. Since I've upgraded to Firefox 6 when I try to open the web page in a new tab in the list in the drop down in the address window it gives that the opportunity to move to the already open tab.

      When I get off the fall from the address window, rather than display the URL of the Web site I want to open in a second tab says "switch to the tab '. But I don't want to move to the tab - I want to open a second tab on the same URL. If I want to open it a second time, I have to manually enter the address. Is it possible to turn off this option so that I can open the second tab by using the same address in the drop-down menu? I was always able to do this with the previous versions of Firefox.

      "Is it possible to turn off this option so that I can open the second tab by using the same address in the drop-down menu?

      You can install this add-on: https://addons.mozilla.org/en-US/firefox/addon/switch-to-tab-no-more/

      If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

      Not related to your question, but...

      You must update some plug-ins:

    • I need to number the lines of my page document for the presentation of the journal. Help, please!

      I need to number the lines of a document to be submitted to a journal. I can make a section in the document, but I can't find a command, and then add the line numbers.

      Hi Misha,.

      3 pages includes number of words to display as a menu item in the view menu:

      The County appears at the bottom left of the page and it shows more options when you click on it. Unfortunately, "number of lines" is not included in the available options:

      If you had ' 09 Pages on your Mac and did not intentionally removed it when you installed 5 Pages, it will always be there, in a folder named iWork ' 09, in your Applications folder.

      Copy your document, open the Pages ' 09 and paste the contents of your document into a word processor new document in Pages ' 09.

      Check that the end of the document is delivered on the same page (number) and to the same position on this page as in the original and making small changes at the margin to adjust it if necessary.

      Then go to edit > tools > statistics to see this more comprehensive report:

      Note that if you need to present the newspaper article in one format other than a file of Pages, the number of rows may change due to changes in the conversion to the new format of formatting.

      If you don't have a Pages ' 09, you can get a number of lines using tools > line numbers in OpenOffice or LibreOfficeApache. Both are applications open source, free to download and use (even if you might donate help the future evolution of the demand). The links will take you to their respective Web sites.

      Oh... One more thing (as long as Steve jobs used to say sometimes): pages (3), go (menu) Pages > provide pages of comments and make a feature request so that the line count (and line numbering) added the capability of 3 Pages.

      Kind regards

      Barry

    • Dreamweaver 6 opening the wrong index.php page...

      Please: when I opened my page index.php on the local server in a browser (all browsers), it opens and displays the code html of a different index.php page and this one is in a different folder on the site on the same drive? Why is this happening?

      Check the definition of your test server site in DW.

      It points to the correct site folder in your test server's default web folder?

      C:\wamp\www\yourSiteFolder\

      C:\xampp\htdocs\yourSiteFolder\

      Nancy O.

    • create the new site - home page is index of /.

      Hello

      I just started the design of a Web site.

      I started my download joomla and had this installed on my page.

      So I decided to change tact and use dreamweaver site.

      I transferred my site dreamweaver successfully except for a glitch.

      When I navigate to the home page the first page I see is...

      Index of /.

      Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/2.2.7 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.whereartyou.co.uk Port 80
      When I click on the link whereartyou/ it goes through to the actual site but, for obvious reasons, I want to get rid of this opening index page and have the user go straight through to  the homepage of my dreamweaver site.
      Anyone have any ideas how I can get rid of this page?
      Or what it might be?
      Cheers in advance!

      the root folder of your site of public_html

      Your home page must be located in this folder, not inside another folder.

      You have placed an unnecessary file on your server named whereartyou / and buried your homepage in it.

    • Problems with downloading to my host the Web page on the dreamweaver site download page.

      I've been to the host server support service, and they referred me to a Dreamweaver tutorial on that.  I have agreed to that, but he seemed to suggest the same info I was using.  No matter what I try DW sends an error message that it cannot contact the server.  I use www.lunarpages.com for the name of the FTP server as the connector, my domain name as FTP address, username and password that I use to access lunarpages and public_html / as root on the server directory.

      I'd appreciate a lot of new ideas!

      Nancy Harkey

      My problem is solved and the Wiki Tutorial helped in a strange way.  I went

      Back to her and checked again that I seem to do everything

      correctly.  Who sent me to wonder about my password.  I had changed

      for my account and that was what I used for the display of the site, but - had

      not changed for the Web site.  Did that and everything worked perfectly.

      Thank you for sending me in the right direction.

      Nancy

    • I need help with the code of php mailer

      I followed the instructions to make this announcement and I get an email but no inside information. No message, no who he comes, nothing. only the mailer 'shape' is received. I am new to DW, still using training wheels. can anyone help?

      Here's the code for the contact page:

      <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
      "< html xmlns ="http://www.w3.org/1999/xhtml">".
      < head >
      < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
      < title > Untitled Document < /title >
      < / head >

      < body >
      < do action = "mailer.php" method = "post" > "

      Name: < br / > < input name = "test" type = "text" size = "32" / > < br / >
      E-mail: < br / > < input name = "email" type = "text" size = "32" / > < br / >
      Message: < br / > < textarea name = "message" rows = "10" cols = "40" > < / textarea > < br / >
      < input type = "submit" name = "submit" value = "Submit" / >
      < / make >
      < / body >
      < / html >

      code for mailer:

      <? PHP
      $to = "[email address removed by Moderator] ';
      $subject = "from my Web site";
      $headers = "from: Form Mailer ';
      $forward = 0; 0 = no redirect, redirection of 1 = 1
      $location = ""; If 1 then "yoursite.com".

      $date = date ("' 1, f js, y" ");
      $time = date (' h: i A ");

      $mgs = "this is the result of your feedback form. He received the $date $time.\n\n ";

      If ($_SERVER ['REQUEST_METHOD'] == 'POST') {}
      foreach ($_POST as $key = > $value) {}
      $mgs. = ucfirst ($key). » : «. $value. "\n";
      }
      }
      else {}
      foreach ($_GET as $key = > $value) {}
      $mgs. = ucfirst ($key). » : «. $value. » \n » ;
      }
      }
      mail ($à, $subject, $msg, $headers);
      If ($forward == 1) {}
      Header ("' Location: $location '");
      }
      else {}
      echo "thank you for your visit. We will review your information that has been sent to us. Be blessed! « ;
      }

      ? >

      [Proposed by the correct forum Moderator]

      The problem really has nothing to do with Dreamweaver, but your lack of experience with PHP.

      For example, you have this line of code:

      $date = date ("1,f js,y");
      

      If you use echo to display the output of the $date, what you get is this:

      1,f 1257,09
      

      Not a very useful date, I think you would agree.

      What should be your code is the following:

      $date = date ("l, F jS, Y");
      

      Very similar, but completely different insofar as PHP is concerned. Note that the first character is lowercase L and not one. The other letters are also crucial.

      This code generates "Sunday, July 12, 2009.

      Now, why have you not no messages? Elementary, my dear Watson. Throughout your code, you assign to a variable called $mgs the message. When finally, you send the mail, the variable you are using is $msg. I suspect that $mgs should be $msg throughout. As humans, we can identify the misspelling and may ignore it. The computers cannot. You must be very attentive to the spelling when you work with a language like PHP.

    • I need to customize the Oracle EBS logon page

      Hi all


      I need to put my custom OPS between Oracle EBS Login page page and the homepage of the Oracle. Please guide me to achieve this requirement.


      Kind regards

      Karna

      Connection to the EBS, go to 'Preferences--> display preferences.

      There, in the top of the page area, you can select the responsibility and the page that you want to open after the connection.

    • I need help in the design of a page with notes

      I would like to place a translation of the word one or two in a narrow column alongside a main text. There are a lot of translations in this text, about one every two lines. The function of reference simply creates a long list at the bottom of the page. This creates design challenges. Does anyone have any suggestions of what I can do to design a page where these translations of one or two words appear in one column next to the text, or somewhere other than a list of unique column at the bottom of the page. Thank you!

      If you are using CS4, you can try free "Dynamic Sidenotes" the script of Peter Kahrel, available here:

      http://www.kahrel.plus.com/indesignscripts.html

    • egularly Firefox says "does not" I have to wait for the requested site or page appears. This does not happen if I use Internet Explorer, but I prefer Firefox. I uninstalled and re-uploaded and re-installed, but it does not help.

      This only happens on this PC and not on the second PC [both cable moden] or on the my wireless laptops.

      upgrade your browser Firefox 8 and check

    • Change of capitilization of links in the Web site to automatically match the landing pages.

      I'm trying to properize the links within the Web site to reflect the capitilzation correct landing page, - in the Web site.

      Thousands of links within a site .php was converted incorrectly. I need to change the links and not pages. I'm looking for a way THROUGH CC Dreamweaver or any method so I did not haave to change them manually.

      Recommendations or thoughts?

      I just talked to my host, and there is no option to make non case sensitive links... Strange because I searched I found some linux servers claim to have this option, perhaps not. . I think that what I'll do is just to change Windows hosting, as I hear it. Most of the site is just happy and will never need anything in particular, who need Linux or other

    Maybe you are looking for