FAQ Database Discussion Community


PHP Display uploaded image to a different page

php,mysql,file-upload,dreamweaver
Hi I'm having trouble with this. A user uploads an image in page1.php. It's filename inserts to a database and the image goes to a folder named 'uploads' How do you get those images and show it to page2.php? page 1 if(isset($_FILES['filename'])){ $errors = array(); $file_name = $_FILES['filename']['name']; $file_size =$_FILES['filename']['size'];...

HTML Errors in DreamWeaver?

html,dreamweaver
I'm getting errors starting with line 15:"Document does not allow element tr here". If I get rid of it, my chart is messed up. Did I miss or add too many tr somewhere? Of course I'll keep looking and if I find something I will post it. I was almost...

How to code 2 columns for bullet list in Dreamweaver?

html,css,dreamweaver
I want to list 3 points for 1 column and 3 points for second column. I want the "P" to be centered. <div class="maindiv"> <p>This is a list of Adobe softwares</p> <ul> <li>Dreamweaver</li> <li>Photoshop</li> <li>Flash</li> </ul> <ul> <li>Indesign</li> <li>Illustrator</li> <li>After Effects</li> </ul> </div> ...

CSS Image aligning/Safari Issue

html,css,dreamweaver
I'm designing a website using Dreamweaver and I'm having some problems with aligning the menu bar. I'm using an image designed in Photoshop and then exported over to dreamweaver. The image is to go in the center of the banner as it contains the links to the other pages of...

Why does it appear that my Javascript code is a comment?

javascript,comments,dreamweaver
Here is my code: chart.fillText(i*topNum, (right_cordinates_width/3)*2, (cVid.height-line_bottom_distance) / 10 - i ); the characters between / /3)*2, (cVid.height-line_bottom_distance) / is grayed out like a comment. Why does this happen and is it really a comment?...

PHP get values from another page

php,mysql,session,hyperlink,dreamweaver
I have this page admin_inquiry.php(page1) which has a dynamic table that shows rows of records.I want to get the values from 2 columns, ContactNo, and message. The contactno column contains a link, which goes to admin_sms.php(page2) and displays the contact no in a textfield. page1: <td><a href="admin_sms.php?ContactNo=<?php echo $row_ContactUs['ContactNo']; ?>">Send...

Vertical centering of image in fluid nav bar

css,center,dreamweaver,fluid
I am trying to get a fluid navigation bar done in Dreamweaver, which will also change the size of the logo when changing the viewport. This works and looks perfectly, except that the logo image will not stay vertically centered when it gets smaller. <div class="gridContainer clearfix"> <div id="div1" class="fluid">...

HTML clickable image has to resize font

html,dreamweaver
I am building a website and I am trying something I cant figure out how it has to work. In my menu I have 2 images. <li id="fontup"><img width="40" height="40" src="images/fontup.png"/></li> <li id="fontdown"><img width="40" height="40" src="images/fontdownpng.png"/></li> Those 2 images represent a button in my menu that if you click it,...

Move chunk of HTML with RegEx

html,regex,comments,dreamweaver,regular-language
What I am trying to do is find a chunk of HTML that has comments chunk!--/block--> and move it in its entirety right after header. The thing is that the comment always remains the same but the chunk varies through pages using find and replace in Dreamweaver. Here is a...

CSS - How can I center my navigation bar?

html,css,dreamweaver
I am new to HTML/CSS so please don't hurt me :) How can I center my navigation? I've researched as much as I can... CSS: #navigation ul { font-family:Arial; list-style-type:none; margin:0; padding:0; width:auto; height:auto; text-align:center; } #navigation ul li { display:inline-block; margin-right:-2px; position:relative; } #navigation ul li a { display:inline-block;...

Dreamweaver Hotspot Links on iPhone/iPad

iphone,dreamweaver,html-email
I'm setting up an html email with one jpeg and three different "hotspot" links to various items on the server. The email and links work perfectly on any desktop computer and android smartphone. On the iPhone, however, the hotspot links don't work. Is this an iPhone issue? Is there a...

Dreamweaver can't connect to localhost

browser,xampp,localhost,dreamweaver
I can't preview what I'm programming in Dreamweaver in any browser anymore. The message I get (e.g. from Safari) is: Safari can't open the page "localhost/~user/mySite/index.htm", Safari can't connect to the server "localhost" I just couldn't find any answers in the internet which could solve this. What I did since...

Trying to use MySQL fields as a restriction for data

php,mysql,login,dreamweaver,restrictions
I'll try to make this as concise as possible, but any help is greatly appreciated. My skill level is slightly above minimal in PHP/MySQL so I'm using Dreamweaver CS6 to try to get my site up and running. I need to be able to restrict data returned from the database...

Hide login link when logged in

php,mysql,dreamweaver
My website welcome page has got a link to login and one to logout. I want to know how to only show the logout link when the user is logged in and the other way around? index.php code: <?php require_once('Connections/PAPCon.php'); ?> <?php //initialize the session if (!isset($_SESSION)) { session_start(); }...

Checking records in MySQL before inserting into database

php,mysql,dreamweaver
I'm creating a reservation system in which the client will fill up a reservation form (Location, Classroom, Time, & Date). My question is about checking the records typed before inserting it in database. Meaning if the LOCATION, CLASSROOM, TIME, and DATE were already inserted/taken/reserved in the database then, the system...

How come navigation isn't against the wrapper when there is no margins/padding?

html,css,dreamweaver
I don't want space above the navigation div. Does it add space as default? In design view, this is no space. But in preview, there is space. Please help. I tried this but didn't work. My coding is: <div id="container"> <div class="nav"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Contact Us</a></li> </ul> CSS:...

Dreamweaver ASP update record not passing query string

vbscript,asp-classic,dreamweaver
I am trying to update a record in a SQL database using Dreamweaver which work fine on its own, but I want the goto url to show the updated product record. I have tried to figure this out using some online tutorials but keep coming up with this error Microsoft...

How to Query Cookie Variables

php,mysql,phpmyadmin,dreamweaver
I'm trying to create a mysql/php chat (private message) for my site using the "WHERE" clause in PHP. SELECT * FROM (tablename) WHERE (columnname) = $_SESSION('MM_USERNAME') However, I seem to only be able to search for plain text or my table "users.username" which brings up all results in table (not...

JSFiddle Character Count not working when copied to Dreamweaver

javascript,jquery,html,dreamweaver,jsfiddle
I seem to be going a little mad, I have copied a script from JSFiddle (Found here http://jsfiddle.net/xL3uugux/1/) and below is my Dreamweaver code <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <style> html { margin:11px } </style> <script type="text/javascript"> $(document).ready(function () { var text_max = 99; $('#textarea_feedback').html(text_max + '...

PHP bind/show specific record in textarea

php,sms,dreamweaver
using DW CS6, I have a dynamic table in admin_inquiry.php, which displays rows of records. One of which is the Contact No, which is a link. <td><a href="admin_sms.php?ContactNo=<?php echo $row_ContactUs['ContactNo'];?>">Send SMS</a></td> When that is clicked, it goes to a new page, admin_sms.php, and it displays the corresponding contact no in...

Dreamweaver CS6 - restrict acces to a page

php,dreamweaver
I have an index.php page (which has user authentication implemented). Successfull login takes you to download.php page. On download.php I have set server behaviours-userauthentication-restrict access to page to redirect to index.php if access denied.But this is not working.I can still open the downloads pagedirectly by providing the link in the...

Disable _notes folder that Dreamweaver as a IDE

design,dreamweaver
I use Adobe Dreamweaver as an IDE...I know the horror. It has worked well for many years and in code view. I don't need the power of Eclipse or have a mac so anyway the latest release has so non-funtioning settings on my pc. I disable Maintain Sync Settings and...

Why does Dreamweaver show syntax error for this script line?

javascript,jquery,templates,dreamweaver
Why does Dreamweaver page using .dwt show syntax error for this script line? <script> window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>'); </script> It shows syntax error only on a page using the template .dwt file. Does not show error in the template - only when applied to a page....

How to center a letter in a circle on a
  • html,css,html5,dreamweaver
    I've been stuck on this for a while. Please see image attached. I need to make a circle with a centered letter inside it and a line to text aligned centre to the circle. I need help with rest of the code. .lettercircle { font-family: Helvetica, sans-serif; background-color: #009cda; color:...

    How to make custom shapes in Dreamweaver CS6 [duplicate]

    html,css,dreamweaver,css-shapes
    This question already has an answer here: Wavy shape with css 2 answers Instead of inserting a shape.png, I want to create a custom shape in Dreamweaver. Can I create a shape using code? Please see the image attached. ...

    dreamweaver cs6 show where style is used

    css,styles,dreamweaver
    I'm using Dreamweaver CS6 to maintain a small web site of 23 pages. I'd like to find out if a particular CSS style, like ".anchor" is used at all, and if so, which pages use it. I can't seem to find this out from a web search. Thanks for looking...

    Learning JSON. Dreamweaver says there is an error in line 2. Cannot find it

    json,syntax-error,dreamweaver
    I'm trying to make a list in JSON. I'm using a tutorial I found on the internet and it seems to have a syntax error in it. I have no previous experience with JSON and I cannot figure out why this code shows an error. Line 2 in particular. {...

    Using Zurb Foundation with Dreamweaver

    css,zurb-foundation,dreamweaver
    I am trying to use Zurb Foundation with Adobe Dreamweaver 2014. I have created a site from a directory which has the foundation files in. But when I view the page in the editor is is completely wrong. Where as when I open the page in any browser it look...

    how to make an image work as a check box?

    javascript,html,css,jquery-mobile,dreamweaver
    I am working on phone-gap application in dream-weaver I have 2 divs .pics and .cover <div class="pics"> <div class="cover"></div> </div> the main idea is to change the colour of the cover div and toggle a JS variable between true and false var checked=false; $('.pics').click(function(){ CheckToggle(); }); function CheckToggle(){ if(checked==false){ checked=true;...

    Expanding Link Abbreviatons, Dreamweaver Setting

    html,settings,dreamweaver
    I think this is a pretty basic question, but I just haven't been able to find a solution for this through google. In Dreamweaver, in the code view, Dreamweaver will oftentimes abbreviate links and src's in order to make the experience more aesthetic and the code more easily browseable. However,...

    Dreamweaver HTML - Column Heights

    html,css,dreamweaver
    I'm having trouble making two columns expandable while retaining equal heights. I have included snippets from my CSS file and HTML. I have browsed through page after page of similar issues yet nothing seems to work! I know I'm probably forgetting something simple. Below is how my HTML is setup...

    Is There Dreamweaver Spry Alternatives? [on hold]

    php,html,css,dreamweaver
    I am currently trying to find an alternative to the Spry Validation Confirm that Dreamweaver CS6 used to have. I upgraded to CC recently and I want to find an alternative that works similarly to Spry Validation Confirm function. Thank You In Advance Stephen...