Jump to content

MarkT

Members
  • Posts

    168
  • Joined

  • Last visited

Posts posted by MarkT

  1. Hello,

    Can anyone show me a demo of a code, I'm looking for a form that uses text and file upload.

    I need a form that has details such as title and content, but I also want an image upload where it saves the file to my FTP server in a folder called Uploads and then it saves the filename and extension to the database, along with the other details from the form.

     

    Can anyone give me the code and explain it please!

     

    Thanks in advance.

  2. Try selecting all files as a format,

    and naming your file: index.html

     

    Also include daveJ's suggestion of making your <!DOCTYPE html> readable to a browser...

  3. Why bother? There are already plenty of finance portals...

     

    https://finance.yahoo.com/portfolio/pf_1/view/v1

     

    Davej: I believe he wants a portfolio to show off his HTML websites.

     

    I suggest using a layout like Dreamweaver, indentation, it can be used for tags ie.

    

    

    

    <table>       <tr>           <td>Hi</td>           <td>Hi</td>       </tr></table>

    Makes it look neater as you can tell where each thing ends.

     

     

    Hope this helps.

    • Like 1
  4. Hostgator are reliable - Cheap and you can use a FTP Client such as FileZilla to upload your files.

    If not you could use hosting24 (paid) which is provided by 000webhost (free), they both allow ftp clients such as FileZilla.

     

    Most hosts give you an option to use drag/drop website builders or you can upload your own using FTP details which can normally be located in the control panel.

    • Like 1
  5. Hello,

    I currently have the following code;

    <tr><td>ID</td><td>First Name</td><td>Surname</td><td>Form</td><td>Reason</td></tr><?PHP mysql_connect("*******","*****","****","******");$sql = mysql_query("SELECT * from bans");?>

    And basically, I've tried to echo it in a table. so that it uses the results from SQL.

    in the form

    $sql['id']

    $sql['name']

    $sql['surname']

    $sql['form']

    $sql['reason']

     

    In a seperate td

    So <td> $sql['id']</td>

    for example, so that it shows all of the bans in a seperate row per ban.

     

    Please can somebody help! and supply me with the correct code I should put in the PHP File.

     

     

    Cheers.

  6.  

    UAHuahu, Got it!
    So correct and always declare my CSS.
    html, body {margin: 0, height: 100%;}
    Correct and Ever Start CSS that way?
    To Design Responsive?

     

    I always correct that when I start coding a new stylesheet in CSS.

    Especially, if it's a responsive design...

     

    Good Luck with your CSS.

  7. how can i go about displaying a member being online or offline

    To be honest, in your login script, create a code, that updates online to 1, and then on the logout script, set it back to 0. Also, I would then create an SQL query, example;

     

    $online = mysql_query("Select online FROM users where username={$_SESSION['username']}") if($online == 1) {echo "Online"} else {echo "Offline"}

     

    or something along that lines.

     

    Hope this helped!

  8. To be honest, I prefer IIS, it's a lot easier to use as it has a management panel for you to use for rewrite rules.

     

    I'll have a look, but i suggest you look at some mod_rewrite tutorials and get a basic knowedge before you try to do advanced rules, for example, not allowing images etc.

  9. You should verify that the value that it gets from the database and stores in the session is correct, it might not be getting anything from the database. Or the record might have a blank value for that field.
    Am i right to use mysql_fetch_assoc, and did I use it the right way etc?
  10. Is it possible (in html) to save the result of an <input> tag to a text file? I have googled this question but can't get any kind of reasonable answer, all the answers seem to wander off into the mystical realms of asp, php, ajax, etc.. of which I no nothing.. Can anyone steer me in the right html direction please.
    I assume you want to save it to a text document on the server,If so I recommend using PHP fwrite, tutorials below;http://www.w3schools.com/php/func_filesystem_fwrite.asphttp://php.net/manual/en/function.fwrite.php
×
×
  • Create New...