Linking to a detail page help
done this loads of time but can some just help me
i have a page that show some of the results of a query but need to show this rest with a view details here
looking at it too long i think
mysql_select_db($database_hostprop, $hostprop);
$query_Recordset1 = sprintf("SELECT tk_job_title, tk_job_location, tk_job_salary, LEFT(tk_job_desc,200) as truncated_job_desc FROM think_jobsearch WHERE tk_job_title LIKE %s OR tk_job_location LIKE %s OR tk_job_salary LIKE %s", GetSQLValueString("%" . $var_tk_job_title_Recordset1 . "%","text"),GetSQLValueString("%" . $var_tk_job_location_Recordset1 . "%", "text"),GetSQLValueString("%" . $var_tk_job_salary_Recordset1 . "%", "text"));
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $hostprop) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
the link is here
<a href="job-description.php?<?php echo $row_Recordset1['tk_job_title']; ?>=">view more</a>
the results page is here
$colname_Recordset1 = "-1";
if (isset($_GET['tk_job_title'])) {
$colname_Recordset1 = $_GET['tk_job_title'];
mysql_select_db($database_hostprop, $hostprop);
$query_Recordset1 = sprintf("SELECT * FROM think_jobsearch WHERE tk_job_title = %s", GetSQLValueString($colname_Recordset1, "text"));
$Recordset1 = mysql_query($query_Recordset1, $hostprop) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
tabe below
<td>Job TItle</td>
<td><?php echo $row_Recordset1['tk_job_title']; ?></td>
</tr>
<tr>
<td>location</td>
<td><?php echo $row_Recordset1['tk_job_location']; ?></td>
</tr>
<tr>
<td>salary</td>
<td><?php echo $row_Recordset1['tk_job_salary']; ?></td>
A querystring consists of name/value pairs. You are only including the value in yours. Try
<a href="job-description.php?tk_job_title=<?php echo $row_Recordset1['tk_job_title']; ?>=">view more</a>
Similar Messages
-
I have the letters A to Z in a master page and would like to
link to a
detail page, where all companies are displayed whose names
begin with A,
or B depending which letter the user has clicked.
On the detail page (compdetail.php) I have that code:
$query_rsCompanies = sprintf("SELECT id, name FROM
tblcompanies WHERE
name LIKE %s", GetSQLValueString($colname_rsCompanies . "%",
"text"));
But how do I link from the master page to that detail page?
I have as example for the letter "p" <a
href="compdetail.php?name=colname">p</a>, but that
doesn't work - I
fear, the link is ridiculous, sorry :(
Could someone point me the right way?
Thank you
LeoOn 13 May 2008 in macromedia.dreamweaver.appdev, Leolux
wrote:
> I have the letters A to Z in a master page and would
like to link to
> a detail page, where all companies are displayed whose
names begin
> with A, or B depending which letter the user has
clicked.
>
> On the detail page (compdetail.php) I have that code:
> $query_rsCompanies = sprintf("SELECT id, name FROM
tblcompanies
> WHERE name LIKE %s",
GetSQLValueString($colname_rsCompanies . "%",
> "text"));
>
> But how do I link from the master page to that detail
page?
> I have as example for the letter "p" <a
> href="compdetail.php?name=colname">p</a>, but
that doesn't work - I
> fear, the link is ridiculous, sorry :(
>
> Could someone point me the right way?
Since you're using PHP, I'll assume MySQL.
The link winds up looking like:
<a href="compdetail.php?name=p">p</a>
Then the SQL winds up looking like:
SELECT id, name FROM tblcompanies WHERE LEFT(name,1) = asdf
ORDER BY
name ASC
You'll use the Advanced screen in the recordset definition.
In the
parameter box, you'll add asdf; default value is A and
runtime value is
$_GET['name']
You can even generate a dataset for the master page with the
first
initials of all the companies:
SELECT DISTINCT LEFT(name) AS initial FROM tblcompanies ORDER
BY
initial ASC
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php -
I'm trying to replicate the traditional "Go to detail" link
used in ASP etc, but from a Spry list. So the idea would be that
the user would see a list of records and click on one of them to go
to a traditional asp detail page from where they can modify or
delete the record.
Any help would be appreciated.The usual way to go to a detail page is to specify the URL
and append a unique parameter to the end.
href="thedetailpage.asp?id=4"
So in Spry, if you have that unique identifier in the XML,
you can do something like
<a
href="thedetailpage.asp?id={dataref}">{listref}</a>
Hope this helps.
Donald Booth
Adobe Spry Team -
Linking JSP master-detail pages
Hi all,
I am developing a JSP-BC4J application with JDev903.
I have a hierarchy of 5 view objects, let's say VO1,..,VO5, linked to each other by one-to-many view links. I would like to make a drill-down for this data.
With the JSP for BC4J wizard, I generated an JSP application, which contains (among others) 4 JSP master-detail pages:
- VO1 DataRecord with VO2 DataTable
- VO2 DataRecord with VO3 DataTable
etc.
In the DataTable's, I added the next master-detail page as an edittarget. If you click it, the next page appears, but the data on this page do not correspond with the master table row that you clicked. So probably, you have to add some extra code to synchronize the row sets.
My questions:
- how can you get this to work ?
- what is the best place to change things ?
- does anyone have an example of this ?
Cheers,
FrankAs long as you add ViewLinks between your master-detail levels, the synchronization is automatic. You just have to make sure you use the 'correct' view object usage name. Look at your ApplicationModule's model via its editor.
-
SAP LSO- (WBT)Confirm Participation link in course detail page is missing
The end user has finished working on the content and has properly logged off and closed the Content Player.
When he comes to the course detail page in the Learning Portal, he finds that the 'Confirm Participation' link is missing.
Following is the configration that has been set for the Course Type( has the delivery method 0003-WBT)-
SPRO(Training and Event Management->SAP Learning Solution->Training Management->Recurring Activites->Follow-Up->Control of Process Steps)
0003, L, K, SIGNATURE(BLANK), ACTIVATE(X)
0003, S, C, SIGNATURE(BLANK), ACTIVATE(X)
0003, S, E, SIGNATURE(BLANK), ACTIVATE(X)
0003, S, G, SIGNATURE(BLANK), ACTIVATE(X)
IT5047 has the following settings for the course type-
L, A, Signat. On/Off(BLANK), ACTIVATE(X)
S, B, Signat. On/Off(BLANK), ACTIVATE(X)
S, C, Signat. On/Off(BLANK), ACTIVATE(X)
B, I, Signat. On/Off(BLANK), ACTIVATE(X)
The 'Confirm Participation' link should have appeared. Suggestions on root cause of the problem and problem resolution are appreciated.Dear Amit Tyagi
How solve this issue?
Thanks in advance,
Regards -
mouse not wooorking to manage tabs and facebook
cheers,
AndrewStart Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Just looking for some help, not coding, for a site I'm
planning. I want keywords in my articles to be hyperlinks that link
to the record in the database that they are associated with. For
example, if you view espn.com, and you click on any article of
theirs, they will put a person's name or a team's name as a
hyperlink in an article in mid-sentence that links to the "detail
page" in the database.
For example... "
Michael Vick's dog fighting drew criticism from the
Atlanta Falcons on Monday."
Perhaps I am overcomplicating this. But it doesnt seem
realistic to me that some sports write for ESPN knows how to create
a hyperlink to a dynamic page.
How do I go about doing something like this in theory?
Are they just manually linking and they know the player and
team to the parameter (ID) address.... www.espn.com/?id=1234
Do they have some kind of alphabetical list of names that
they drag and drop on screen that automatically creates a
hyperlink?
Is there a way to make this dynamic by dragging and dropping
the dynamic {player.name} code?
How is this done?
Thanks for any help.Buehler? Buehler?
-
I made a button in. This button is part of a repeated region
in a master-page and should "onClick" go to the detail-page.
I don't know if it is possible to make a detail-page link to
a flash-button in Dreamweaver? Or is there a possibility to give
the detail-link already in Flash?
This is the detail-link in Dreamweaver:Ulitasch wrote:
> I don't know what is " FlashVars and level0 scope"?
FlashVars is one way to pass variables to a Flash movie from
HTML very
similar to query strings in the URL. if you pass a var named
foto, it
can be accessed with: _level0.foto
take a look at Flash help for FlashVars and levels
> What do I have to put in: var_to_flash=<?php echo
...; ?>',
> Do I replace <?php echo ...; ?> with the link to
the detail page?
> "../portfolio/index.php?foto=<?php echo
$row_rsPORTFOLIO2['foto_order']; ?>"
just the var name and its dynamic value:
foto=<?php echo $row_rsPORTFOLIO2['foto_order']; ?>
as the path and page name seems to be static it doesn't make
sense to
include them in the var; put them in the Flash movie:
getURL("../portfolio/index.php?"+_level0.foto);
> And what do I put in the places after:
AC_FL_RunContent('...','...','
> Sorry, this is very new for me..
Dreamweaver 8.0.2 generates that code when you insert a Flash
movie and
Code Rewriting > Active content option in Preferences is
selected:
AC_FL_RunContent('codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',...
and don't worry. everybody learn new things each day! -
Detail page only for certain values
I have a page that searches a few tables.
its a overall search, but there are records we dont want to
allow anyone to
edit based on a value.
So my question is... i have a results page which is already
setup to display
all records found.. with a link(go to detail page) how can i
code it so if
any of the results have a certain value that link is not
available?
Example
Name Phone Email
Contact Details
John 555-555-5555 [email protected] Yes View
Dave 222-333-4545 [email protected] No
Jess 854-896-7852 [email protected] Yes View
Using ASP, SQL2005 and DW8Can anyone help with this one?
I just want to disable the link to the detail page if the
value for Contact
is NO then disable Details link
Using ASP, SQL2005 and DW8
"Daniel" <[email protected]> wrote in message
news:f2d35r$806$[email protected]..
>I have a page that searches a few tables.
>
> its a overall search, but there are records we dont want
to allow anyone
> to edit based on a value.
>
> So my question is... i have a results page which is
already setup to
> display all records found.. with a link(go to detail
page) how can i code
> it so if any of the results have a certain value that
link is not
> available?
>
> Example
>
> Name Phone Email Contact Details
> John 555-555-5555 [email protected] Yes View
> Dave 222-333-4545 [email protected] No
> Jess 854-896-7852 [email protected] Yes
> View
>
>
>
> --
> Using ASP, SQL2005 and DW8
> -
Hi There,
I am creating a dynamic link from a news item in my index.php
page. I have highlighted the field (in index.php) I want to use as
the dynamic link to the detail page and used the 'go to detail page
for PHP server behaviour'. This links to my detail page called
'newscontent.php'. On newcontent.php, I have created a filtered
recordset which filters by newsID (which is the primary key in the
Mysql database). Using the simple recordset dialog, I did a test
and entered in a test value for URL parameter: newsID. This works
successfully and returns the appropriate records from the database.
Therefore as things seem to be working so far, I have dragged the
newsTitle and newsContent onto my detail page so that when the user
clicks on the link in the index.php page, it will show the title
and content in the detail page.
However things are not working. In the newscontent.php, when
I do live data view, nothing appears on the page (which is weird
because the recordset works fine!!). Even when I view my index.php
page in my browser and try and link to the detail page, it goes to
the detail page no problem but no data is on the page!!! It is just
empty.
I must be doing something really daft, so if someone can spot
a mistake in my strategy here, that would be much appreciated.
dmlockeThis seems sort of pointless to ask, but just in case??? You
say:
"I have highlighted the field (in index.php)" Do you mean
"textfield?" Anyways, I would think that you'd want to use a
dynamically populated menu which then pins the newsID using a URL
parameter or session variable. Anyways, what I'm getting at is: You
have somehow included the newsID chosen on index.php in the
information that's sent to the detail page request and then used
that to filter the SQL query that you already said work when you
PERSONALLY designate a value, right?
Good luck! Hopefully my query, will help you with your
query! -
Hi there,
CS3 with PHP and mySQL db.
I cannot get the go to detail page to work properly. I have
downloaded the
"Go to detail page" extention from
http://www.dengjie.com which
seems to
work.
BUT, what do I do on the detail page? In ASP there is a SB
that says "Go to
Specific Record" but this is not there with PHP.
I will really appreciate any help. At the moment the only
thing it does
when clicking to my "More details" link, is to go to the
first record.
Thank you very much!
DeonDeon wrote:
> I cannot get the go to detail page to work properly. I
have downloaded the
> "Go to detail page" extention from
http://www.dengjie.com which
seems to
> work.
I don't know anything about that extension, nor do I read
Chinese, so
the following information is based on how to go to a detail
page
correctly without using any third-party extension.
> BUT, what do I do on the detail page? In ASP there is a
SB that says "Go to
> Specific Record" but this is not there with PHP.
The way that you handle this with PHP is to append a query
string to the
URL in the "more details" link. Let's say that the primary
key of your
database table is product_id, the link to the detail page
needs to look
like similar to this:
<a href="product_details.php?product_id=9">More
details</a>
In product_details.php, you create a recordset that uses the
URL
variable, product_id, as a filter.
So, how do you add the correct product_id into the "more
details" link?
1. Select the words that create the link.
2. Click the folder icon to the right of the Link field in
the Property
inspector.
3. Select the details page in the dialog box.
4. Before closing the dialog box, click the Parameters
button.
5. In the Parameters dialog box, type the name of the primary
key
(product_id in this case) into the Name field.
6. Click the lightning bolt icon to the right of the Value
field.
7. This opens the Dynamic Data dialog box, where you should
select the
primary key (product_id) from the recordset.
8. Click OK three times to close all the open dialog boxes.
This creates the following code in your link:
<a href="product_details.php?product_id=<?php echo
$row_recordsetName['product_id']; ?>">More
details</a>.
The large number of steps makes it sound complicated, but
it's actually
very simple once you have done it a couple of times.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Dynamic image gallery on detail page
I have a master page listing 8 products. I have inserted a dynamic image gallery on the detail page which looks ok, but has one major flaw: when you click on a thumbnail the main image opens on the wrong page. e.g. if you click on page ../dragons.php?id=3 the main image opens on ../dragons.php/id=1 and shows the following url: .../dragons.php?image=btf.jpg (or whatever the image file name).
I have only just started using php and I would appreciate some guidance on how to resolve this problem.
The relevant sections of the code are as follows?
$vardragon_dragons_species = "1";
if (isset($_GET['id'])) {
$vardragon_dragons_species = $_GET['id'];
mysql_select_db($database_cjwebsite, $cjwebsite);
$query_dragons_species = sprintf("SELECT dragons.Order, dragons.family, dragons.Latin, dragons.English, dragons.Img1, dragons.Img2, dragons.Img3, dragons.img4, dragons.Img5, dragons.text, `dragons gallery`.filename, `dragons gallery`.caption, dragons.id, `dragons gallery`.image_id, dragons.id FROM dragons, `dragons gallery` WHERE dragons.id = `dragons gallery`.image_id AND dragons.id=%s", GetSQLValueString($vardragon_dragons_species, "int"));
$dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
$row_dragons_species = mysql_fetch_assoc($dragons_species);
$totalRows_dragons_species = mysql_num_rows($dragons_species);
if (isset($_GET['image'])) {
$mainImage = $_GET['image'];
else {
$mainImage = $row_dragons_species['filename']; }
<body>
<div class="main_image"><img src="../images/dragons/<?php echo $mainImage; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" />
<div class="capt"><?php echo $row_dragons_species['caption']; ?></div>
<ul class="gallery">
<?php do {
if ($row_dragons_species['filename'] == $mainImage) {
$row_dragons_species['caption'];
}?>
<li><a href="<?php echo $_SERVER['PHP_SELF'];?>?image=<?php echo $row_dragons_species['filename']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['filename']; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" /></a></li>
<?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?>
</ul>
Many thanks
CJI'm still at an early stage in building this site and because it is allvery experimental I am and just using local testing.
So to try to explain my objective. I have a master page with 8 products there is a link to a detail page based on product id. So from the master page (dragons.php) you can select a product which will show the product information on a detail page (eg. dragons_species.php?id=1 or dragons_species.php?id=2 etc). This works ok.
Each detail page has various pieces of information and 5 images. I wanted to show the images in an image gallery format and so used the code you provide in your book PHP Solutions (Creating a Dynamic Online Gallery pp.323-330). This works ok on the first page where id=1, but on subsequent pages (id=2, id=3 etc) I am loosing the id link infavour of an image based link.
This is the complete script for my detail page (dragons_species.php)
<?php require_once('../Connections/cjwebsite.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$vardragon_dragons_species = "1";
if (isset($_GET['id'])) {
$vardragon_dragons_species = $_GET['id'];
mysql_select_db($database_cjwebsite, $cjwebsite);
$query_dragons_species = sprintf("SELECT dragons.Order, dragons.family, dragons.Latin, dragons.English, dragons.Img1, dragons.Img2, dragons.Img3, dragons.img4, dragons.Img5, dragons.text, `dragons gallery`.filename, `dragons gallery`.caption, dragons.id, `dragons gallery`.image_id, dragons.id FROM dragons, `dragons gallery` WHERE dragons.id = `dragons gallery`.image_id AND dragons.id=%s", GetSQLValueString($vardragon_dragons_species, "int"));
$dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
$row_dragons_species = mysql_fetch_assoc($dragons_species);
$totalRows_dragons_species = mysql_num_rows($dragons_species);
if (isset($_GET['image'])) {
$mainImage = $_GET['image'];
else {
$mainImage = $row_dragons_species['filename']; }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Odonata Species</title>
<link href="../Css/dragons.css" rel="stylesheet" type="text/css" />
<link href="../Css/menu.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<?php include('../Includes/logo2.inc.php'); ?>
</div>
<div id="content"> <div id="title">
<h1>Damselflies & Dragonflies</h1>
</div>
<div class="family")><?php echo $row_dragons_species['Order']; ?></div>
<div class="subfamily">
<?php echo $row_dragons_species['family']; ?>
<div class="main_image"><img src="../images/dragons/<?php echo $mainImage; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" />
<div class="capt"><?php echo $row_dragons_species['caption']; ?></div></div></
<div class="description">
<div class="text" id="name"><?php echo $row_dragons_species['Latin']; ?></div>
<div id="vernname"><?php echo $row_dragons_species['English']; ?></div>
<?php echo $row_dragons_species['text']; ?></div>
<ul class="gallery">
<?php do {
if ($row_dragons_species['filename'] == $mainImage) {
$row_dragons_species['caption'];
}?>
<li><a href="<?php echo $_SERVER['PHP_SELF'];?>?image=<?php echo $row_dragons_species['filename']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['filename']; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" /></a></li>
<?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?>
</ul>
<div id="footer">
<?php include('../includes/footer.inc.php'); ?>
</div></div>
</div>
</body>
</html>
<?php
mysql_free_result($dragons_species);
?>
The code for my master page dragons.php is as follows
<?php require_once('../Connections/cjwebsite.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_cjwebsite, $cjwebsite);
$query_dragons_species = "SELECT id, Latin, English, Thumbs FROM dragons";
$dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
$row_dragons_species = mysql_fetch_assoc($dragons_species);
$totalRows_dragons_species = mysql_num_rows($dragons_species);mysql_select_db($database_cjwebsite, $cjwebsite);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Odonata</title>
<link href="../Css/menu.css" rel="stylesheet" type="text/css" />
<link href="../Css/dragons.css" rel="stylesheet" type="text/css" />
<body>
<div id="header">
<?php include('../Includes/logo2.inc.php'); ?></div>
<div id="content"> <div id="title">
<h1>Damselflies</a> & Dragonflies</h1>
<div id="sidebar">
<?php include('../Includes/menu2.inc.php'); ?>
<div id="text">
<h2>ODONATA</h2>
</h2>
<p>Ten species have been recorded on the islands, of which seven are common and widely distributed. The Golden-ringed Dragonfly and the Emerald Damselfly are both very scarce, whilst the record of the Azure-winged Dragonfly on Lewis is unconfirmed.
<?php do { ?>
<div class="speciesbox"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['Thumbs']; ?>" /></a>
<div class="latin"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><?php echo $row_dragons_species['Latin']; ?></a>
<div class="english"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><?php echo $row_dragons_species['English']; ?></a> </div>
</div></div>
<?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?> </div>
<div id="footer">
<?php include('../includes/footer.inc.php'); ?>
</div>
</body>
</html>
<?php
mysql_free_result($dragons_species);
?>
Does this shed any light?
Many thanks
CJ. -
Customizing details page link in BCS list or custom details page redirection
Hello, I'm having fun with Sharepoint 2013 and studio 2013, just started dev few months ago -)
I have some external lists pointing to external content type, I would like to redirect to a custom detail page when I click on one of the list item using one of the selected field value as a URL parameter.
May I do some code with the readItem method of the BCS definition ? or create a view on my external list with a calculated field ?
thank you for helping me.
RegardsIs this the link you have been using? Credit card https://helpx.adobe.com/utilities/credit-card.html
-
Error when the link is clicked for detail page
Hello I am creating pages using MySql and PHP with dream weaver. I created my master record set and detail page. the master record set works b but when you click the link to bring up the details page I get this error
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name = 'Brandon' LIMIT 0, 10' at line 1"
Any help with guidance on trouble shooting error would be greatly appreciated.
David=====================================================Master page=============================================================
<?php require_once('Connections/Onantional.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$currentPage = $_SERVER["PHP_SELF"];
$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
mysql_select_db($database_Onantional, $Onantional);
$query_Recordset1 = "SELECT * FROM Roster";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $Onantional) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
$queryString_Recordset1 = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_Recordset1") == false &&
stristr($param, "totalRows_Recordset1") == false) {
array_push($newParams, $param);
if (count($newParams) != 0) {
$queryString_Recordset1 = "&" . htmlentities(implode("&", $newParams));
$queryString_Recordset1 = sprintf("&totalRows_Recordset1=%d%s", $totalRows_Recordset1, $queryString_Recordset1);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table border="1" align="center">
<tr>
<td>First name</td>
<td>Last Name</td>
<td>Conference</td>
<td>email</td>
</tr>
<?php do { ?>
<tr>
<td><a href="details.php?recordID=<?php echo $row_Recordset1['First name']; ?>"> <?php echo $row_Recordset1['First name']; ?> </a> </td>
<td><?php echo $row_Recordset1['Last Name']; ?> </td>
<td><?php echo $row_Recordset1['Conference']; ?> </td>
<td><?php echo $row_Recordset1['email']; ?> </td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<br />
<table border="0">
<tr>
<td><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, 0, $queryString_Recordset1); ?>">First</a>
<?php } // Show if not first page ?>
</td>
<td><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, max(0, $pageNum_Recordset1 - 1), $queryString_Recordset1); ?>">Previous</a>
<?php } // Show if not first page ?>
</td>
<td><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, min($totalPages_Recordset1, $pageNum_Recordset1 + 1), $queryString_Recordset1); ?>">Next</a>
<?php } // Show if not last page ?>
</td>
<td><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, $totalPages_Recordset1, $queryString_Recordset1); ?>">Last</a>
<?php } // Show if not last page ?>
</td>
</tr>
</table>
Records <?php echo ($startRow_Recordset1 + 1) ?> to <?php echo min($startRow_Recordset1 + $maxRows_Recordset1, $totalRows_Recordset1) ?> of <?php echo $totalRows_Recordset1 ?>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
=====================================================end master ========================================================
========================================================details page=========================================================
<?php require_once('Connections/Onantional.php'); ?><?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$maxRows_DetailRS1 = 10;
$pageNum_DetailRS1 = 0;
if (isset($_GET['pageNum_DetailRS1'])) {
$pageNum_DetailRS1 = $_GET['pageNum_DetailRS1'];
$startRow_DetailRS1 = $pageNum_DetailRS1 * $maxRows_DetailRS1;
$colname_DetailRS1 = "-1";
if (isset($_GET['recordID'])) {
$colname_DetailRS1 = $_GET['recordID'];
mysql_select_db($database_Onantional, $Onantional);
$query_DetailRS1 = sprintf("SELECT * FROM Roster WHERE First name = %s", GetSQLValueString($colname_DetailRS1, "text"));
$query_limit_DetailRS1 = sprintf("%s LIMIT %d, %d", $query_DetailRS1, $startRow_DetailRS1, $maxRows_DetailRS1);
$DetailRS1 = mysql_query($query_limit_DetailRS1, $Onantional) or die(mysql_error());
$row_DetailRS1 = mysql_fetch_assoc($DetailRS1);
if (isset($_GET['totalRows_DetailRS1'])) {
$totalRows_DetailRS1 = $_GET['totalRows_DetailRS1'];
} else {
$all_DetailRS1 = mysql_query($query_DetailRS1);
$totalRows_DetailRS1 = mysql_num_rows($all_DetailRS1);
$totalPages_DetailRS1 = ceil($totalRows_DetailRS1/$maxRows_DetailRS1)-1;
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table border="1" align="center">
<tr>
<td>First name</td>
<td><?php echo $row_DetailRS1['First name']; ?> </td>
</tr>
<tr>
<td>Last Name</td>
<td><?php echo $row_DetailRS1['Last Name']; ?> </td>
</tr>
<tr>
<td>Conference</td>
<td><?php echo $row_DetailRS1['Conference']; ?> </td>
</tr>
<tr>
<td>email</td>
<td><?php echo $row_DetailRS1['email']; ?> </td>
</tr>
</table>
</body>
</html><?php
mysql_free_result($DetailRS1);
?> -
A litle Help in the Master-Detail Pages
Hello everybody how can i have more than recordset in the detail page because im stuck
Okey here is my Databases tables :
Manga :
1
title
varchar(250)
latin1_swedish_ci
No
Change
Drop
More
2
episode
varchar(250)
latin1_swedish_ci
No
None
Change
Drop
More
3
language
varchar(250)
latin1_swedish_ci
No
None
Change
Drop
More
4
link
varchar(250)
latin1_swedish_ci
No
None
Change
Drop
More
5
id
int(11)
No
None
AUTO_INCREMENT
Change
Drop
More
Language Table :
1
lang_id
int(11)
No
None
AUTO_INCREMENT
Change
Drop
More
2
code
varchar(200)
latin1_swedish_ci
No
None
Change
Drop
More
it contain 2 lign :
+ Options
Edit
Inline Edit
Copy
Delete
1
VostFR
Edit
Inline Edit
Copy
Delete
2
VoiceFR
Manga_list :
1
id
int(11)
No
None
AUTO_INCREMENT
Change
Drop
More
2
list
varchar(250)
latin1_swedish_ci
No
None
Change
Drop
More
Check All / Uncheck All With selected: Browse Change Drop Primary Unique
the lign of this table:
+ Options
Edit
Inline Edit
Copy
Delete
1
One-piece
Edit
Inline Edit
Copy
Delete
2
Naruto
Edit
Inline Edit
Copy
Delete
3
Death-note
Edit
Inline Edit
Copy
Delete
4
Bleach
I didn't understand what the "drills" mean's, but i will explain more sorry i'm not english , the master page is listing the "Title/Episode/language"
For the site it's not online i test in the localhost, here is how i want to my pages look's like and thank's
http://www.dpstream.net/manga-3-episode-535%20[VOST%20FR].html
PS: if im doing anything wrong in the database you can help me and thank's
(do you have anything to keep in touche like (Facebook,MSN...), or anything like that f you do PM it to me ? and thank's a lot for helping me
Maybe you are looking for
-
Error while creating Complex Structure
Hi Friends, When I am creating a complex structure with KOMG,KONH,KONP,which are related to pricing conditions data. But I am getting the error as "<b>Field name 'ZZEMPL1' can already exist in a subsequent system</b>" for some of the customer fi
-
Archiving message in Adapter Engine in XI 3.0
Dear all, Could you please explain the procedure of Archiving Messages in Adapter Engine in XI 3.0. I have read many blogs regarding deleting messages in Adapter Engine, but nowhere i can see about Archiving. I have been told that activating and sche
-
Prestaged OSD using SCCM 2012 SP1 windows Partition variable is not being set
Hello All I need some assistance with a workaround. I am using a presaged task sequence created from a working network / PXE deployment TS for windows 7. This TS sets a variable for the OS partition called "Windows" and the value is set in the Parti
-
How to disable a Firefox Add-ons QuickFox Notes
How to disable a QuickFox Notes
-
Hi, I find that iphoto softens my images as I open them. I prefer the way they look before this happens. Is this normal? If so is there a image viewer that doesnt soften the images ehan I open them? Thanks, Simon.