User Profile

Collapse

Profile Sidebar

Collapse
tommurray
tommurray
Last Activity: Sep 24 '08, 12:36 PM
Joined: May 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tommurray
    replied to PHP MySQL Insert
    in PHP
    The error was on line 40 and it was the reference was "sablefordpoint s" which should have been "stablefordpoin ts" but no matter how long I looked at the code I could not work it out.

    But the very second I clicked submit to post the question and re read my post I noticed it.

    If you are wondering what the script is for its to track golf statistics for your round of golf so I can track if I myself and...
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to PHP MySQL Insert
    in PHP
    Problem Solved I had a typo in my code that no matter how many times I looked I could not see it.

    And the error was not shown on screen as the verion of MAMP I have for the mac does not have errors set to display in the php.ini
    See more | Go to post

    Leave a comment:


  • Not sure what you mean that code that you have posted is HTML, well XHTML to be precise.

    XHTML is the structure of the document while CSS is what is used for all presentation such as colour and so.

    Tom
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to Submit a form
    Hi

    Can you use any server side programming languages on the server such as PHP or ASP.NET?

    If you do then let me know which one and I will help you out.

    Tom
    See more | Go to post

    Leave a comment:


  • tommurray
    started a topic PHP MySQL Insert
    in PHP

    PHP MySQL Insert

    Hi

    I am currently setting up a script so that it inserts information into one table and then follows onto the next few lines and checks to see if the user already has a row in a different table if not the script should insert into the database, if the user already has a row it will update the information by adding the numbers to the ones currently stored in the database.

    At present I am testing the second SQL insert...
    See more | Go to post
    Last edited by ronverdonk; Mar 9 '08, 11:50 PM. Reason: modify code so it fits the screen

  • tommurray
    replied to creating a league table from a database
    in PHP
    Thank you for your help, I was hoping to see a method that would be able use the data that is currently stored in the table. Reducing the need to add further SQL scripts to the original part of my code, so I think the easiest approach would be to create another table and update the points.

    But thank you for the SQL script it will come in handy and I was not aware that approach.

    Thank you

    Tom
    See more | Go to post

    Leave a comment:


  • tommurray
    started a topic creating a league table from a database
    in PHP

    creating a league table from a database

    I’m looking for a little help and guidance on creating a league table from entries in a database, because of other requirements it is not possible to update the entry for the person in the database. So there is going to be multiple rows for the same person I would then like to add up the points for that person. Around ten people will be apart of the league and the total number of rows will be no more than one hundred so I don’t think there will...
    See more | Go to post

  • Why not take out the img tag and insert the image into the css, the whole Idea of CSS is to take out all design elements leaving plain XHTML. Only images that portray information should be included within the html.

    Try somthing like the below to position your arrow image and then add in your other css.

    Another tip is to make your site work in Firefox and then create a ie only spreadsheet. More info can be found on creating...
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to what really is meta tag
    Meta tags are used to increase and improve your search engine results, by using a description of your page, then including in a sperate meta tag keywords / Phrases that may be relevant to your page.

    A search engine such as google will then index your pages if it crawls over them. Increasing your chances hits from non direct traffice.

    Tom
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to Change name of mysql
    My webhosting have setup the mysql server on a different box, so I can't use localhost as it does not connect.

    Tom
    See more | Go to post

    Leave a comment:


  • tommurray
    started a topic Change name of mysql

    Change name of mysql

    Hi

    I have recently setup MAMP on my iMac and i was wondering if it is possible to setup the mysql server name to the same as my external web hosting, to make it easier to switch between development and live environments.

    Thank you.

    Tom
    See more | Go to post

  • tommurray
    started a topic Customising the Google Search Box
    in XML

    Customising the Google Search Box

    Hi

    I have been asked to customise our google mini search results page on our intranet, but i am having a little difficulty getting to terms with the structure of the xml/xslt stylesheet. Does anyone have any tips or tutorials on how to change the page I can add a header no problem using the GUI that google mini provides but I was hoping to add in the results to our existing intranet page. (header, left-menu, right-menu).
    ...
    See more | Go to post

  • tommurray
    replied to Creating an Archive from Date
    in PHP
    pbmods

    Thank you for all your help i owe you big time.

    Tom
    See more | Go to post

    Leave a comment:


  • tommurray
    started a topic 401.2, Users Behind Proxy Server
    in IIS

    401.2, Users Behind Proxy Server

    Hi

    I have a problem with one of our service providers website uses windows integrated authentication. I have searched through the internet and all I can see for solutions to this problem is get a better proxy server that supports windows intergrated authentication (the proxy we are behind does!)

    Also to by pass the proxy server, which cannot happen as its a security requirement.

    When attempting to access...
    See more | Go to post

  • tommurray
    replied to Creating an Archive from Date
    in PHP
    pbmods

    Thank you for your help I have it all working correctly thanks to your expertise, one problem I did have is converting the string 'September' or any other month to is numerical value '09' is this somthing which can be done?

    I got round the problem with if and else statements but was wondering if strtotime should have worked in this situation.

    Kind Regards

    Tom
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to Creating an Archive from Date
    in PHP
    pbmod

    Thank you i understand how to use strtotime now but i'm completely stuck on how to get the year and month into the equation? How can I get it to go one month ahead to then minus 86400 seconds off?

    I have looked around an I saw you can put plus one month but that will only add on 30 days so that no good for this situation.

    Thank you so much for your help.

    Tom
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to Divs in IE and Firefox
    Just a tip if you have problems fixing issues in IE you can do a conditional if statement that only IE understands like below:

    This applys to all IE browsers.

    Code:
    <!--[if IE]>
     <link href="/css/ieonly.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    
    <!--[if IE 5]>
    <p>This message is only displayed in IE5.</p>
    ...
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to Creating an Archive from Date
    in PHP
    Hey pdmod its me again unfortunatly for you i'm trying to pick your brain :)

    I have a problem were I am up to the part of running through the string date and time as you suggested using the strtotime.

    I have created an if statement to catch if there is a variable for the month passed through if not then the start month gets set to January and the end month December.

    If a month is passed through then I...
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to Creating an Archive from Date
    in PHP
    pbmods


    Thank you for your help I have created the archive links, I have added a couple of if statements to show only the blog titles for the current month.

    But your script has also provided me with a great way of creating a site map for all the archives, which I think will only improve usability and accessibility.

    Thank you. I'm in the process of implementing your second suggestion to retrieve...
    See more | Go to post

    Leave a comment:


  • tommurray
    replied to Creating an Archive from Date
    in PHP
    I now have the following code:

    [PHP]

    $result = mysql_query("SE LECT date FROM news")
    or die(mysql_error ());

    $archives = array();

    while( $_row = mysql_fetch_ass oc($result) )
    {
    $_year = date( 'Y', strtotime($_row['date']) );
    $_mon = date( 'F', strtotime($_row['date']) );

    $archives[$_year][$_mon][] = $_row;
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...