Jul 25, 2008

Positioning

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Positioning

kvarnerexpress
I want to be bale to poistion certin parts of my code in specfic places. I need to be able to disaply this quickly. As a temp measure I have started and stopped php tags. Now normally this will disaply a php block on my dreamweaver. However it is not. Is there a reason why??

My code is;

PHP Code:
CODE
<?php

    $db = @mysql_connect ("localhost","root","andy");
   
    print "Database Connection gained";
    echo '<br>';
   
    mysql_select_db("disertation",$db);

    $query = "SELECT questions.Question, questions.Option FROM questions";
    $result = @mysql_query($query,$db);
   
    while($row = @mysql_fetch_assoc($result))
         {
?>
             
       <?php
              echo $row['Question'] . '<br>';    
       ?>    
             
       <?php    
              switch($row['Option'])
              {
                case 'R':
       ?>
               
       <?php
                   echo "<input name='" . $row['Question'] . "' type='radio' value='radiobutton'>";
                   echo '<br>';
       ?>
       
       <?php
                   break;
                case 'T':
       ?>
       
       <?php
                   echo "<input type='text' name='" . $row['Question'] . "'>";
                   echo '<br>';
                   break;
              }

         }

?>

Thanks,kvarnerexpress

 

 

 


Reply

Tyssen
I'm sorry, what's the actual question? huh.gif

Reply

arboc7
From what I think you are trying to do, you need to have the code inside of the body tag. Then dreamweaver should display the blocks. But the other possibility is that you need to just put the code bits directly into the HTML using the "code" view in dreamweaver. I don't see why you can't do that in the first place...anyway, if you could elaborate on your question--as Tyssen suggested--that would be very helpful.

Good luck!

Reply

magiccode9
I'am not sure the question you are asked sad.gif , however, I have a try this. you may have to place some code in dreamweaver and that be a specific position on the page. if so, then you have insert the php code as usual. then you see a small icon acrhor that placed on you page. you can just cut and place this icon where you want it be. after that, you have the code in the right place. this is coz dreamweaver have't and can't support php parser, so it can't display it. if not, post message here. smile.gif

- hope this help

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : positioning

  1. Looking For A Fix To Use "fixed" Positioning In Ie
    (8)
  2. Ie6 Relative Positioning Bug
    how to avoid (1)
    i have the following definition in my style and i'd like all elements in site to be relatively
    positioned against their parents so i can position any of them absolute when i need to: CODE
    {     margin:0; padding:0;           font-family:verdana,arial,sans-serif;     
    font-size:11px;      text-align:left;      background:none;      color:black;     
    position:relative;     } All good in opera9 and FF2beta but IE6 stills the page without the
    possibility of scrolling it down. Any ideas?....
  3. Problems With Webpage Positioning In Internet Explorer
    (11)
    Originally this topic was asking for testing of my page in Internet explorer but someone on another
    forum got there first, but I still need help! I've made a page using absolute positioning
    and php, using percentages for positions so that it should suit all screen resolutions. However on
    internet explorer some of the text on the right can't be seen and is off the page, whereas in
    every other browser it's perfect. What can I do to make it show up properly in internet Explorer
    as well as all the other ones? Here's the link so you can see what I mean by....
  4. Css Positioning Trouble
    in FIREFOX! yet IE displays it as i want (6)
    Wait wait! im not complaining about firefox! i couldnt ever do it, but the fact is that for
    the very darn first time IE is actually showing the thing as i want it... I have a table inside a
    div, and i want the table to be right aligned, and IE6 does so (not the same for ie for mac though)
    but firefox keeps it to the left, the best thing i've achieved with this is a fixed position
    which does not look good while resizing...... ive also tried floating and even adding a wrapper...
    so i dont know what to do... this is the site: http://www.cucea.udg.mx/cucea/gr....
  5. Simple Smil Question About Image Positioning
    (3)
    Howdy all, I'm working on a project for college but ran into a "little" problem with SMIL,
    concerning positioning images. You can see the smil presentation here:
    http://www.ket.trap17.com/smil-show/index.html (its only a 15 second presentation and doesn't
    take long to load. don't mind the language on the left image, its portuguese) What i want to
    do, is to make the image on the right, to fade in in the same place as the left image. I tried
    setting a region but that didn't work, I tried using the layout tags in the but that also
    didn't work (o....

    1. Looking for positioning

Searching Video's for positioning
advertisement



Positioning



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE