Jump to content

Dug

Members
  • Posts

    50
  • Joined

  • Last visited

About Dug

  • Birthday 05/19/1983

Previous Fields

  • Languages
    ASP, SQL, HTML, CSS, JavaScript, Python CGI, ASP.NET, PHP

Contact Methods

  • MSN
    dug@douglasmcgregor.co.uk
  • Website URL
    http://www.douglasmcgregor.co.uk
  • ICQ
    0

Dug's Achievements

Newbie

Newbie (1/7)

1

Reputation

  1. Hi there,I'm very new to the world of graphic design and all that.Most tutorials I've come across deal with lower screen resolutions than my computer uses (as stated in the title), so I was wondering what the best practices are for dealing with screen sizes like I have? I've tried backgrounds in Photoshop 1 pixels x 1 pixels, but it's really small to see so I can't do any proper work with it. Would another option be to create a background for every screen resolution out there and use JavaScript to detect the user's screen size?ThanksDouglas
  2. Oh right, that's interesting, I didn't realise.Dug
  3. Oh right, that's interesting, I didn't realise.Dug
  4. Hope you don't mind if I randomly jump in here, but that won't work cause you are declaring that the language is JavaScript, so that's like ASP and JavaScript mixed up, which would confuse the server.It should read:<%@ Language="VBScript" %><% Option Explicit %>'some code here<%= Request.ServerVariables("REMOTE_ADDR") %>'yet more code That should work for all computers since ASP is server side scripting Dug
  5. Hey,Ok finally there's something I'm stumped at, so I'm having to ask for advice.I'm writing a script for a Content Management System that will insert articles in to a database. The user should also be able to create a new table for a new category if they wish.Here is my code so far: <?php include("../includes/DBConnecter.php"); ?><?phpif($_POST['title'] == '') { echo "You did not enter a title<br>";} else { $FirstName = $_POST['f_name']; } if($_POST['category'] = '') { echo "You did not enter a category<br>";} else { $Category = $_POST['category']; } if($_POST['article'] = '') { echo "You did not enter an article<br>";} else { $Article = $_POST['article']; } $sql = 'CREATE TABLE $Category (' . ' `Title` TEXT NOT NULL, ' . ' `Article` TEXT NOT NULL, ' . ' `Time` TIMESTAMP NOT NULL' . ' )'; mysql_query($sql,$con); ?> The problem is, with the sql create query - when I try to use "$Category" to create the table name from the form, it creates the table but calles it $Category. Would there be any solution to this?Thanks!Dug
  6. Hi mate,Thanks for the reply.I've done as you suggested, put an advert in the Glasgow bit of Gumtree.I've just said I'm looking for work experience in website design, and listed the programming languages, software and internet protocols I'm knowledgeable of. I've got a portfolio started of websites I did as part of Uni projects. It's 3 so far, so hopefully I can build on that.Dug
  7. Hi folks,Thought I'd give a small introduction. My name is Douglas, known to my friends as either Dug or Shuggy. My first degree was in music, but towards the end I thought I'd be happier in computing, so I'm now doing web development.I am knowledgeable in HTML, CSS, JavaScript, ASP, ASP.NET, SQL and Python CGI. Web server wise I'm knowledgeable in Apache 2 and IIS. Also familiar with MySQL databases, including applications like Query Browser and Administrator. I really want to be a website programmer, however it is very hard to get a job without commercial experience, so any advice would be welcome. I've done a short course at Paisley Uni and that covered everything I'm knowledgable in, and I still continue to teach myself. I'd really appreciate any advice about getting in to website programming commercially. Other interests include reading, partying and DJing. Work hard and party hard, that's what I say! Looking forward to getting to know you all.Dug
  8. Well, I managed to get it working finally. The one that seems to work is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> I was trying to get it working with the default Dreamweaver Doctypes. Don't know what went wrong.Dug
  9. Unfortunately it still isn't working. Is there anything else I could try?Dug
  10. Hi there,I'm trying to get the code for my website to W3C standard. The Doctype I'm using is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> The problem is that CSS positioning doesn't seem to work when I use Doctypes. It works without the Doctype though. For example, the positioning code I'm using is: position: absolute; top: 200; left: 200; This code is in the #welcome and on the page itself: <div id="welcome"> .I'm using Dreamweaver for my site. Has anyone had this problem before? If so, what's the best way to position things?ThanksDouglas
  11. Dug

    Auto Response Email

    Hi folks,I'm writing code just now where the user fills out a registration form and on submit an automatic email should be sent to the address provided with a hyperlink to activate their account.I've been doing this for ages now and I'm nearly at the end of my teather over it. I had got as far as sending the auto response email, but now I can't even seem to get that to work. I keep on getting silly error messages, such as the username of the ISP isn't defined by a variable and so on. I have no clue what is going wrong.Because I'm using NTL, I have to supply the username and password to enable the email to be sent. I remember using the code I found on w3schools the first time and it worked, I just can't understand what's gone wrong this time and am running out of ideas. Here is my code: <%Dim myMailSet myMail=CreateObject("CDO.Message")myMail.Subject="Sending email with CDO"myMail.From="t.mcgregor7@ntlworld.com"myMail.To = request.querystring("email")myMail.TextBody="This is a message"myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2'Name or IP of remote SMTP servermyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")=smtp.ntlworld.com'Server portmyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername")=t.mcgregor7myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword")=inkyfrogmyMail.Configuration.Fields.UpdatemyMail.Sendset myMail=nothing%>I do hope someone will be able to help.ThanksDug
×
×
  • Create New...