Search results

  1. A

    Don't know the official name, dispersing comments upon multiple pages

    So I have a guest book page which allows users to add comments to my page. I want to display the 50 newest comments which would be With ID's ordered by DESC. I got that much done but if I have 51 comments I want that one oldest one to be on a new page with a little number or arrow at the bottom...
  2. A

    Help inserting Current date into Database

    Thank you! It worked, I tried doing that one time but I didn't know tot take out the $Date. Thanks for helping me. I may be new to this but we all need to start somewhere.
  3. A

    Help inserting Current date into Database

    I figured out most of what you said, the only thing I still cannot do is format it so SQL can read it. If I changed the Date field in the data base to varchar(10) and just input strings that look like 2013-12-5 would that work? The updated code I have looks like <?php $today = date("Y-m-d")...
  4. A

    Help inserting Current date into Database

    I know this is probably something very easy for most of you but I am learning PHP/PDO and trying to get a simple guest book working. The problem I am having is that I am not getting my date to insert into the database as I want it too. Basically it is just an html form that has name and a...
  5. A

    Displaying WordPress titles on home page (not a WordPress page)

    Thank you so much! It worked the new code I have is: <?php $db = new PDO('mysql:host=localhost;dbname=test_wp166;charset=utf8', 'test_wp7474', '*****'); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); foreach($db->query('SELECT...
  6. A

    Displaying WordPress titles on home page (not a WordPress page)

    I built a website using basic html, JavaScript and Jquery and wanted to add my recent blog posts to the home page without having to manually editing the source code. I am working with a test php page that I have gotten to work with displaying the titles but I don't want to display EVERY title...
  7. A

    Mysql Host Name from third party

    I was actually able to get something put together that worked. I did a little more digging around on the forum and found some helpful topics that solved my problem.
  8. A

    Programming, isn't it fun...

    Programming, isn't it fun...
  9. A

    Mysql Host Name from third party

    What if you have paid for your hosting though? I am trying to write a file that will pull information from a database that will hold scores, It's part of an interactive game that we built on the website using JS and Jquery. The main problem is I can not get any sort of PHP script to connect to...
Top