Jump to content

deekay

Member
  • Posts

    18
  • Joined

  • Last visited

Posts posted by deekay

  1. Yeah, me too! I'm in my final year, and I have to go back and program a mobile app in Java. Last time I did some Java was three years ago, and that wasn't very much.

     

    Also, I'm doing an internship where the company uses ColdFusion instead of PHP for their websites. They told me CF also uses Java libraries, or Java-something anyway. So I think those vids would come in handy:)

  2. Yeah I'm following those tutorials, the one of Paul Hegharty for creating iPhone apps. It's pretty good. Even though it's a beginners course of iOS, they do assume you have a good knowledge of OOP and at least a good understanding of at least one OOP language like Java or any of the C's.

     

    Even though I made a simple calculator app in the first videos. I still don't really comprehend the Objective C language itself. A lot of it Xcode already does for you, especially with Interface Builder and the library is also pretty vast.

     

    What I miss from those vids is a very clear, almost dummy proof, explanation of Objective C. And the buildup from basic vids to intermediate vids.

     

    In short, how you guys are doing with the PHP vids, which was very clear to me and I already built some sites with PHP since then.

  3. Hey Guys,

     

    I was wondering if you are going to come with some Objective C/Xcode tutorials. I know you guys are focussing on HTML5, and the tutorials are great and I am going to build some HTML5 sites at my internship. But I really want to build an iOS app. And considering the huge success of iPhones and iPads, I think there's a lot of interest in Objective C tutorials.

     

    I already started, and for me it's a bit harder than building a site with HTML/CSS/PHP. They are really strict with MVC. Would love if you guys came out with some vids!

     

    Regards,

     

    deekay

  4. Hi guys,

     

    This is probably a newbie question, but I couldn't find it on Google, so I'll try here. I've been watching lots of tutorials here lately and many times I see the person of the tutorial select some text in their text editor, and then move it with tab. So I want to do that too, cuz it would speed up my workflow a lot. I just can't figure it out. It's not command-tab, or command-shift tab, or all the other buttons.

     

    Can someone please help me out?

     

    I am using mac os x lion with BBEdit.

  5. My host doesnt support MySQLi, only MySQL. In what way do I have to the change the code, so it will work with MySQL? So far I copy/pasted all your files to my host and I only get this output:

     

    View Records

     

    View All | View Paginated

     

    Error: Add New Record

     

    So there is some kind of error.

     

    But on my localhost I get this, just like in your video:

     

    View Records

     

    View All | View Paginated

     

    ID First Name Last Name

    1 Bob Baker Edit Delete

    2 Tim Thomas Edit Delete

    3 Rachel Roberts Edit Delete

    4 Sam Smith Edit Delete

    Add New Record

     

    I just copy/pasted the text, but the table appears and the buttons are in blue in the browser.

     

    My host does have PHPmyAdmin and I also made the same database 'records' with table 'players'. So that's not the problem. Another difference is that my local host is running Xamp with PHP5.3.1 and my host has PHP5.2.4. I don't know if that matters.

  6. The code is on this vid: "PHP and MySQL: SQL Select Statements with PHP" at the PHP tutorial vids. And yes I overlooked the echo statement, cuz later on he does add it in a separate php block. Well, like I said, I'm a PHP noob :P So I have to pay attention to the details ;)

  7. Ok. So this is the query I ran. I dunno what happened, but besides the echo statement I get this:

     

    Connected succesfully

     

     

    Fatal error: Function name must be a string in /Applications/XAMPP/xamppfiles/htdocs/xampkiller/database.php on line 20

     

    But I attached a screenshot where you see my code on the left on Dreamweaver and on the right a screenshot from the vid. But call me crazy, but I really don't see a difference. But in the vid the code works. And if you look at line 20 it's the same as on the vid, so I don't understand.

    post-29443-009314600 1281992103_thumb.png

  8. Wow, that's really strange.

     

    Ok, so this is what's happening:

     

    With the code I showed you guys, I got this from both Firefox, Safari and Chrome:

     

    Connected succesfully

     

    When i do a typo with 'localhost' like 'localhaost' I get this:

     

    Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'localhaost' (1) in /Applications/XAMPP/xamppfiles/htdocs/xampkiller/database.php on line 9

    Could not connect: Unknown MySQL server host 'localhaost' (1)

     

    BUT when I do a typo with the user 'root', like 'raoot' I get this:

     

    Connected succesfully

     

    And that's wrong, because there should be an error message with this.

     

    And last, when I put a password I get the following:

     

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /Applications/XAMPP/xamppfiles/htdocs/xampkiller/database.php on line 9

    Could not connect: Access denied for user 'root'@'localhost' (using password: YES)

     

    So it's responding well when the localhost or the password is typed wrong, but not with the user.

     

    And when I a run a query I get this again:

     

    b]Connected succesfully

    [/b]

     

    And only that. So that's really strange. So PHP and MySQL are definitely not working well with each other.

     

    I downloaded the Xampp a couple of days ago and followed all the instructions. With the other PHP tutorials where I only worked with PHP it worked just fine. Working with MySQL on PHPmyAdmin works fine as well. The database is created with the table and the fields are there. I did everything as instructed, but for some reason this just doesn't work.

  9. Yep that's the code! To double check I attached a screenshot from my code on Dreamweaver and one from the vid and there is no difference!

     

    Xampp is running (Apache, MySQL, FTP) and the php.ini file is located where it should be ../Aplications/XAMPP/Xamppfiles/etc/php.ini

     

    I found this on another forum where a person had a similar problem:

     

    "Yes, it means that the PHP MySQL extension is not installed/enabled. Note that as of PHP5.0 the MySQL extension is not installed by default (being replaced by the MySQLi extension). If you want/need to get the original extension to work, check out the info at:

     

    Getting PHP5 to work with MySQL"

     

    The last line was a link, but it doesnt work :(

     

    So now I'm trying to find out how to install the PHP MySQL extension. But so far I can't find anything...

    post-29443-027698700 1281988802_thumb.png

    post-29443-001549600 1281988815_thumb.png

  10. You need to double check your code. You have apostrophes where you should have quotes.

     

    I have replaced all the single quotes with double quotes and it's the same thing. By the way, I did all the code exactly the same as the video tutorial I was following and that one was using single quotes too. But on that video the connection was also working.

     

    The video tutorials is of this site: "PHP and MySQL: Connecting to MySQL with PHP: Part 3"

  11. Hi thanks for your reply!

    Actually I did: I created a database in PHPmyadmin in Xampp called 'killer' with the table 'people' with the fields 'name' and 'id'.

     

    so I added this line below the previous code:

     

    mysql_select_db('killer') or die(mysql_error());;

     

    But it is the exact same problem. If i put 'filler' instead of 'killer' I get no error message.

     

    I've done some more research and it could be that the PHP MySQL extension is not installed/enabled. But how do I install that extension and where?

  12. Hi,

     

    Im a PHP noob. Have been following the tutorials and everything went great up to this point:

     

    Right now i want to connect my localhost MySQL database with PHP with the following:

     

    <?php

     

    $my_connection = mysql_connect('localhost','root','');

    if (!$my_connection) {

    die('Could not connect: '. mysql_error());

     

     

    }

    echo 'Connected succesfully' . '<br><br>';

     

    mysql_close($my_connection);

     

     

    ?>

     

    However if i change the user into 'roaot', there is no error message. When I change the localhost or put a password I do get errormessages, but not when I change the user. But it's definitely not connected to the database, because I my queries don't work.

     

    I've been searching in many forums but I can't find anything. The only thing I could find is that the php_mysql.dll was not loaded in the php.ini, but that is Windows related, I'm working on a Mac with Xampp.

     

    Hope you guys can help me out.

×
×
  • Create New...