User Profile

Collapse

Profile Sidebar

Collapse
whiteyoh
whiteyoh
Last Activity: Jan 30 '10, 06:10 PM
Joined: Jun 25 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • whiteyoh
    started a topic Java and access database user accounts
    in Java

    Java and access database user accounts

    Hi All,

    I have just started learning java. I have a good understanding of UML 2. What i am trying to do is to make a small user authentication applet.

    I have completed all of the relevant connection requirements via administration in XP but i just need a little helping hand to nudge me along.

    The following script works fine, but I need some direction as to how to modify it to become an applet and to...
    See more | Go to post

  • hi all,

    i have been following this thread with much interest, and it works fine, except for one thing.......

    when downloading it prefixes the file with .html. so for example, a fill downloads as mymusic.mp3.htm l

    how can i get it to scrap the HTML bit?
    See more | Go to post

    Leave a comment:


  • whiteyoh
    started a topic Download an MP3
    in PHP

    Download an MP3

    How can i allow a click to download an MP3?

    The usual Href line of code just gives me an error message
    See more | Go to post

  • im guessing that your pages are protected in some way?

    if you do wouldn't it just require you to use the include statement? using it after the page security would mean access control would have to be passed before being able to see that page
    See more | Go to post

    Leave a comment:


  • whiteyoh
    started a topic creating a link within an echo statement
    in PHP

    creating a link within an echo statement

    hi all,

    im trying to get the following line to display a link to a URL which is stored in a MySql database, but its not!

    $djname $genre and $biography all work fine..........w hat have i missed?

    Code:
      
     echo "<p>$djname $genre $biography <a href='$url'> Profile</a>";
    See more | Go to post

  • whiteyoh
    replied to restrict user access on certain pages
    in PHP
    I had this problem. I got over it by using 2 sessions (User and Admin). Each page that contains the session at the top checks to see what type of session the user is in and either allows, or header redirects to the index.

    Another way could be to have a separate section. for example

    yourdomain.com

    and
    yourdomain.com/admin

    The admin index would be exactly the same, just rename...
    See more | Go to post

    Leave a comment:


  • whiteyoh
    replied to Specific selection of records
    in PHP
    right thats cool. I use that bit already. And i am using mysql

    Now lets say i have 3 seperate div tags, and each div will display 1 record, how can i say

    <div> Display record 1 </div>

    <div> Display record 2 </div>

    <div> Display record 3 </div>

    Thanks again
    See more | Go to post

    Leave a comment:


  • whiteyoh
    started a topic Specific selection of records
    in PHP

    Specific selection of records

    Hi,

    I have a script that can select a number of random records to display but what im after is a snippet of code on the first selection will choose a random record, but on the second selection will again choose a random record, but will discount the record that has already been picked. Basically so the same record cant be displayed twice.

    I hope that makes sense.

    What i was thinking may be a solution...
    See more | Go to post

  • whiteyoh
    replied to Display last 4 entries
    in PHP
    fantastic, thank you very much
    See more | Go to post

    Leave a comment:


  • whiteyoh
    replied to Display last 4 entries
    in PHP
    ive been tinkering all morning and it just wont get past displaying more than 1 entry!
    See more | Go to post

    Leave a comment:


  • whiteyoh
    replied to Display last 4 entries
    in PHP
    Hi All,

    Thanks for the advice,

    Still no joy as it only displays 1.

    I tried both ideas separately.

    Any more?
    See more | Go to post

    Leave a comment:


  • whiteyoh
    replied to Display last 4 entries
    in PHP
    well having mulled over this for a while, i came up with the following solution BUT i need it to display 4 records, and not just one.

    Any ideas anybody?

    Thanks

    Code:
    <?php 
    $dbh=mysql_connect ("localhost", "dbase", "password") or die 
    ('I cannot connect to the database because: ' . mysql_error()); 
    mysql_select_db ("something");
    ...
    See more | Go to post

    Leave a comment:


  • whiteyoh
    started a topic Display last 4 entries
    in PHP

    Display last 4 entries

    Hi,

    I have a search box which allows you to look up something and display. What i cant figure out is how to amend the script to display, for example, 5 random stories.

    Any help is appreciate. The code used to display the search is below

    Code:
    // The basic SELECT statement
    $select = 'SELECT DISTINCT id, joketext';
    $from   = ' FROM joke';
    $where  = ' WHERE 1=1';
    
    $aid
    ...
    See more | Go to post
No activity results to display
Show More
Working...