Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

P: Beginner question 2

 
   Database Help (Home) -> PHP RSS
Next:  Beginner question  
Author Message
Anto

External


Since: Aug 04, 2008
Posts: 4



(Msg. 1) Posted: Mon Aug 04, 2008 5:28 pm
Post subject: P: Beginner question 2
Archived from groups: alt>php (more info?)

Can you tell me what is wrong, code is from one PHP learning site and output
is wrong. Screenshot is here
http://img177.imageshack.us/img177/2875/capturetr6.jpg
This is the code:

<html>
<head></head>
<body>

Agent: So who do you think you are, anyhow?
<br />

<?php
// define variables
$name = "Neo";
$rank = "Anomaly";
$serialNumber = 1;

// print output
echo "Neo: I am <b>$name</b>, the <b>$rank</b>. You can call me by my serial
number, <b>$serialNumber</b>.";
?>

</body>
</html>

 >> Stay informed about: P: Beginner question 2 
Back to top
Login to vote
Floortje

External


Since: Jul 17, 2008
Posts: 10



(Msg. 2) Posted: Mon Aug 04, 2008 5:57 pm
Post subject: Re: P: Beginner question 2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Anto schreef:


> Can you tell me what is wrong, code is from one PHP learning site and
> output
> is wrong. Screenshot is here
> http://img177.imageshack.us/img177/2875/capturetr6.jpg

You did not install a webserver or did not run the script through the
webserver.

to call the script correctly in internet explorer:
http://localhost/index.php


To install apache + php + mysql try this:
http://www.apachefriends.org/en/xampp.html

Floortje

 >> Stay informed about: P: Beginner question 2 
Back to top
Login to vote
Anto

External


Since: Aug 04, 2008
Posts: 4



(Msg. 3) Posted: Mon Aug 04, 2008 6:05 pm
Post subject: Re: P: Beginner question 2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Now is working fine thanks!!


"Floortje" wrote in message

> Anto schreef:
>
>
>> Can you tell me what is wrong, code is from one PHP learning site and
>> output
>> is wrong. Screenshot is here
>> http://img177.imageshack.us/img177/2875/capturetr6.jpg
>
> You did not install a webserver or did not run the script through the
> webserver.
>
> to call the script correctly in internet explorer:
> http://localhost/index.php
>
>
> To install apache + php + mysql try this:
> http://www.apachefriends.org/en/xampp.html
>
> Floortje
 >> Stay informed about: P: Beginner question 2 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Beginner question - Hi all, I'm new to php and my final goal is only the following page in my website that communicates with a win32 application that is running in a client PC background- 1. There are 2 icons on the page - a main icon and a secondary icon. 2. When a user..

beginner's print question - How can I print: print "It is now localtime()"; How should I quote the statement above? // I have tried googling quite hard for a while. Thanks. Regards, Ben

Beginner MySQL Question: Retrieving one record - Hi, I have this SQL Query, and it does it I wanted it to do, and that is retrieve one record and store it into an arseigned value. I am just a beginner at this, but can see it's inefficient and probably could be shortened. I tried a few variations, but....

xml beginner - hierarchies - What's the simplest way to produce an array like the one at bottom from a snippet of xml like that provided below? <tables> <table1 id="0"> <table1 id="9"> <table2 id="10"/> <table2 id="...

Beginner level projects - Hi I am a PHP ,MySQL newbie.Just finished learning the basics of PHP programming and MySQL interaction.Can anyone suggest some project topics that will help me gain hands-on experience in developing a PHP- MySQL software? What will be the right approac...
   Database Help (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]