Search found 10 matches

by Tryah85
Tue Nov 13, 2012 10:18 pm
Forum: mySQL & php coding
Topic: Use PDO when scripting in PHP?
Replies: 2
Views: 1012

Re: Use PDO when scripting in PHP?

I discovered a few things today. For starters the mysqld.sock file is meta data of how databases are read locally on the machine (that is not readable as sudo in gedit or pico btw). There is an option to use TCP/IP (in my.cnf LAMP/my.ini XAMP)... so the fact using TCP/IP allows a developer to have a...
by Tryah85
Tue Nov 13, 2012 12:46 am
Forum: mySQL & php coding
Topic: Use PDO when scripting in PHP?
Replies: 2
Views: 1012

Use PDO when scripting in PHP?

:? PDO that connects, but INSERT(ing) data does not work: <?php include 'include/connect.php'; try { $dbh = new PDO("mysql:host=$hostname;dbname=animals", $username, $password); /*** echo a message saying we have connected ***/ echo 'Connected to database<br />'; /*** INSERT data ***/ $count = $dbh-...
by Tryah85
Tue Nov 13, 2012 12:08 am
Forum: PHP coding => General
Topic: Detect Android/iPhone browsers
Replies: 6
Views: 1528

Re: Detect Android/iPhone browsers

I am still planning on exicuting this code on my site hopefully soon. Sorry for the delay. :oops:
by Tryah85
Mon Oct 01, 2012 5:49 pm
Forum: PHP coding => General
Topic: $result = mysql_query($query); 2nd parameter?
Replies: 2
Views: 1758

Re: $result = mysql_query($query); 2nd parameter?

Thank You!! :) It works! well displaying the information! I cannot thank you enough, I was stressing over this just thinking about it.


I committed out:


//$query = "SELECT * FROM people

then used the code above and poof! It worked!
by Tryah85
Sun Sep 30, 2012 11:45 pm
Forum: PHP coding => General
Topic: Best editor for PHP
Replies: 210
Views: 174522

Re: Best editor for PHP

adobe dreamweaver cs6 has a great autocomplete feature. For someone just getting there hands dirty in PHP, I approve, but it's expensive! Buy student edition :D
by Tryah85
Sun Sep 30, 2012 11:14 pm
Forum: PHP coding => General
Topic: $result = mysql_query($query); 2nd parameter?
Replies: 2
Views: 1758

$result = mysql_query($query); 2nd parameter?

I am starting a basic PHP system that can display information from a mysql database to fully understand PHP. I found a basic tutorial on YouTube to create one... I have gotten the code to connect to the localized server by creating a record, but nothing displays in the browser... I can see a record ...
by Tryah85
Fri Sep 28, 2012 11:34 pm
Forum: mySQL & php coding
Topic: PHP retrieving data from database.
Replies: 1
Views: 941

PHP retrieving data from database.

I am looking at an example database tutorial I found about how a simple C.R.U.D system works with PHP/MYSQL database. I have gotten it to work! However I am getting a little lost in the php manual on php.net about the super global variable $_SERVER['PHP_SELF']. It states "is an array containing info...
by Tryah85
Thu Sep 27, 2012 8:20 pm
Forum: PHP coding => General
Topic: Detect Android/iPhone browsers
Replies: 6
Views: 1528

Re: Detect Android/iPhone browsers

Thank You! I am still working on this. I will keep an update of how this turns out.
by Tryah85
Wed May 30, 2012 8:52 pm
Forum: PHP coding => General
Topic: Detect Android/iPhone browsers
Replies: 6
Views: 1528

Re: Detect Android/iPhone browsers

:D Thank you so much for your expertise!!! I will work on this and let you how it turns out... Okay this may seem a dumb, but I want to make sure I would put the code in the right area. Near the end should it be like this: { // these are less common, and might not be worth checking $isMobile = true;...
by Tryah85
Wed May 30, 2012 12:51 am
Forum: PHP coding => General
Topic: Detect Android/iPhone browsers
Replies: 6
Views: 1528

Detect Android/iPhone browsers

Hey everyone, I am currently working on my portfolio website toddhartsfield.com to be fully responsive. Everything seems to work with iPhone and Android fine, but I am annoyed that when I go to my works page on a mobile device the images of my works are bigger than the devices screen. I want to make...