Jump to content

wisewood

Members
  • Posts

    226
  • Joined

  • Last visited

    Never

About wisewood

  • Birthday 01/14/1980

Contact Methods

  • Website URL
    http://www.wisewood.org

Profile Information

  • Gender
    Not Telling
  • Location
    Rotherham, England

wisewood's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The email address has been used to register for receiving email exam results next week. Too late to change the email address with the exam people, so needs to be set up and in place as soon as possible just so she can read the emails.
  2. She uses an email account that i set up for her on my domain, no webmail access to her account only, the webmail logs into the master account. Can i have some help now please lol I have managed to figure out enough of the IMAP stuff to get a connection established, listing the emails in the inbox, with a link to a page to display the content of the message - but i cant get my head around the imap_body / imap_fetchbody to display the message. I have passed the UID from one page to another ($_GET[uid]) and that variable passes over properly - and have used imap_msgno to convert it into the message number, but still need to figure out how to display the message content.
  3. I'm after a quick and easy way to read the content of a pop3 mailbox. I don't need anything fancy, just a way to list the date/sender/title, and then when selected, display the content of the message. I'd also like the mail to remain on the server to be downloaded properly into a mail client later. It doesnt even need to be capable of sending email at the moment - just reading it. It's so that a friend of mine can check her email online to find out her exam result next week while on holiday. Thanks.
  4. SOLVED.  Just realised i asked before reading the manual :D
  5. Hi all, Can anyone point me in the right direction of a method to list the names of mySQL databases on localhost. Thanks.
  6. first you need to make sure you can echo the results of your query onto the page. Once you have that right, you will be able to do what you want.
  7. // relational_table id SoftwareID ComputerID "select * from relational_table where SoftwareID = 7" This will give you all the computer id's which have the software installed which has a softwareID of 7. If you wanted to know what was installed on a particular computer you could then do this; "select * from relational_table where ComputerID = 3" So you end up with the SoftwareID's of all the software installed onto computer number 3. Hope this makes sense.
  8. Create a mysql (or other) database with a simple table in it, something like this id - Integer (primary key) day - text month - text year - text file - text Each time a visitor loads your page, have it query the database table to see if there is an entry for todays day month and year. if there is, display the file specified in the database, otherwise select one at random, and insert the name of it into the database to be found by the next user.
  9. I've got a calendar script that i picked up online somewhere, it is a really basic calendar, but its got loads of complicated code in it, and the maths really messed with my head for a while. I would say, without comparing the code, that you are probably heading along the right lines.
  10. Should get you started. <?php if!($_POST) { echo "<form method=post action=$PHP_SELF"; echo "<input type=text name=cd_key>"; echo "<input type=submit value=submit"; echo "</form"; } else { echo "The cd_key you input was: $_POST[cd_key]"; } ?>
  11. I've had problems in the past similar to this, and often the area where it tells you to look for the problem is wrong when its an unexpected }. You'd need to examine all of your code carefully and check to see if you've got any un-necessary or out of place.
  12. you should have this: $id = $row['id']; Although that wont work because you havent set the $row[] array anywhere. What you should do is ditch the whole $id = row['id']; and leave it out, as you have already specified the $id variable above.
  13. use the strlen() function to determin how many characters are in your $count variable... and append the correct number of 0's to the $count variable afterwards. ie. $count_len = strlen($count); if($count_len==1){$zero="000";} if($count_len==2){$zero="00";} if($count_len==3){$zero="0";} if($count_len==4){$zero="";} echo "filename$zero$count.jpg";
  14. in very basic terms, as i'm a bit pressed for time. have your html form processed by a php script which compares the username and password to records in the database, if there is a match for that username and password combination, set the session variable for the username to the same as the username they input onto the form. eg. $_SESSION[username] = $_POST[username]; Once this is done, you just add something like this to the pages you want to make available only to people who are logged in. if(!$_SESSION[username]) { echo "You're an imposter!!!"; } else { // Your page code here } That will give you a simple login system. You can fill it out later with authorisation levels and stuff so you can show some content to "admin" and less to "users" etc.
  15. I have a string, which for example, might be this; $string = "The quick brown fox jumped over the lazy dog"; I want a way to count, for example, how many times the letter "o" appears in that string. Can someone nidge me in the right direction... my brain isnt working today. SOLVED. Engaged my brain and used the substr_count() function.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.