[PHP] I'm new

2009-04-04 Thread ®0L¥
Hello people, Is my first time that I try to do a web page with PHP and I
don't  have Idea how I can do, but I read something tutorial and I can see
that is not difficult, I hope that I can do, what I need to work ??? with
PHP and MYSQL ??? Where I can to get this software because I go to
www.mysql.com and I download mysql for win 32 MSI and I install in my pc but
I can't see nothing !!! only MYSQL 5.1 -- (mysql command line client)
(mysql manual) and (mysql server instance config wizard) and How I can work
with mysql ?? and I download the php for www.php.net and only install me in
my all programs PHP 5 and inside I just only see License and PHP.ini

O download and installer APACHE 2.11

1st- download APACHE and install it
2nd- download mysql and install it
3rd- donwload PHP and install it

It is correct this way ?? I read a tutorial with this ways, but when I
create a name.php page and put inside of apache server program
files--apache--htdocs if I try to open with firefox, it shows me the
source inside the page, and wioth internet explorer don't open me, it only
show me a blank page,

Anybody can help me please ?? I want to do web page and I have no idea.

Sorry for my english, I started to study this languaje too. lol.

-- 
salu2 ®0L¥


[PHP] error with hosting

2009-04-21 Thread ®0L¥
I have a littli application in PHP that I do with appserv, in my local
server work ok but when I upload de page.php to the hosting server don't
work, the hosting say in your page that support php and the web server is
apache because the directory is httpdocs, and why my page dond;t work in the
hosting and work ok in my local server ??


//before I have a html form

 form action=find.php method=post
  tr
td height=24 valign=top class=menu
style=text-align: lefttable width=210 border=0 cellspacing=0
cellpadding=0
  tr
td width=7 height=23
class=text_1/span/td
td width=105span class=text_1Your Company
Name:/span/td
td width=98 valign=topinput name=cname
type=text size=11 maxlength=20 align=right/td
  /tr
/table/td
  /tr
  tr
   td height=22 valign=toptable width=210
border=0 cellspacing=0 cellpadding=0
  tr
td width=7 height=22
class=text_1/span/td
td width=105span class=text_1Your E-Mail
Address:/span/td
td width=98 valign=topinput name=email
type=text size=11 maxlength=40 align=right/td
  /tr
/table/td
  /tr
  tr
td height=42 valign=toptable width=210
border=0 cellspacing=0 cellpadding=0
  tr
td class=text_1 width=124 height=27 Find by
Zip Code: /td
td width=86input name=zip type=text
size=9 maxlength=5 align=right/td
/tr
/table
  table width=210 border=0 cellspacing=0
cellpadding=0
tr
  td class=text_1 width=90 height=22/td
  td width=79/td
  td width=41 valign=bottominput type=image
src=images/find.jpg width=33 height=20/td
/tr
  /table/td
  /tr
/form


// I try with this application in find.php


?
if (!$cname)
{
echo font color=\maroon\Enter your Company
Name./font;
}
elseif
(!ereg(^[a-za-z0-9_\...@[a-za-z0-9\-]+\.[a-za-z0-9\-\.]+$, $email))
{
echo font color=\maroon\Enter a Valid E-Mail
Address./font;
}
elseif (strlen($zip)5)
{
echo font color=\maroon\Enter a Valid Zip
Code./font;
}
elseif (ereg([^0-9], $zip))
{
echo font color=\maroon\Enter a Valid Zip
Code./font;
}
else
{
echo font color=\maroon\Find an Agent close to
you./font;
}
 ?

Thanks to all.

-- 
salu2 ®0L¥


[PHP] Check variable value if change inside the Loop

2011-10-19 Thread ®0L¥
Hello World,

I have a question regarding loops, How I can check inside a loop if a
variable chage a value, for example

$sql = mysql_query(SELECT model FROM table)

while($row=mysql_fetch_array){
$model = $row['model'];
echo First model: .$model.br /;
   * // if $model chage its model value*
*   // echo Second Model: .$model.br /*
}

Thank you world !


-- 
salu2 ®0L¥