User Profile

Collapse

Profile Sidebar

Collapse
Philth
Philth
Last Activity: Mar 3 '10, 08:57 PM
Joined: Oct 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Philth
    replied to Query Failed Problem
    in PHP
    Hi there,

    Thanks for the message.

    Here is what is printed...

    UPDATE pages SET title='Page Title', desc='Page Description', keywords='Page Keywords', content='
    Page content html

    ' WHERE id = '1'

    There appears to be somthing funny going on with the content field.

    Here is my whole page...

    Code:
    <?
    include("../check_session.php");
    ...
    See more | Go to post

    Leave a comment:


  • Philth
    started a topic Query Failed Problem
    in PHP

    Query Failed Problem

    I'm a novice, so bear with me.

    I'm trying to use a query string that has worked fine for me in the past, however, I'm now using mysql 5 which may be causing the problem, or not.

    I've tried various versions of this with still no joy.

    Here is my mysql_error message...

    Query failed:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for
    ...
    See more | Go to post

  • Philth
    started a topic CSS Drop Down Cut Off

    CSS Drop Down Cut Off

    Hi there,

    I've got a series of CSS /Javascript drop down menus that work fine in Safari and Firefox, but not in Explorer (surprise. surpise!) as was wondering if anybody could give me a bit of assistance? The menu first appear to be cut in half when it appears, and depending on the browser, remain with a chunk cut out the top right corner. I've tried changes Z Index' etc without success.

    Here is the CSS...
    ...
    See more | Go to post

  • Philth
    replied to UPDATE Query and File Blobs
    in PHP
    Thankss for your help - I appreciate the tips.
    See more | Go to post

    Leave a comment:


  • Philth
    replied to UPDATE Query and File Blobs
    in PHP
    I've basically boiled it down to this. I've stripped out any mention of images uploads etc and still it doesn't work.

    What am I doing wrong with the "or die" command? Not even that is working.

    Code:
    <?
    
    include("connect.php"); 
    if(isset($_POST['Submit']) && $_POST['Submit'] == "Submit")
    {
    $courseID=$_POST['courseID'];
    $courseTitle = $_POST['courseTitle'];
    ...
    See more | Go to post

    Leave a comment:


  • Philth
    replied to UPDATE Query and File Blobs
    in PHP
    Thanks for the reply,

    Sorry I meant UPDATE, not DELETE.

    You'll have to forgive me, I'm a complete novice. I've used $_GET in the following way before...

    Code:
    $query = ("DELETE FROM tutorials WHERE tutorialNumber = '".$_GET["id"]."' LIMIT 1");
    I just thought I might be able to use a similar query with the problem above. Evidently not.
    See more | Go to post

    Leave a comment:


  • Philth
    replied to Update Password Checker
    in PHP
    By that I mean it's not echoing any of the messages.
    See more | Go to post

    Leave a comment:


  • Philth
    started a topic Update Password Checker
    in PHP

    Update Password Checker

    Hi folks,

    Can anyone spot any problems with this? It's not returning any errors.

    Code:
    <?php 
    // login2.php
    include("connect_courses.php");
    
    if(isset($_POST['Submit']) && $_POST['Submit'] == "Submit")
    {
    
    $myusername = $_POST['myusername'];
    $mypassword = $_POST['mypassword'];
    $mynewpassword = $_POST['mynewpassword'];
    ...
    See more | Go to post

  • Philth
    replied to UPDATE Query and File Blobs
    in PHP
    Anybody got any ideas?
    See more | Go to post

    Leave a comment:


  • Philth
    replied to UPDATE Query and File Blobs
    in PHP
    Just out of interest, if the file upload field is left blank in this UPDATE form, will it over write the file that was originally posted in the database?

    If so, is there a reasonably simple way around this?
    See more | Go to post

    Leave a comment:


  • Philth
    started a topic UPDATE Query and File Blobs
    in PHP

    UPDATE Query and File Blobs

    HI there,

    I had a similar problem yesterday with my delete function. All looks ok, yet doesn't delete. I've tried adding the '$_GET' to the sql query, without any success. Is this perhaps a problem with the file uploads? The row ID is definately being posted correctly.

    Code:
    <?
    include("connect.php"); 
    
    if(isset($_POST['Submit']) && $_POST['Submit'] == "Submit")
    ...
    See more | Go to post

  • Philth
    replied to 'Delete From' Issue
    in PHP
    Great, thanks alot guys.
    See more | Go to post

    Leave a comment:


  • Philth
    replied to 'Delete From' Issue
    in PHP
    Sorry, I don't understand. The $id in the DELETE FROM query?
    See more | Go to post

    Leave a comment:


  • Philth
    started a topic 'Delete From' Issue
    in PHP

    'Delete From' Issue

    Hi there,

    Can anyone spot why this scrip isn't working.

    It returns "row deleted" fine, yet doesn't delete.

    Code:
    <?
    include("connect.php"); 
    
    if($_GET["cmd"]=="delete")
    {
        mysql_query("DELETE FROM events WHERE eventNumber='$id'");
    
        $result = mysql_query or die("Error: ". mysql_error());
    ...
    See more | Go to post

  • Can anybody please help me with this?
    See more | Go to post

    Leave a comment:


  • Philth
    replied to PHP generated menu question
    in PHP
    Hi Dormilich,

    So putting something like this when processing the form would create a null entry when "0" is returned? Or is there more to it?

    Code:
    filter_var('eventCategory2', FILTER_VALIDATE_BOOLEAN));
    See more | Go to post

    Leave a comment:


  • Philth
    started a topic PHP generated menu question
    in PHP

    PHP generated menu question

    Hi there,

    I've got a a form that includes several drop downs which are generated from rows within a database, which works fine thanks to the very helpful folks on this forum.

    Some of these drops downs are not compulsory and I would like them to be left blank if not needed - or with a default "please select...".

    Is this possible with the following code

    Code:
    		<?
    ...
    See more | Go to post

  • Philth
    started a topic Displaying Rows in the 'fckeditor' Rich Text script
    in PHP

    Displaying Rows in the 'fckeditor' Rich Text script

    Hi there,

    I'm pulling information out of a table and displaying in a form. Some rows are displayed in standard input text boxes - no problem. However, I would like to be able to display some rows within the FCK Rich Text Editor.

    Has anybody had any experience of doing this?

    I'm hoping it's as simple as something along the lines of...

    Code:
    <?php
    $oFCKeditor = new FCKeditor('courseHeader')
    ...
    See more | Go to post

  • Philth
    started a topic Deleting Rows - Should be an easy one!
    in PHP

    Deleting Rows - Should be an easy one!

    Hello folks,

    Hopefully this will be an easy one for most of you guys. I don't delve into PHP much so I'd appreciate some help.

    The aim of the script below is to display a collection of rows with the aim of specifying one for eventual deletion.

    It returns the "row deleted" echo fine, but doesn't actually delete anything.

    Code:
        <?
    include("connect.php");
    ...
    See more | Go to post

  • Philth
    replied to Mysql column populating drop down menu issue
    in PHP
    Yeah, sorry for being dim today.

    Thanks for everyones help.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...