473,473 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP Learning suggestions...

Hello everyone.

I have been given the task of working with PHP and MySQL at my company,
to development some methods for our future use. The problem is, I have
very little experience with PHP, and I need to figure out a way to
quickly work with PHP and MySQL.

Here is what im going to be working with.

I need to develop a PHP web page, that will contact the MySQL database
on the server and return specific pieces of information; rows, tables
etc. However, i'm not sure how to get started with this.

I know some basics with PHP (I do use Perl for Sys Admin, so some of the
concepts are similar).

But, can anyone recommend some books, links, tutorials etc. that can
help me get started with this project?

It seems daunting, but I think I just need to get started with it, and
it will eventually be easy, with time.

I appreciate it

Jas
Jul 17 '05 #1
8 1846
> I know some basics with PHP (I do use Perl for Sys Admin, so some of the
concepts are similar).


Well, you are ok then... you know a little PHP and you use Perl. If you are
strong on Perl you will have no problem with PHP.
I can't recommend a PHP book to you ask I have two and they are not good to
me... but that is just me because I only have on programming book I actually
like and feel was well written for a programmer that is not a novice.

My suggestion is get the PHP reference book. It gives you all the PHP
features, commands, and even some config info. It is pretty good... Not the
end all be all, but good for general use. I do suggest get you get a book
like one of those cookbook series. I don't know if there is a PHP offering
there, but check it out. I only say this because I think project based
learning is good for you at this point.

My best advice, go to sourceforge or search on the net for free code.
Install something like the Web Based phpMyAdmin . Go into the code and pick
it apart. Change something, break it, fix it.
This is the only way to actually dive in and learn it. I guarantee this
method is better than reading books. I promise.

Good luck to you.

--
Wil Moore III
www.digitallysmooth.com
Jul 17 '05 #2
Jason wrote:
Hello everyone.
Hi Jason.

(snip) I need to develop a PHP web page, that will contact the MySQL database
on the server and return specific pieces of information; rows, tables
etc. However, i'm not sure how to get started with this.
Is this for a internet/intranet application?
Do you have a webserver running?
PHP and MySQL properly installed and configured?
I know some basics with PHP (I do use Perl for Sys Admin, so some of the
concepts are similar).
You can do Sys Admin stuff with PHP too :)

Beware with operator precedence ... the "or" and "||" (and maybe "&&")
are different from the Perl ones.
But, can anyone recommend some books, links, tutorials etc. that can
help me get started with this project?
http://www.php.net/

If you need to check a function there's a real nice shortcut for its
page: just type the function name after that URL above, like this

http://www.php.net/mysql_connect
It seems daunting, but I think I just need to get started with it, and
it will eventually be easy, with time.


I think so to :)

Here's a short script to list all users defined for your MySQL
installation:

========
<html>
<head>
<title>User's List</title>
</head>
<body>
<p>User's List</p>
<table border="1">
<?php

define('DB_HOST', 'localhost');
define('DB_USER', 'username');
define('DB_PASS', 'password');

// connect to the database server
$conn = mysql_connect(DB_HOST, DB_USER, DB_PASS) or die(mysql_error());

// execute query
$sql = 'select user, host from mysql.user';
$result = mysql_query($sql) or die(mysql_error());

// print results
while ($row = mysql_fetch_row($result)) {
echo '<tr><td>', $row[0], '</td><td>', $row[1], "</td></tr>\n";
}

// free resources
mysql_free_result($result) or die(mysql_error());
mysql_close($conn) or die(mysql_error());

?>
</table>
</body>
</html>
========
--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #3
On Thu, 27 May 2004 11:44:01 -0700, Jason
<jw*******@courtesymortgage.com> wrote:
I know some basics with PHP (I do use Perl for Sys Admin, so some of the
concepts are similar).

But, can anyone recommend some books, links, tutorials etc. that can
help me get started with this project?


There is a pretty good book from O'Reilly that covers both PHP and
MySQL - from memory I think it has a duck billed platypus on the
cover.

I used it to get started, and used the MySQL and PHP online
documentation heavily too. The PHP online stuff is great actually
because of the user comments.
Jul 17 '05 #4
"Jason" <jw*******@courtesymortgage.com> wrote in message
news:10*************@corp.supernews.com...
Hello everyone.

I have been given the task of working with PHP and MySQL at my company,
to development some methods for our future use. The problem is, I have
very little experience with PHP, and I need to figure out a way to
quickly work with PHP and MySQL.

Here is what im going to be working with.

I need to develop a PHP web page, that will contact the MySQL database
on the server and return specific pieces of information; rows, tables
etc. However, i'm not sure how to get started with this.

I know some basics with PHP (I do use Perl for Sys Admin, so some of the
concepts are similar).

But, can anyone recommend some books, links, tutorials etc. that can
help me get started with this project?

It seems daunting, but I think I just need to get started with it, and
it will eventually be easy, with time.

I appreciate it

Jas


A couple books I read to get myself started with PHP/MySQL:

SAMS Teach Yourself PHP in 24 Hours, by Matt Zandstra
(http://www.samspublishing.com/title/0672326191)
SAMS Teach Yourself MySQL in 24 Hours, by Julie Meloni
(http://www.samspublishing.com/title/0672323494)

They give you a good foundation in PHP/MySQL, definitely enough to get you
started with what you're doing.

- JP
Jul 17 '05 #5
On Thu, 27 May 2004 11:44:01 -0700, Jason
<jw*******@courtesymortgage.com> stated wide-eyed, with arms akimbo:
Hello everyone.

I have been given the task of working with PHP and MySQL at my company,
to development some methods for our future use. The problem is, I have
very little experience with PHP, and I need to figure out a way to
quickly work with PHP and MySQL.

Here is what im going to be working with.

I need to develop a PHP web page, that will contact the MySQL database
on the server and return specific pieces of information; rows, tables
etc. However, i'm not sure how to get started with this.

I know some basics with PHP (I do use Perl for Sys Admin, so some of the
concepts are similar).

But, can anyone recommend some books, links, tutorials etc. that can
help me get started with this project?
Any book by Julie Meloni. She has a good, clear, easygoing style.
I started out with her first book, "PHP Essentials". It's in its
second edition now. $24.50 here:
http://www.bookpool.com/.x/7wx7a43mt...PHP+essentials

I'm now starting her "SAMS Teach Yourself PHP, MySQL, and Apache in
24 Hours" in my spare time.

It seems daunting, but I think I just need to get started with it, and
it will eventually be easy, with time.


It is, then you get started and it gets easier...Until it turns 10pm
and your project is promised the next day and the very last session of
code _doesn't_quite_work_... DAMHIKT ;)

--
Life's a Frisbee: When you die, your soul goes up on the roof.
----
http://diversify.com Comprehensive Website Development

Jul 17 '05 #6
On Thu, 27 May 2004 11:44:01 -0700 (more or less), Jason
<jw*******@courtesymortgage.com> wrote:
Hello everyone.

I have been given the task of working with PHP and MySQL at my company,
to development some methods for our future use. The problem is, I have
very little experience with PHP, and I need to figure out a way to
quickly work with PHP and MySQL.

Here is what im going to be working with.

I need to develop a PHP web page, that will contact the MySQL database
on the server and return specific pieces of information; rows, tables
etc. However, i'm not sure how to get started with this.

I know some basics with PHP (I do use Perl for Sys Admin, so some of the
concepts are similar).

But, can anyone recommend some books, links, tutorials etc. that can
help me get started with this project?

It seems daunting, but I think I just need to get started with it, and
it will eventually be easy, with time.

I appreciate it

I started using ezSQL to wall off the SQL stuff in easy to use objects
(http://php.justinvincent.com/). My first book was Cosentino's Essential PHP.
The most helpful thing about it was that the examples didn't work on my system
(because it assumes all globals are enabled). Thus, I had to study and
reworked every example to get going. I really like Scholossnage's Advanced
PHP.

But what got me going was writing a few very small apps that drove web pages
from a very simple database, displaying (or not displaying) text based on the
date.
Jul 17 '05 #7
Thanks everyone. I appreciate your feedback and suggestions.

What im doing right now, is using a PHP book for reference, and just
writing code. I'm using the Zend tool right now, as I am still learning
the syntax and all the other goodies. I just think that if I can get a
handle on the basics of PHP, i can start writing some applications, talk
to databases etc. which should really help me out...

Right now, just trying to wrap my head around some of the stuff, but so
far, it appears to be going well.

I will keep everyone posted

Jason
Jul 17 '05 #8
Larry Jaques wrote:
Jason <jw*******@courtesymortgage.com> wrote:
can anyone recommend some books, links, tutorials etc. that
can help me get started with this project?


Any book by Julie Meloni. She has a good, clear, easygoing style.
I started out with her first book, "PHP Essentials".


I'll second that recommendation. You may also want to take a look at

http://dmoz.org/Computers/Programmin...PHP/Tutorials/

bblackmoor
2004-06-04
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ggg | last post by:
I'm looking for a complete project/application done with heavy use of of object-oriented programming & design. Preferably something well documented and/or commented so that I can pick it apart...
3
by: pix | last post by:
Hello, I would like to start learning Visual Basic, and I was wondering if there are any recomendations to any ebooks, or actual books for that matter. I have my eye on this book by John Smiley,...
3
by: Ralph H. Stoos Jr. | last post by:
All, I need suggestions for learning Java. I have purchased several books (Java Essentials, Beginning Java 2) and have tried to read and write code. Apparently, I am not easily able to read a...
4
by: Ray | last post by:
I want to jump in a learn Python. I have spent about a day looking at editors and IDEs and (probably prematurely) selected jEdit to work in. I have downloaded Python and jEdit. I have been going...
2
by: AnOvercomer02 | last post by:
Hi. What is the best way to learn Python? None of the local schools near me teach any courses on the topic. Thanks. -- Cody Houston AnOvercomer02@webtv.net
8
by: Mantorok | last post by:
Hi all I'm looking to learn C and/or C++ and I was wondering if there were any good on-line resources and books. I am currently a C# developer but I'm keen to discover C/C++ as I feel it...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
by: littleflame | last post by:
Hello all, May I know something about learning?I want to know learning in Visual Basic .Net framework.How can I improve my programming experience.Which websit is good for programming learning in...
1
by: Steven Cheng [MSFT] | last post by:
Hi Tony, As for .NET /C# learning materials, I seldom see any audiobooks. However, there does exists many video sessions or online webcast which you can subscribe or download. Here are some: ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.