Helo, please is there anyone who can help out with this; I have a script that displays details from a MYSQL database and a File Server containing images.
Here is the code below:
My problem is: I want to display the details of $text = $info['profile_detail ']; in a details page but its not coming up at all. It just displays an empty page. I have set the page record set. but it still not working.
=============== =============== =============== ===
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="table2">
<tr valign="top">
<td><table width="100%">
<tr>
<td align="left" valign="top">
<?php
// Connects to your Database
//mysql_connect(" your.hostaddres s.com", "username", "password") or die(mysql_error ());
mysql_select_db ("support") or die(mysql_error ());
//Retrieves data from MySQL
$data = mysql_query("SE LECT * FROM profiles WHERE type_name = 'Patrons'") or die(mysql_error ());
//Puts it into an array
while($info = mysql_fetch_arr ay( $data ))
{
$text = $info['profile_detail '];
//Outputs the image and other data
Echo "<table width=100% class=table2><t r><td valign=top rowspan=2><img src=C:/Inetpub/wwwroot/sites/supportbridges/www/profile/".$info['profile_photo'] ."></td>";
Echo "<td valign=top colspan=2><b>Pr ofile:</b><b> ".$info['profile_name'] . "</b></td></tr><tr><td valign=top>".Sh ortenProfile($t ext)."</td>
<td valign=bottom>< a href=patrons_de tails.php?recor dID=".$info['id'] . " class=nav4>+Mor e</a></td></tr></table>";
}
?> </td>
</tr>
<tr>
<td align="right" valign="top" class="nav4"><a href="patrons_d etails.php?reco rdID=<?php echo $row_recordsetN ame['fieldName']; ?>" class="nav4">+M ore</a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" valign="top"><a href="#" class="nav4">Ma ke Comment</a> | <a href="#" class="nav4">Su bmit Article</a> | <a href="#" class="nav4">Co ntact Us</a> </td>
</tr>
</table>
=============== =============== =============== =======
3 1564 Read the Posting Guidelines at the top of this forum!!
And enclose your code in php, code or html tags, as stated.
After that we may have a look at your code.
Ronald :cool:
Thanks Ronald, I am much relieved knowing that someone has seen my post and is willing to help. Thanks a lot.
Back to the post, What I reaaly want to do is to be able to link two pages together using an ID, The table involved displays an image stored on the File Server but with its details in the Database called "Support" an a Table Called "profiles": My code again is:
PHP:
/* I used this code to select a Database to use*/
mysql_select_db ("support") or die(mysql_error ());
//I used this tp Retrieves data from MySQL Table
$data = mysql_query("SE LECT * FROM profiles WHERE type_name = 'Patrons'") or die(mysql_error ());
//Puts it into an array
while($info = mysql_fetch_arr ay( $data ))
// This variable calls a function that I use to shorten the output of the string displayed by the Database Table field called: 'profile_detail '
$text = $info['profile_detail '];
CODE:
//ThIS PORTION OF HTML AND PHP CODES OUTPUT THE IMAGE AND OTHER DATA FROM THE TABLE "profiles"
Echo "<table width=100% class=table2><t r><td valign=top rowspan=2>
CODE:
FILE SERVER LOCATION OF THE IMAGE TO BE DISPLAYED WITH THE DATABASE FIELD STORING THE IMAGE INFO CALLED "profile_ph oto"
<img src=C:/Inetpub/wwwroot/sites/supportbridges/www/profile/".$info['profile_photo'] ."></td>";
CODE:
THIS PORTION OF HTML AND PHP CODES DISPLAY THE DATABASE FIELD STORING THE PROFILE NAME CALLED "profile_na me" AND ITS CALLS THE VARIABLE FOR THE FUNCTIONS THAT SHORTENS THE "profile_detail " DATABASE FIELD INFO WITH . ".ShortenProfil e($text)."
Echo "<td valign=top colspan=2><b>Pr ofile:</b><b> ".$info['profile_name'] . "</b></td></tr><tr><td valign=top>".Sh ortenProfile($t ext)."</td>
CODE:
THIS IS THE PROBLEM AREA. THIS PIECE OF CODE IS EXPECTED TO PASS THE RECORD ID OF THE PROFILE DISPLAYED BY THIS GIVEN ID "$info['id'] " TO A PAGE CALLED "PATRONS_DETAIL S.PHP"
<td valign=bottom>< a href=patrons_de tails.php?recor dID=".$info['id'] . " class=nav4>+Mor e</a></td></tr></table>";
}
?>
PROBLEM: NOW MY PROBLEM ISTHAT WHEN THIS PAGE OPENS MY "PATRONS_DETAIL S.PHP' PAGE PASSING THE RECORDID WITH THE URL. THE PATRONS_DETAILS .PHP" PAGE DOES NOT DISPLAY THE DETAILED INFO. IT JUST SHOWS THE RECORDID IN THE URL BUT DISPLAYS A BLANK PAGE.
THE RECORDSET FOR THE "RPATRONS_DETAI LS.PHP" PAGE IS CREATED WITH DREAMWEAVER.
I HOPE THIS WILL HELP YOU BETTER IN APPRECIATING MY PROBLEM IF NOT, PLEASE LET ME KNOW.
THANKS SO MUCH.
If you flatly refuse to follow the moderator request to follow some simple posting guidelines, I will have to close this thread for now.
Ronald :cool:
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark ??;-\) |
last post by:
I would like to display a listing of files on a web page as follows:
If there is only one file: display the section name and then display the
current file.
If there is more than one file (for the first page): display the section
name, the current file and a few archive files.
If there is more than a page full (for each additional page): display the
section name, and the next set of archive files.
|
by: RAJ |
last post by:
In our multi-tier application, we have several ASP.NET user controls which
will update the same data source provided by middle tier logic.
In this particular scenario we have one user control displaying the contents
of the data source, whilst another control updates the datasource via a
command buttons implementation of 'Click', an event raised in the 'Handle
Postback Events' stage of the control execution life cycle (via the...
|
by: Jon Weston |
last post by:
I'm setting up an Access2003 database with pictures. I put a bound ole
picture ctrl on a form that's source is the table that contains the pictures
and follow ALL the directions for embedding a picture. The ctrl in the form
only displays the filename of the picture. The underlying table, when
opened in table view, shows the word "package" in the field. When I
double-click on either it opens the picture, but I can't get it to display.
...
|
by: Tim Reynolds |
last post by:
Team,
I am developing a web service. In testing in on my enw PC, I am expecting to
see exceptions thrown appear on my browser. Instead I am getting an HTTP 500
Internal Server Error page and I am not seeing my exception details. The
web.config file being used has the setting <customErrors mode="Off"/>. This
should allow me to see the detailed exception info. On a different computer
- same code - same web config - the exception details...
|
by: Lloyd Sheen |
last post by:
I have a list of JPG's which are found in a SQL Server database. When the
page selects a certain piece of data it will refer to the file system
(resident on IIS server with a virtual directory) and files contained within
a certain folder. I have been trying for quite a while to set the ImageURL
of an image control to the correct information.
I have googled till my mind hurts but can find nothing to help. I have even
tried to copy the...
| |
by: bimeldip |
last post by:
Hi,
i would like to display the list of tables in a database in a drop down list
then when user selects a table, the table will be dispalyed on the page.
So far i've done this:
<?
$dbname = 'mysql_dbname';
// Get records from database ().
$sql = "show tables from $dbname";
$result=mysql_query($sql);
|
by: trysenthil |
last post by:
hi all.,
i want a query from u.,which must display me like this.,
is displaying me.,
07-september-2007
|
by: mikec87 |
last post by:
I am very new with PHP...started doing this a few days ago to help someone and I need some help please. I have a webpage that is not displaying the records I want it to. The sql is correct, and I think the php code is correct to display the result, but php just "seems" to echo the php code that I have embedded in the page (maybe a type that I have missed). No errors seem to be happening, but it just does not display any records. Can anyone help...
|
by: ajos |
last post by:
This may be very dumb question, but still...I am displaying a value in a input tag with the value shown as readonly...
<input type=text size=18 maxlength=50 name="company" value=<%=companyCode %> readonly>
where <%=companyCode%> is the result that is being displayed. Can i display the result in a html label or something similar which is not editable/non-readonly(if i can say that). Just displaying the text. The result of the companyCode...
|
by: dba |
last post by:
Have been displaying data from database using html for some time but
just recently trying to display data back to "form". Can't find answer.
<form method="post" action="<?php echo $PHP_SELF;?>">
First Name:<input type="text" size="12" maxlength="12" name="Fname"><br >
Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br />
Gender:<br />
Male:<input type="radio" value="Male" name="gender"><br />
Female:<input...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |