new to php
Moderator: General Moderators
Code: Select all
error_reporting(E_ALL);
$cfgProgDir = "crispsession/";
include($cfgProgDir . "secure.php");- artexercise
- Forum Commoner
- Posts: 33
- Joined: Thu Nov 20, 2003 9:38 am
- Location: Raleigh, NC
Is there a problem in the secure.php file? When I commented out all the stuff that wouldn't have done me any good I got a page with a table displaying the static information. Estenially All I used was the echo statement. Have you tried building backwards from what works until you get the error?
JOE--
JOE--
Joe,
if i just use this it works fine
its when i introduce a html table is where it starts going wrong
is there an easier way to do what i am trying to do. all i want to do is echo out lines from ym data base but out them in to a html table
have done all that has been suggested and still no luck
very impressed with this forum, dedicated ppl
Alan
if i just use this it works fine
Code: Select all
<?PHP
$cfgProgDir = 'session/';
include($cfgProgDir . "secure.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Database account</title>
</head>
<body>
<font size="2" face="Tahoma">
<?
mysql_connect("localhost","database","password");
$query1 = "SELECT * FROM table WHERE username='$login' and password='$password'";
$result1 = mysql_db_query(database,$query1);
while($row = mysql_fetch_object($result1)) {
echo("
$row->first_name $row->last_name<br>
<br>
$row->address_line_1<br>
$row->address_line_2<br>
$row->address_line_3<br>
$row->post_code<br>
$row->phone<br>
$row->email<br>
$row->wireless_adapter<br>
$row->radial_ref<br>
$row->speed<br>
");
}
?>
</font>
</body>
</html>is there an easier way to do what i am trying to do. all i want to do is echo out lines from ym data base but out them in to a html table
have done all that has been suggested and still no luck
very impressed with this forum, dedicated ppl
Alan
am i echoing the right statements
is thsi the way to echo them out, taking in to consideration hoe i have structured my php.
is thsi the way to echo them out, taking in to consideration hoe i have structured my php.
Code: Select all
<td height=13><font face=Tahoma size=2>$row->first_name</font></td>shiznatix
you are F**king Genius, i can not thank you enough, i can sleep again.
thanks ever so much, make no mistake "ill be back";?>
lol at php bit
any way thanks so much
Alan
you are F**king Genius, i can not thank you enough, i can sleep again.
thanks ever so much, make no mistake "ill be back";?>
lol at php bit
any way thanks so much
Alan
Last edited by cr-isp on Thu May 26, 2005 10:26 am, edited 1 time in total.