Zymic

Webmaster resources

Follow us on Twitter!

Hosting status updates - Click here

PHP & MySQL

Free Tutorials » PHP & MySQL » Using References in PHP

References are a useful tool in PHP, read this article to learn what they are and how they can be used.

Tutorial comments

01.02.2012 -

mongDdragon says …

nice nice very nice ^^

02.01.2012 -

Ossinerith says …

An interesting tutorial

01.12.2011 -

srrandyyx says …

看的我很郁闷,给我们中国人给点方便啊不偿命害死人

17.11.2011 -

dfgsdfsdgd says …


=========== http://www.styleown.com ===========
have some cheaper and more good things,cuch as nike shoes ,fashion clothes ,brand handbags,wallet,jewerlly...

U G G($48)

Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $35
Handbags(Coach lv fendi d&g) $35
Tshirts (Polo ,ed hardy,lacoste) $16

Jean(True Religion,ed hardy,coogi) $30
Sunglasses(Oakey,coach,gucci,Armaini) $16
New era cap $15

Bikini (Ed hardy,polo) $25
=========== http://www.styleown.com ===========
---------------------2-------------------------------------------------

05.11.2011 -

waddou says …

thinks i am using it in my website :p !!

22.09.2011 -

mdslin says …

Hello, everybody, the good shoping place, the new season approaching, click in.
Welcome to ==== http://www.voguecatch.us ==
Air Jordan (1-24) shoes $35
UGG BOOT $50
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $35
T-shirts (polo, ed hardy, lacoste) $16
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Bikini (Ed hardy, polo) $18
FREE SHIPPING
=== http://www.voguecatch.us

=== http://www.voguecatch.us

=== http://www.voguecatch.us

=== http://www.voguecatch.us

=== http://www.voguecatch.us

=== http://www.voguecatch.us

===( http://www.voguecatch.us )

===( http://www.voguecatch.us )===

===(http://www.voguecatch.us)===

===( http://www.voguecatch.us )===

22.09.2011 -

mengxing says …

Optimistic face life, and life will be very good to you!
Welcome to my clothes stand, I wish you good mood every day!
www.fashionbiz2u.com

[url=http://www.fashionbiz2u.com/]gucci shirts[/url]

[url=http://www.fashionbiz2u.com/]ed hardy shirts[/url]

24.05.2011 -

bubblesexplode says …

how do i add data to my zymic database from a .html page? Any help would be great. thnaks

02.05.2011 -

Harriesta says …

Thats goods...

05.03.2011 -

tej91 says …

this is a good tutorial.

13.02.2011 -

khanhtoan82 says …

What are references? References are a tool in PHP that we can use to access the content of a variable through several identifiers ("names"). When a reference is modified, the content it points to will be changed directly, this means that when editing a reference or the original variable we change it for everything referencing that content simultaneously. To put it into context, say you had set up a company, and you applied for a P.O. Box for your office. You would then have two addresses, which point to the same place. References are like the P.O. box, they are "addresses" through which we can modify the content of a variable. In terms of code we could have a variable called $var and then make a reference to it called $vartwo, when $var is edited, $vartwo also changes and vica versa. References are created using "reference binding" this is very similar to assignment, but uses =& (equals ampersand) to tell the PHP parser that we are creating a reference and not a new variable. Below is an example of creating and using references to manipulate variables: ...

13.02.2011 -

khanhtoan82 says …

Đầu tiên là gõ địa chỉ FTP Server mà khi đăng ký nó cấp cho bạn sau đó là username / password. Nhấn Enter. Nó sẽ kết nối đến cái host của bạn, host bạn sẽ nằm ở khung bên phải còn bên trái nó cũng tương tự như cái Explorer của Win, chọn tất cả các file mà bạn cần upload rồi nhấn chuột phải chọn upload, chỉ việc ngồi chờ cho nó upload toàn bộ trang web của bạn lên.

13.02.2011 -

khanhtoan82 says …

very good! do it rightnow

13.02.2011 -

khanhtoan82 says …

ok

01.01.2011 -

omidsaz says …

thank yuo

24.11.2010 -

mobiapp says …

Fatal error: Call to undefined function curl_init() in /www/clanteam.com/m/o/b/mobiapps/htdocs/index.php on line 107

08.09.2010 -

sajjadspn4 says …

I can`t upload files.
What`s wrong?

04.09.2010 -

wanghao says …

ok

03.09.2010 -

wanghao says …

good

11.08.2010 -

emad176 says …

nenidoonam chikaar konam

07.08.2010 -

lsmin says …

垃圾

28.09.2009 -

dekpitado says …

Pequeña intoduccion para los que van iniciando en php, bien explicado !!!

05.08.2009 -

yem says …

;gse

18.07.2009 -

awshitzx says …

put " " when printing a strng

26.04.2009 -

nbrios says …



11.01.2009 -

uSearch says …

thanks 4 this

11.01.2009 -

magyarb942 says …

hello!

print $REMOTE_ADDR

nothing, white page!


print "szia";

page with a word: szia


.php?kulcs1=ertek1$kulcs2=ertek2

print $kulcs1

nothing, white page

pls help

11.01.2009 -

magyarb942 says …

ja az előzőt nem írta ki, szal az volt h

print $REMOTE_ADDR

11.01.2009 -

magyarb942 says …

hello!
látom beszélsz magyarul! lécci segíts! pl. a



program nem ír ki semmit.
a
print "szia";

ez kiírja hogy szia
a php?kulcs1=ertek1$kulcs2=ertek2
ebből se tudja kiolvasni, a

print $ertek;

semmit nem ír ki
segíts kösz!

21.12.2008 -

karaoke says …

nógrádi róbert

28.09.2008 -

chaitanyaD says …

how to retrive the image from mysql server ?

10.08.2008 -

emersoncs says …

what about mysql

12.07.2008 -

biotoxyde says …

for jaizedelan::
lol, and after the login page; what are you gonna do ?
you need a complete logon script, not just a single page..

30.06.2008 -

sentido_social says …

What is ip of ip MySQL of is server??

29.05.2008 -

digithree says …

just like pointers in C/C++, nice, didn't know PHP had this kind of thing, tidy code here I come!

22.03.2008 -

jaizedelan says …

hello i want a login page for my website can you plz help me??

19.03.2008 -

nakhee says …

Surf the internet anonymously and hide your IP address.

19.03.2008 -

nakhee says …

What do you think of this tutorial? my comments is perspolis

19.03.2008 -

nakhee says …

What do you think of this tutorial? perspolis

15.03.2008 -

manchojrs says …

in spanish please

05.03.2008 -

Jontri says …

nice...

29.02.2008 -

Oleg2tor says …

I like increments! Nice...

30.12.2007 -

9apro says …

fuck

01.12.2007 -

xweetok-sa says …

in spanish please

22.11.2007 -

7iasang says …

i don't know!!

14.11.2007 -

kulzin says …

?

27.10.2007 -

mainemis says …

Nice.

18.10.2007 -

mtty says …

What doing ? great database's where ?

18.10.2007 -

phambaohoang says …

hay lam' a.

25.09.2007 -

djzmo says …

vewy nice.. i've learned something new which I wanted to know few days ago..

thanks

20.09.2007 -

MrCracker says …

Nice.. didn't know about this.

20.09.2007 -

Earpy says …

Nice! You learn something new every day :)

20.09.2007 -

md5hash says …

cool

Tutorial statistics

Date added:
24.08.2007
Author:
Alex Elliott
User rating:
4/5
Rate tutorial:
Total views:
36935
Total comments:
53

Advertisements