Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 3 of 3 FirstFirst 123
Results 31 to 36 of 36
  1. #31
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,090
    Thanks
    51
    Thanked 506 Times in 493 Posts
    Quote Originally Posted by Ctechinfo View Post
    @tango force - Thanks for the advice and book suggestion. Unfortunately being unemployed for just over a month now I am running on financial fumes so buying a book is not an option right now.
    It was Andrew who gave you the recommendation. I simply showed the book I have and was not happy with. Personally I learned more from the internet than the book. I still have it on the bookshelf but I never bother looking at it.

    Quote Originally Posted by Ctechinfo View Post
    As far as coding, there are aspects that are over my head so I tend to tweak code til it breaks and I fix it or replace it. The absolute basics of PHP I have picked up along the way (i.e. basic echos, file includes, if/else/elseif statements). Arrays I have a concept what they are and what they do but setting them up myself I am lost.
    An array is purely a list of things. Thats it. When you write your shopping list on a bit of paper, that is an array. For some reason though, because computer people liked to be different and sound clever, they decided to use a new word instead of list and that word was array.

    How to set one up? - Easy:
    $Array[] = 'item1';
    $Array[] = 'item2';

    Thats it. You just repeat the $Array bit with square brackets and assign a value to it. It really is that easy. There is a more complex way too (which I rarely use but it's handy if you need to define the index key yourself):
    $Array = array('one' => 'item1', '2' => 'item2');

    There is also another EASY way to manually define your keys (which makes the above method look stupid):
    $Array['one'] = 'item1';
    $Array['2'] = 'item2';

    Quote Originally Posted by Ctechinfo View Post
    As far as PHP/MySQL integration I understand the absolute basics in that I know there are different options for the database fields but as far as out puting to pages if I can manage to get it to work it does so pretty half assed.
    Thats only because you're not confident in yourself and your ability. If you spend more time with php and mysql getting to know them both and getting better at what you're doing, you will be a lot more positive about what you're doing. Trust me, if I can write php then so can you. It really isn't that hard you just need to put in a bit of effort - we can't download the knowledge into your brain to save you the hassle unfortunately so a bit of trial and error is called for to learn it the old fashioned way.

    What you need to remember is that PHP is basically a text manipulation program. It's main purpose is to manipulate text that you output as html and thats it. No need for complex graphics handling, redrawing, image manipulation etc, you just modify text as needed and use a database to get and store things - that really is it!
    Last edited by tangoforce; 12-29-2012 at 01:49 AM.
    My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!

  2. #32
    Regular Coder
    Join Date
    Sep 2012
    Posts
    100
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Don't waste the filesystem resources with ~user/user_name. Instead, create a common location (preferably above public_html so it cannot be accessed directly), and use the db to govern it. The filenames can be created with any uniqueness to them; you simply link them to the db to display as you see fit. Case can be controlled with PHP functions such as strtolower/upper, and ucfirst for examples. SQL can also change the case (LOWER and UPPER for examples).
    I am assuming by above public_html means:
    /public_html/
    /uploads/
    /www/

    So I went ahead and created an uploads folder outside public_html how would I go about linking to it? Searched google and came up with http://www.bluehostforum.com/showthr...ve-public_html

    I am assuming I am on a shared server, but the info provided in the bluehost link is a bit different then my case.. The way I have FTP Commander setup it goes to the public_html folder but I can back it up to see other folders like above. but I cannot access /home/ just figured I would throw that in for clarity.

    Bluehost is my webhost. And if I click the public_html folder it brings me to my main domain where the test site I am working for this project is in a series of folders... (i.e. /projects/project_name/)
    Last edited by Ctechinfo; 12-29-2012 at 03:20 AM.

  3. #33
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Just to clarify that PHP for the World Wide Web (mentioned by tangoforce) and PHP & MySQL for Dynamic Web Sites are two different books by the same author. I recall that the 2nd book doesn't have the flaws (omissions) mentioned by tangoforce although, I suspect, there is an amount of material that is copied between the two books. In particular, security is discussed throughout including a dedicated chapter, and form-submissions are verified with a hidden input.

    I realise that this is no longer of interest to the OP, but just wanted to clarify. Andy.
    Last edited by AndrewGSW; 12-29-2012 at 04:14 PM.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  4. Users who have thanked AndrewGSW for this post:

    tangoforce (12-29-2012)

  5. #34
    Regular Coder
    Join Date
    Sep 2012
    Posts
    100
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by AndrewGSW View Post
    Just to clarify that PHP for the World Wide Web (mentioned by tangoforce) and PHP & MySQL for Dynamic Web Sites are two different books by the same author. I recall that the 2nd book doesn't have the flaws (omissions) mentioned by tangoforce although, I suspect, there is an amount of material that is copied between the two books.

    I realise that this is no longer of interest to the OP, but just wanted to clarify. Andy.
    The interest is there but can't afford books right now.

  6. #35
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,090
    Thanks
    51
    Thanked 506 Times in 493 Posts
    Quote Originally Posted by AndrewGSW View Post
    Just to clarify that PHP for the World Wide Web (mentioned by tangoforce) and PHP & MySQL for Dynamic Web Sites are two different books by the same author. I recall that the 2nd book doesn't have the flaws (omissions) mentioned by tangoforce although, I suspect, there is an amount of material that is copied between the two books. In particular, security is discussed throughout including a dedicated chapter, and form-submissions are verified with a hidden input.

    I realise that this is no longer of interest to the OP, but just wanted to clarify. Andy.
    I am shocked to hear that to be honest! I guess he must have finally learned proper PHP before releasing another book lol.
    My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!

  7. #36
    Regular Coder
    Join Date
    Sep 2012
    Posts
    100
    Thanks
    5
    Thanked 3 Times in 3 Posts
    This project is still on the table but has been temporarily abandoned.. My mother has other commitments that sidelined the project and so I am haulting the work on this project site for now at least as a priority... I have a few other projects to attend to (the ctechinfo project which has been discussed in another thread, another site I started, and a project page that I am putting together for my photography)..


 
Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •