Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?
@  velma : (12 June 2013 - 01:27 PM) T_T We Should Deal Punishments To Procrastinators... Especially Me
@  Feelay : (12 June 2013 - 12:06 PM) As Well As Making It More Secure.

Replying to Introduction To PHP


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Custergrant

Posted 10 July 2007 - 05:34 PM

Hey, great tutorial! I'm attempting to convert a forum game into a PHP game, and thanks to this guide, I'm not quite as scared about it as I was! :P

zemon1

Posted 27 June 2007 - 04:09 AM

im learning php mysql and javascript and that was quite helpful for the php portion, kinda seems a little easier than java...

optiplex

Posted 04 May 2007 - 09:38 PM

This is really good for people like me , thanks

juancarlosvergar

Posted 29 March 2007 - 06:24 PM

Great curse for PHP. I try to apply for my web. I will tell you my avances.

Houdini

Posted 04 February 2007 - 11:29 PM

I am starting to learn php using the 5.04 version. I have done the exercises that you gave us and I have noticed that the command "return" does not work, but the <br> does. Has anything been done about this in the last version?

Thank rkage for the valuable help you are bringing to the beginners.

Actually the \r\n are (return and newline) and can only be seen in the pages source not in your browsr for example write this simple code and then run it in your browser.
<?php
echo "This is a test line of characters that is very very long\n but with the addition of the newline character it will\n be viewed by viewing the page source and you will see that this long single line show up as 3 lines.";
?>

TeamEFX

Posted 04 February 2007 - 04:28 PM

As a newbie to pHp, ( i learned .net) this is great. It was pretty helpful for me because i didn't know how the code was layed out and how to include it like this. Thanks for the tips and help.

eFX

sirdope

Posted 27 January 2006 - 03:27 PM

this was pretty helpful as i myself im learning php at the moment, hope to see more in the future. thanks

kook

Posted 31 December 2005 - 03:09 AM

sorry plz delete upper post caz i post error(my comp's has problem with javascript)

You can use
<?
............
?>
or
<?php
...........
?>
or
<script language="php">
............
</script>
use echo "............."; when you need type html
use //........ or /*........ or #............. to comments
can use insert in html e.g.
<html>
<head><title>....</title></head>
<body>
<?
echo "..........";
?>
</body>
</html>
or inset html in php e.g.
<?php
<html>
<body>
..............
</body>
</html>
?>

$.......... is variable form:
$variable's name="value";
<?php
$a="123";
echo "$a";
it'll show 123
symbol
+ -- add e.g. 10+2 = 12
- -- minus e.g. 10-2 = 8
* -- mutiply e.g. 10*2 = 20
/ -- device e.g. 10/2 = 8 
< -- less than e.g. $1<10 =variable $1 has value less than 10
> -- more than e.g. $1>10 =variable $1 has value more than 10
>= -- more than or equal e.g. $1>=10 =variable $1 has value more than 10 or
=10
<= -- less than or equal e.g. $1>=10 =variable $1 has value less than 10 or =10
!= -- don't equal e.g. $1!=10 =variable $1 has value don't equal 10
== -- equal e.g. $1==10 =variable $1 's value is 10
or -- or
! -- not
and -- and

increase value
<?php
while ($1=10;$1<15;$1++)
{
echo "$1 &nbsp;";
}
?>
it'll show 10 11 12 13 14

if
Form:
if (function or variable){
.......echo "....";
}else{
.......echo ".....";
}
e.g.
if (mysql_db_query($dbname,$sql)){
echo "yes";
}else{
echo "no";
}
result:if it do function(mysql_db_query($dbname,$sql))complete it'll show "yes",if it do function(mysql_db_query($dbname,$sql))don't complete it'll show "no"

next row: \n e.g.
<?
echo "hh"; \n
?>

mysql
you can use phpMyAdmin to handle mysql easier
to connect sql by use code
form:
<?php
$host="hostname";
$user="username";
$pass="password";
mysql_connect($host,$user,$pass) or die("Can't connect to mysql");
?>
to create db(database)
<?php
$host="hostname";
$user="username";
$pass="password";
mysql_connect($host,$user,$pass) or die("Can't connect to mysql");
$dbname="dbname";
mysql_create_db($dbname);
?>

this's a past of php i'll post about other later.

YudzzY

Posted 04 December 2005 - 09:36 AM

i do not really know php, but just from the codings i see, i figured out the above!
i have to look forward to more coding details.. however these are very helpful!
well, these were just for displaying text, so are you coming more with the commands and more complex codings ?
i will be waiting for them...

Houdini

Posted 03 December 2005 - 05:44 PM

I am starting to learn php using the 5.04 version. I have done the exercises that you gave us and I have noticed that the command "return" does not work, but the <br> does. Has anything been done about this in the last version?

Thank rkage for the valuable help you are bringing to the beginners.

View Post

try
\n\r
Windows and Unix respond differently, it is not your version but perhaps your platform.
Just another thingy that you might want to try with your code try and let me know if not correct!

Review the complete topic (launches new window)