Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM PHP and MySQL...... Again

date posted 12th September 2002 23:04

This is a multi-part message in MIME format.

------=_NextPart_000_0020_01C25AAE.D665A470
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

MessageYeah - but it doesn't get rid of the error.
----- Original Message -----=20
From: Andrew Mottershead=20
To: [EMAIL REMOVED]
Sent: Thursday, September 12, 2002 10:30 PM
Subject: RE: FN-FORUM PHP and MySQL...... Again


Set error reporting to E_All that will get rid of the notices.

regards

Andrew Mottershead
Web Developer
Mindstream Web Design

email: [EMAIL REMOVED]
tel: +44 (0)1743 718262
fax: +44 (0) 7092 115513
web: www.mindstream.co.uk

This e-mail, and any attachment, is confidential. If you have received =
it in error, please delete it from your system, do not use or disclose =
the information in any way, and notify me immediately.



-----Original Message-----
From: [EMAIL REMOVED] =
[EMAIL REMOVED] On Behalf Of Darren - Javelin =
Designs
Sent: 12 September 2002 22:01
To: [EMAIL REMOVED]
Subject: FN-FORUM PHP and MySQL...... Again


Hey, could some one have a look at the below code and tell me why it =
is bringing back all this crap:-

=20

Notice: Use of undefined constant location - assumed 'location' in =
C:wwwrootppshowprops.php on line 26
Notice: Use of undefined constant price - assumed 'price' in =
C:wwwrootppshowprops.php on line 26
Name:test
E-Mail:643848
Notice: Use of undefined constant location - assumed 'location' in =
C:wwwrootppshowprops.php on line 26
Notice: Use of undefined constant price - assumed 'price' in =
C:wwwrootppshowprops.php on line 26
Name:location
E-Mail:price

=20

include("vars.php");

mysql_connect ("$db_host", "$db_username", "$db_password") or =
die("Unable to connect to database");

@mysql_select_db("$db_name") or die("Unable to select database =
$db_name");

$sqlquery =3D "SELECT * FROM properties";

$result =3D mysql_query($sqlquery);

=20

while($row =3D mysql_fetch_array($result)) {

echo "Name:".

$row[location] ."E-Mail:". $row[price]. "";

}

=20

if(mysql_num_rows($result)
[EMAIL REMOVED] {
font-family: SimSun;
}
@font-face {
font-family: @SimSun;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt =
90.0pt; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; =
mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: SimSun
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: SimSun
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: SimSun
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: =
"Times New Roman"; mso-pagination: widow-orphan; =
mso-fareast-font-family: SimSun; mso-margin-top-alt: auto; =
mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal; =
mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: =
10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; =
mso-bidi-font-family: Arial
}
SPAN.EmailStyle19 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply; =
mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: =
10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; =
mso-bidi-font-family: Arial
}
DIV.Section1 {
page: Section1
}



Yeah - but it doesn't get rid of the=20
error.

----- Original Message -----
From:=20



Messages by Day
September 30th 2002
September 29th 2002
September 28th 2002
September 27th 2002
September 26th 2002
September 25th 2002
September 24th 2002
September 23rd 2002
September 22nd 2002
September 21st 2002
September 20th 2002
September 19th 2002
September 18th 2002
September 17th 2002
September 16th 2002
September 15th 2002
September 14th 2002
September 13th 2002
September 12th 2002
September 11th 2002
September 10th 2002
September 9th 2002
September 8th 2002
September 7th 2002
September 6th 2002
September 5th 2002
September 4th 2002
September 3rd 2002
September 2nd 2002
September 1st 2002


Messages by Month
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000