Spry accordion with php mysql as data
Hello
I`m trying to create a spry accordion where the Labels are pulled from a mysql database table and the Content of that label is pulled from data in the same database. I tried adding first the spry accordion and then created 1 recordset for the labels and a second recordset for the content , then I added a repeat region for the labels DIV and inside this div I added a repeat region for the content.
Unfortunatly when viewed in the browsers the accordion doesn`t work.
Can anyone look at the code and tell me where is the mistake.
Thanks
<?php require_once('Connections/log.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_log, $log);
$query_log_year = "SELECT DISTINCT Year(`23849`.acoff) AS yy FROM `23849` ORDER BY Year(`23849`.acoff)";
$log_year = mysql_query($query_log_year, $log) or die(mysql_error());
$row_log_year = mysql_fetch_assoc($log_year);
$totalRows_log_year = mysql_num_rows($log_year);mysql_select_db($database_log, $log);
$query_log_year = "SELECT DISTINCT Year(`23849`.acoff) AS yy FROM `23849` ORDER BY Year(`23849`.acoff)";
$log_year = mysql_query($query_log_year, $log) or die(mysql_error());
$row_log_year = mysql_fetch_assoc($log_year);
$totalRows_log_year = mysql_num_rows($log_year);
$mhour_log_mon = "0";
if (isset($row_log_year['yy'])) {
$mhour_log_mon = $row_log_year['yy'];
mysql_select_db($database_log, $log);
$query_log_mon = sprintf("SELECT DISTINCT DATE_FORMAT(`23849`.acoff, '%%M') AS mon , DATE_FORMAT(`23849`.acoff, '%%m') AS m , sum(`23849`.ablock) as toth FROM `23849` WHERE YEAR(`23849`.acoff) = %s GROUP BY m ORDER BY m ", GetSQLValueString($mhour_log_mon, "int"));
$log_mon = mysql_query($query_log_mon, $log) or die(mysql_error());
$row_log_mon = mysql_fetch_assoc($log_mon);
$totalRows_log_mon = mysql_num_rows($log_mon);
?>
<!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>testing ajax php mysql</title>
<script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="Accordion1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<?php do { ?>
<div class="AccordionPanelTab"><?php echo $row_log_year['yy']; ?></div>
<?php } while ($row_log_year = mysql_fetch_assoc($log_year)); ?>
<div class="AccordionPanelContent">
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<?php do { ?>
<tr>
<td><?php echo $row_log_mon['mon']; ?></td>
<td><?php echo $row_log_mon['toth']; ?></td>
</tr>
<?php } while ($row_log_mon = mysql_fetch_assoc($log_mon)); ?>
</table>
</div>
</div>
</div>
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
//-->
</script>
</body>
</html>
<?php
mysql_free_result($log_year);
mysql_free_result($log_mon);
?>
You only have 1 "AccordianPanel" which contains a list of "AccordianPanelTab" elements, then a list of "AccordianPanelContent" elements.
You need to have a list of "AccordianPanel" elements, each containing a pair or "AccordianPanelTab" and "AccordianPanelContent" elements.
HTH,
Randy
Similar Messages
-
Inserting special character like apostrophes with PHP/Mysql
Hi friends,
I have a problem with php/mysql. I have created a form inton a php page with dreamweaver and when i try to fill the form with a string containing apostrophe ( ' ), i have a error. It seems that the insertion is not possible. Could you have any idea for that. I give you the php dreamweaver code and thank you for your help.
<?php require_once('Connections/Mainconnect.php'); ?>
<?php require_once('Zend/Date.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":
if ($theValue=="")
$theValue="NULL";
else
$zendDate=new Zend_Date($theValue,"dd/MM/yyyy");
$theValue="'".$zendDate->toString("yyyy-MM-dd")."'";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
$updateSQL = sprintf("UPDATE pers_soc_reg SET field1=%s, field2=%s,
GetSQLValueString($_POST['field1'], "text"),
GetSQLValueString($_POST['field2'], "double"));"Normally, you canot use mysql_real_escape_string without connection to database"
That is not true at all. Try running the following script.
<?php
if ($_POST['submit']){
$x1=$_POST['test1'];
foreach ($_POST as $key => $value) {
if (!is_array($value)){
$_POST[$key] = mysql_real_escape_string($value);
extract($_POST);
echo "The text after 'becomes' should be escaped (\')<br/>";
echo "$x1 becomes $test1<br/>";
?>
<hr/>
<form action="#" method="post" />
Enter some text, including an apostrophe: <input name="test1" type="text"><br/>
<p><input name="submit" value="submit" type="submit"/>
</form> -
I want to use numbers from a database as prices. In the database (PHP/MySQL) the structure is "decimal(9,2)". If I put it out with PHP a number like 9.02 is € 9.02 but 9.20 looks like this € 9.2. How do I put prices with PHP/MySQL?
I hope my question is clear.. Thankx for any further help.Use the PHP number_format() function.
-
Spry accordion with nested accordions
I'm building an FAQ list with topics and sub topics, using a
containing Spry accordion with multiple children, though just the
one extra level deep. The nested accordions won't expand the full
list. Instead, the div height remains fixed, and I get a scroll
bar. Any ideas what part of the javascript to tweak to open up this
functionality?
Here's the page:
http://www.pixmission.net/dev/tex/faqs.htm
thanksalancymru escribió:
> I'm building an FAQ list with topics and sub topics,
using a containing Spry
> accordion with multiple children, though just the one
extra level deep. The
> nested accordions won't expand the full list. Instead,
the div height remains
> fixed, and I get a scroll bar. Any ideas what part of
the javascript to tweak
> to open up this functionality?
>
> Here's the page:
>
http://www.pixmission.net/dev/tex/faqs.htm
>
> thanks
>
Sure! It has to be done in two parts. First part from your
SpryAccordion.css file and the second it is adding a new
property to the
Accordion object when its initialized.
First part:
Select .AccordionPanelContent class
Delete Height property
Change the value of overflow from auto to hidden;
Second part:
In the constructor function at the bottom of your faqs.htm
file, amend
this code:
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
var Accordion9 = new Spry.Widget.Accordion("Accordion9");
to this:
var Accordion1 = new Spry.Widget.Accordion("Accordion1",
{useFixedPanelHeights:false});
var Accordion9 = new Spry.Widget.Accordion("Accordion9",
{useFixedPanelHeights:false});
Hope this helps. -
Spry Accordion with custom scrollbar
I'm trying to find a Spry Accordion with a custom scrollbar.
There are other accordion scripts out there but I am most
comfortable working with the Spry script. I cant seem to find any
of these with a custom scrollbar. Can someone here help?Mr. Andersson wrote:
> I'm trying to find a Spry Accordion with a custom
scrollbar. There are other
> accordion scripts out there but I am most comfortable
working with the Spry
> script. I cant seem to find any of these with a custom
scrollbar. Can someone
> here help?
Spry has no custom scroll bars. Currently Spry (as of 1.6.1)
doesn't have drag and drop which would be required for a custom
scroll bar. Best you might be able to do would be to try to style
the browser provided scroll bars, but that's not valid CSS, and I
know that Firefox doesn't show the styled scrollbars (IE does).
Take a look at this page in IE:
http://www.iconico.com/CSSScrollbar/
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
Problem when displaying images when working with PHP, mysql and dreamweaver in a brower
Hey Guys
I am new to dynamic development but I already did some
research and tutorials about how to get a dynamic web site working
with PHP and Mysql in Dreamweaver. I set up a test page to view
some content on it directly from the mysql database and it worked
just fine in dreamweaver only when I pressed the
live data view.
When I tried to view the same page using the browser preview
with firefox and internet explorer, plain text from the database
was correctly displayed on the brower but the images were absent.
In the mysql database I used the varchar as my picture data
type field so that I will refer in dreamweaver in the data binding
panel in the img.src to the picture column of my database.
I anyone can tell me what am I doing wrong so that my
pictures are not displayed in the browser when i click the browser
preview facility in dreamweaver I would be very very and very
pleased ! :)The odds are that it is the way that you have referenced the
images rather
than an issue with the database. If you have the images root
relative like
this "/images" then they will work in preview, and on the
webserver, but
will not view when looking at the file via localhost.
If possible make the links page relative and then they should
work fine.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"mariosal026" <[email protected]> wrote in
message
news:ea3nq2$9ol$[email protected]..
> Hey Guys
>
> I am new to dynamic development but I already did some
research and
> tutorials
> about how to get a dynamic web site working with PHP and
Mysql in
> Dreamweaver.
> I set up a test page to view some content on it directly
from the mysql
> database and it worked just fine in dreamweaver only
when I pressed the
>
live
> data view.
>
> When I tried to view the same page using the browser
preview with firefox
> and
> internet explorer, plain text from the database was
correctly displayed on
> the
> brower but the images were absent.
>
> In the mysql database I used the varchar as my picture
data type field so
> that
> I will refer in dreamweaver in the data binding panel in
the img.src to
> the
> picture column of my database.
>
> I anyone can tell me what am I doing wrong so that my
pictures are not
> displayed in the browser when i click the browser
preview facility in
> dreamweaver I would be very very and very pleased ! :)
> -
Thinking of learning to build sites with PHP/MySQL
Is it worth it to invest the time and brain power? I've been
using Dreamweaver for years. None of my sites really are so large
that I'm having issues. But, I could see some down the road that
might be too complex and large.
I'm having some problems figuring out where to begin. Any
suggestions on books that specifically deal with Dreamweaver and
database driven sites?David Powers 'Foundation PHP for Dreamweaver 8' is what got
me started. I
was able to work through most of it in a weekend. He takes
you step by step
on how to set up your computer to run PHP/MySQL, and then you
build a series
of increasingly complex projects with each new aspect of
PHP/MySQL that he
teaches.
He has some newer books out, too, if you have a more recent
version of DW:
http://foundationphp.com/
...Brenda
"PeteC" <[email protected]> wrote in
message
news:g4dn2u$1gh$[email protected]..
> synterx wrote:
>> Is it worth it to invest the time and brain power?
I've been using
>> Dreamweaver for years. None of my sites really are
so large that I'm
>> having issues. But, I could see some down the road
that might be too
>> complex and large.
>>
>> I'm having some problems figuring out where to
begin. Any suggestions
>> on books that specifically deal with Dreamweaver and
database driven
>> sites?
>
> Anything by David Powers (of this parish) will be an
exceedingly good
> investment..
>
> Pete.
> --
> Peter Connolly
>
http://www.kpdirection.com
> Utah
> -
I have a Spry Accordion which I'm using on the same page as an iFrame setup. I want to link the AccordionPanelTab to an iFrame link.
In order to get the iFrame to work I need to link like this:
<a href="iframepage.php" onclick="return changeIframeSrc('iframe', this.href);" target="iframe">
This works for links within AccordionPanelContent but not if I link the AccordionPanelTab.
I can get the AccordionPanelTab to link by
<a href="iframepage.php" onclick="window.location=this.href;return false;">
but not within the iFrame. Is there a way of combining these two to make them work or another way of making the AccordionPanelTab link?
Many thanks.Have a look at the following
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet">
</head>
<body>
<p>Open by Panel Index:
<a href="#" onclick="Accordion1.openPanel(0); return false;">0</a> |
<a href="#" onclick="Accordion1.openPanel(1); return false;">1</a> |
<a href="#" onclick="Accordion1.openPanel(2); return false;">2</a> |
<a href="#" onclick="Accordion1.openPanel(3); return false;">3</a>
</p>
<div id="Accordion1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab">Label 1</div>
<div class="AccordionPanelContent">Content 1</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Label 2</div>
<div class="AccordionPanelContent">Content 2</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Label 3</div>
<div class="AccordionPanelContent">Content 3</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Label 4</div>
<div class="AccordionPanelContent">Content 4</div>
</div>
</div>
<script src="SpryAssets/SpryAccordion.js"></script>
<script>
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
</script>
</body>
</html>
Copy and paste into a test document making sure that the links are correct. Test in your favourite browser. -
Help with php mysql connect script
Ok guys im new to php mysql and i'm trying to insert some
form information in my database. Im using a script from sitepoint
in which i went through the tutorial did some experiments of my own
and it worked....
but now i'm getting this error which i cant figure out....
Error placing order: 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 'order SET product ='1',
size='medium', color='', quantity = '1' at line 1
here is the page
http://vaughntucker.com/imagecon/hats.php
and this is the script
<?php
//default page display
//connect to database
$dbcnx = @mysql_connect('p3nl41mysql7.secureserver.net',
'imagecon', 'Dub*boss_1');
if (!$dbcnx) {
echo '<p> Unable to connect to the '. 'database server
at this time.</p>';
exit();
//select database
if (!@mysql_select_db('imagecon')) {
exit('<p>Unable to locate the ' .
'database at this time.</p>');
//Mysql query add joke
if (isset($_POST['submit'])) {
$product = 1;
$size = $_POST['size'];
$color = $_POST['color'];
$quan = $_POST['quantity'];
$sql = "INSERT INTO order SET
product ='$product',
size='$size',
color='$color',
quantity = '$quan',
date = CURDATE()";
}else{
echo 'No data submited';
if (@mysql_query($sql)) {
echo '<p>Your order has been submited.</p>';
} else {
echo '<p>Error placing order: ' .
mysql_error() . '</p>';
?>
thanks in advance$sql = "INSERT INTO order SET
product ='" . $product . "',
size='" . $size . "',
color='" . $color . "',
quantity = '" . $quan . "',
I believe there are other more elegant ways to do this, as
well.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"beatzMalone" <[email protected]> wrote in
message
news:[email protected]...
> Ok guys im new to php mysql and i'm trying to insert
some form information
> in
> my database. Im using a script from sitepoint in which i
went through the
> tutorial did some experiments of my own and it
worked....
>
> but now i'm getting this error which i cant figure
out....
>
> Error placing order: 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
> 'order SET product ='1', size='medium', color='',
quantity = '1' at line 1
>
> here is the page
>
http://vaughntucker.com/imagecon/hats.php
>
> and this is the script
> <?php
> //default page display
> //connect to database
> $dbcnx = @mysql_connect('p3nl41mysql7.secureserver.net',
'imagecon',
> 'Dub*boss_1');
> if (!$dbcnx) {
> echo '<p> Unable to connect to the '. 'database
server at this
> time.</p>';
> exit();
>
> }
>
> //select database
> if (!@mysql_select_db('imagecon')) {
> exit('<p>Unable to locate the ' .
> 'database at this time.</p>');
> }
>
> //Mysql query add joke
> if (isset($_POST['submit'])) {
> $product = 1;
> $size = $_POST['size'];
> $color = $_POST['color'];
> $quan = $_POST['quantity'];
> $sql = "INSERT INTO order SET
> product ='$product',
> size='$size',
> color='$color',
> quantity = '$quan',
> date = CURDATE()";
> }else{
> echo 'No data submited';
>
> }
> if (@mysql_query($sql)) {
> echo '<p>Your order has been submited.</p>';
> } else {
> echo '<p>Error placing order: ' .
> mysql_error() . '</p>';
> }
>
>
>
> ?>
>
> thanks in advance
> -
Creating a flash website to work with php & MYSQL for MMORPG
Hi i have a website which is a gangster MMORPG, it using PHP,
CSS, HTML and some javascript but however with the amount of game
similar to mine i want to make it unique so i bought "building
flash websites for dummies" i have read must of it and understand
most of it. but however don't really have a clue i it could
actually work with my website.
what i want to know is can it work with my current PHP &
MYSQL, so for example i want to create a logging page with flash to
replace my old PHP/HTML one this will be my first crack at it. but
will flash be able to check the MYSQL database and send error
messages back to the view etc.Yeah, this can work... My recommendations would be to read a
couple articles in the dev center on this topic, that should get
you started...
http://www.adobe.com/devnet/flash/articles/flash_databases.html
http://www.adobe.com/devnet/flash/articles/datawizards.html
http://www.adobe.com/devnet/flash/articles/ria_dataservices.html -
Spry Accordion with Image Icons
I've created a Spry Accordion here:
http://www.holidaycardsunlimited.com/tips-advice/business-use/Business-Holiday-Cards.html
The client would like to have images (arrows or plus/minus) when the accordion expands or collapses.
Any ideas how to implement this?
Thanks in advance!finally this css markup worked very fine for me
@charset "UTF-8";
.Accordion {
border: none;
outline:none;
overflow: hidden;
-moz-outline: none;
height:700px;
.AccordionPanel {
margin: 0px;
padding: 0px;
.AccordionPanelTab{
-moz-user-select: none;
-khtml-user-select: none;
background-color: #003266;
border-top: solid 1px white;
padding-top: 6px;
padding-bottom:6px;
padding-left: 24px; /* this created space for the images on the left*/
margin: 0px;
color: white;
font-weight: bold;
cursor: pointer;
background-image: url(../wm2010/img/gif/plus.gif);
background-repeat:no-repeat;
background-position: 0px;
.AccordionPanelContent{
background-color: #f6f6f6;
overflow: auto;
margin: 0px;
padding: 0px;
height:500px;
.AccordionPanelTab a{
color: black;
text-decoration: none;
// this is most important for IE
.AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
color: orange;
background-image: url(../wm2010/img/gif/minus.gif);
background-repeat:no-repeat;
background-position: 0px;
// this is the firefox guarantee
.AccordionPanelOpen .AccordionPanelTab{
color: orange;
background-image: url(../wm2010/img/gif/minus.gif);
background-repeat:no-repeat;
background-position: 0px;
.AccordionPanelTabHover {
color: orange;
background-image: url(../wm2010/img/gif/arrow.gif);
background-repeat:no-repeat;
background-position: 0px; -
Using Spry Navigation with php includes in a Dreamweaver dwt file
I am working on a large site and am attempting to set up templates in Dreamweaver, which will include the navigation as an includes file with php. First of all, wondering if it is possible? Second, how do I address the problem of my pages being at different levels within the site? Very new to php coding, but my pages that are not connected to a template are working properly.
Thanks for your help.
KimYeah! David! I don't know what you get paid, but it is not enough. After replacing the file, it is working. I did change the links in my index page and took off the /. But the menu is now showing on all the pages now that were having issues. I probably corrupted it somehow. I really appreciate your help with this. What a way to spend the holiday. I guess we are making it true to its name. This has definitely been laborous. If there is such a word.
Send me your address and i will mail you some of the best chocolate chip cookies.
Kim
P.S. Can I take my links down up there? -
Hi,
I have come across some buggy stuff today in CS4 that I have never seen before. Anytime I would filter a recordset using "URL Parameter" ,Dreamweaver would totaly mess up the recorset. When I go to "Advanced" I see that there is an additional SQL Variable named "totalRows" in addition to another one named "colname". Everytime I cleaned up the SQL statement only to revert it back.
Has anyone seen that?
Any help would be appreciated
KalOK...my bad. My problem basically amounted to "user error", which as we all know is more often than not the case. I have discovered that when you manipulate a MySQL recordset and associated variables via the Bindings panel, you must be VERY CAREFUL making additions or changes. I guess I have become complacent in that DW CS4 has proven to be very intuitive in 'cleaning up' old code in favor of subsequent modifications. Not really the case, in this particular instance. The interface basically inserts your changes via the Bindings edits ON TOP OF the existing code. It will often duplicate the recordset, code-wise. And if you modify a variable, thinking that DW will go in and clean up your old statements, beware - it will not! You are better off manually changing the code in the program itself. I am pressed for time here, but will be more than happy to provide specific examples if asked to, at a later date. Thanks much, Murray!
-
Spry accordion with effect appear/fade
Hi,
I'm looking for a solution with the effect appear/fade which I've putten on an image.
http://www.home-maastricht.nl/signage.html
When I open the tab the content image is bright and the tab is dark (this is ok).
The image from the tab must lighten up when I close the content tab.
The content tab can be close by clicking on the tab image and also by clicking on the content image.
Can you follow me?
And the most important, can you help me?
Thanks al lot !!
Regards,
CarlaSorry, it was the Appear/Slide Effect
-
Generating Excel/Word Document with PHP/MySQL
Hi all,
I would like to know the best way I could create a Excel/WORD
document that can take the name, address, from my mailing list
table and use mail merge to print envelopes?
Any ideas? Or is there any software than can help me?
Thank you in advanceLuis Godinho Ramos wrote:
> SELECT *
> FROM produtos
> WHERE prod_modelo LIKE %colname% AND prod_funcao LIKE
%colname% AND
> prod_descricao LIKE % colname% AND prod_tags LIKE
%colname%
> ORDER BY prod_modelo ASC
The second example you give is closer, but you need to
enclose the query
fields in quotes and use OR rather than AND...
SELECT * FROM produtos WHERE prod_modelo LIKE '%colname%' OR
prod_funcao
LIKE '%colname%' OR prod_descricao LIKE '%colname%' OR
prod_tags LIKE
'%colname%' ORDER BY prod_modelo ASC
HTH,
Pete.
Peter Connolly
http://www.kpdirection.com
Utah
Maybe you are looking for
-
I have a sound problem with my HP Pavilion dv6t-7000 CTO Entertainment Notebook PC
It was working properly but for some reasons it is not working I reinstall the IDT Codec driver but nothing happen What should I do in this case
-
New fields in purchasing contract.
Hi SAP gurus, Any ideas how to add quickly new custom fields to contract header data? Thanks for replies Best regards
-
Hi all, i have to create a work flow to send notifications along with attachments. I am successful in sending when there is one attachment. But i couldn't make out how to send more than 1 attachment. The attachment number may vary from 0-10. How to k
-
My boss has an instructional video in which he was hoping to have one-third of the screen being him standing there speaking on key points, and the other 2/3 ( or half and half) bringing up the points in text as he brings them up....How would I go abo
-
How to delete all photos stored in icloud? Current and previous.
If I turn off the photo stream on my icloud settings using an iphone5s, will all the pictures be deleted including the previous ones that I took and not just the ones on my phone at the moment?