Jump to content

Callum

Members
  • Content Count

    30
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Callum

  • Rank
    Newbie
  • Birthday 10/10/1992

Previous Fields

  • Languages
    (X)HTML, CSS, Basic PHP and Javascript

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Location
    Berkshire, UK
  • Interests
    Snowboarding<br />Computers<br />Web design<br />School<br />Money<br />Skiing<br />Bass Guitar
  1. Callum

    Php Mail Question

    EDIT 2: Problem solved
  2. could you show us a screenshot?
  3. Callum

    Php Mail Question

    can anyone tell me the fault with this script. I am confused. I am just recieving blank emails. <form action="sent.php" method="post"> <table> <tr><td> Name: </td><td><input type="text" name="appname" size="30"></td></tr> <tr><td> Xfire:</td><td> <input type="text" name="appxfire" size="30"></td></tr> <tr><td>Email: </td><td><input type="text" name="appemail" size="30"></td></tr> <tr><td>Refferal: </td><td><input type="text" name="apprefferal" size="30"></td><tr> <tr><td></td><td><textarea name="why" cols="30" rows="5"> Why should we let you join? </textarea></td></tr> <tr><td></td><td> <input type ="submit" value="Send"></td></tr> </table> </form> <?php$appname = $_POST['appname'];$appxfire = $_POST['appxfire'];$appemail = $_POST['appemail'];$apprefferal = $_POST['apprefferal'];$appwhy = $_POST['appwhy'];$to ="callumhubbarde@live.co.uk";$re = "Edge Gaming Application";$msg = "{$appname}\n{$appxfire}\n{$appemail}\n{$apprefferal}\n{$appwhy}";mail ($to, $re, $msg); ?>
  4. Callum

    PHP Proxy?

    I need a proxy and am fed up of being bombarded with ads using commerical proxies. How would I make a php proxy? Could someone show me how with a tutorial? Also the proxy needs to be able to view images. I am reltively new to php.
  5. Hi, Quick question how do a hyperlink back?Normally you would Hyperlink link thisWebsite/finalversion/Images/Resized/image1.jpg This would get you to the Resized folder from the Website folderHow do you hyperlink backwards???say to get from the Resized folder back to the Website folder?I have some word docs I need to link back to but there backwards, So I'm a bit confused :)Callum
  6. Callum

    script does nothing :S

    EDIT: Moved on, starting to get the hang of it.EDIT 2: Does every MYSQL database need a primary key??, if so is it possible to set a primary key without deleting the table ???(table is empty at the moment but I don't want to delete it)
  7. Callum

    script does nothing :S

    This is on my own test host using Wampserver2 though :S. if it helps im running MYSQL 5.0.51bEDIT: Uploaded the script to my online host and I get exactly the same error.Is both my local test server and my online host blocking me from creating DB's? Or is my code incorrect :S
  8. Callum

    script does nothing :S

    thanks, the new error message is.Fatal error: Call to undefined function mysql_create_db() in C:\wamp\www\newfolder\proj1\create_db.php on line 8I do not understand? :S i thought that was a defined function :S
  9. Hi, I would be gratefull if someone could tell me why this script doesn't actually load. All that happens is that the browser loads a blank page. Can someone tell me where I've gone wrong. Thanks Callum <!-- Create db form --><?php $conn = @mysql_connect( "localhost", "root", "" ) or die( "Could not connect to MySQL" );$rs1 = @mysql_create_db( $_REQUEST['db'] );$rs2= @mysql_list_dbs($conn);$list = "";for( $row=0; $row < mysql_num_rows( $rs2 ); $row++ ){ $list .= mysql_tablename( $rs2, $row ) . " | "; } ?><html> <head> <title>Admin Tools</title> </head> <body> <form action="<?php echo( $_SERVER['PHP_SELF'] ); ?> " method="post"> Current databases: <?php echo( $list ); ?> <hr> Name:<input type = "text" name = "db"> <input type = "submit" value = "Create database"> </form> </body></html>
  10. Callum

    PHP mail error

    I can't believe I missed the post error lolbut more importantlyhow do I get the variables to display on different lines?Currently it's this $msg = $var1 . $var2 . $var3 . $var4 . $var5; But as you can imagine, the email is impossible to read with all the variables side by sideI tired this, but it just came up with errors not allowing the "\" character $msg = $var1 . \n $var2 . \n $var3 . \n $var4 . \n $var5; Could someone tell me how to display a new varialbe on a new line?EDIT: I'm relatively new to PHP so don't be too harsh :/
  11. Callum

    PHP mail error

    Hi when ever I submit the form, I recieve the email but the data in the $msg varible is not sent. It just sends blank. Can someone show me whats wrong?here is the form <form action="payment.php" method="POST">Name: <input type="text" name="name" size="20"/>Email: <input type="text" name="email" size="20"/><br>Site title: <input type="text" name="title" size="20" />No. of pages <input type="text" name="pages" size="13" /><br>Site topic: <input type="text" name="topic" size="20" /><br><span><p>Images</p></span><input type="radio" name="images" value="have"> I have my own web images<br><input type="radio" name="images" value="need"> I want Daemon Studios to make me Images<br>Other details:<br /><textarea name="other" cols="40" rows="4"></textarea><br><p>We will contact you shortly for further details about your design. <br> Click Purchase to continue to the payment page.</p><input type="submit" name="submit" value="Purchase" /></form> here is the php code <?php $name = $POST['name']; $email = $POST['email'];$sitetitle = $POST['title'];$npages = $POST['pages'];$sitetopic = $POST['topic'];$images = $POST['images'];$other = $POST['other'];$to = "tired_of_being_hacked@hotmail.co.uk";$re = "Web Site order";$msg = $name;$email;$sitetitle;$npages;$sitetopic;$images;$other;mail($to, $re, $msg);?> Thanks Callum
  12. Callum

    setup rant

    Having finally got PHP, Apache and MySQL installed I am hugely relieved but why the ###### is it so damm hard to set up Apache and PHP? It took me ages to fail at setting it up. All I can say is thank god for Wampserver 2. (not sure if im allowed to mention names). How was your experiance setting it up?
  13. Is it possible to connect a Microsoft Access database to your website using php?I know it can be done using asp, but just wondering if you could do it with PHP 5. If so can you use post to get data from the user into the precreated database.EDIT: aslo if it was possible would I store the database file on the host :S or my pc? (unclear on how it works)Callum
  14. Had a look at that, but it's not exactly begginer friendly and the sheer amount of php on the page is daunting unlike the tutorials on the main site.just my 2c
  15. Callum

    white on black

    Black on White is ok as long as its not in huge quantities. e.g. no 600 x 600px black squares on a white backer. However red on white does strain my eyes and I think it is a bad design choice.
×
×
  • Create New...