Is this a CONCAT problem re: David Powers, or a Magic Quotes problem...

I've tried to figure this out with the posts (and some info
on David's site, etc), and I just can't seem to figure out the real
problem.
I'm working on a tutorial and I can't figure out if the error
message is correct and it's improper coding inserted by DW (and if
so, I can't figure out what to correct) or
If this is a problem with DW8.0.2 along the lines of what the
hotfix that seems to be so hard to get will fix, or
If this is along the lines of an example of why magic quotes
should be turned off, and if so, where/how do I turn them off, and
will that correct the code, and if not, how would it be properly
corrected?
Here is the error message:
Parse Error: parse error, unexpected '=', expecting ',' or
')' in <thefile> on line 34.
Here is the code it is referencing:
32 $Search_rsSearch = "abc";
33 if (isset(#txtSearch#)) {
34 $Search_rsSearch = (get_magic_quotes_gpc()) ? #txtSearch#
: addslashes(#txtSearch#);
35 }
36 mysql_select_db($database_dorknozzle, $dorknozzle);
37 $query_rsSearch = sprintf("SELECT * FROM EmployeeStore
WHERE ItemName LIKE CONCAT('%%', %s,
'%%')", GetSQLValueString($Search_rsSearch, "text"));
38 $rsSearch = mysql_query($query_rsSearch, $dorknozzle) or
die(mysql_error());
39 $row_rsSearch = mysql_fetch_assoc($rsSearch);
40 $totalRows_rsSearch = mysql_num_rows($rsSearch);
I'm using php4.4.4, mysql5.0.24, apache2.2.3
Thank You,
Jeff G.

xViPERed wrote:
> If this is a problem with DW8.0.2 along the lines of
what the hotfix that
> seems to be so hard to get will fix,
That will fix part of your problem, but the error is caused
by something
else:
> Here is the error message:
>
Parse Error: parse error, unexpected '=', expecting ',' or
')' in
> <thefile> on line 34.
>
> Here is the code it is referencing:
> 32 $Search_rsSearch = "abc";
> 33 if (isset(#txtSearch#)) {
> 34 $Search_rsSearch = (get_magic_quotes_gpc()) ?
#txtSearch# :
> addslashes(#txtSearch#);
> 35 }
# is one of the PHP characters used to comment out part of a
script. I
suspect that you have got this from the Dreamweaver help
files, which
are particularly unhelpful on this point. The show the
runtime value
expression as #formFieldName#, which is ColdFusion style, not
PHP. You
need to replace #txtSearch# with something like
$_GET['search'] or
$_POST['search'].
What makes things worse is that the code inserted by 8.0.2
without the
hotfix is also incorrect. Line 34 should be something like
this:
$Search_rsSearch = $_GET['search'];
Line 37 is also wrong.
> 37 $query_rsSearch = sprintf("SELECT * FROM
EmployeeStore WHERE ItemName LIKE
> CONCAT('%%', %s,
> '%%')", GetSQLValueString($Search_rsSearch, "text"));
It should be this:
$query_rsSearch = sprintf("SELECT * FROM EmployeeStore WHERE
ItemName
LIKE %s", GetSQLValueString("%" . $Search_rsSearch . "%",
"text"));
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/

Similar Messages

  • David Powers cs5 with php...Zend

    This one is aimed for David Powers. We are using your book for my advanved programming class. I continually have problems because they had us buy a domain instead of the one the book does it. At this point I'm on page 222ish, installing Zend. Obviously I'm using dreamweaver and my domain is with godaddy.com. I'm doing the section where you are are installing the library. I've got the library.php with no errors, I'm connected to my domain, and I have the zend file inside my local site folder. I've tried in the C drive but I cotinually get the same error:
    Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/79/7340479/html/library.php on line 4
    Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1. 11.4-minimal\library') in /home/content/79/7340479/html/library.php on line 4
    I've tried putting the zend folder in c, desktop, in side local site folder and same thing everytime. Any help would be appreciated.

    Re: David Powers cs5 with php...Zend
    Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.
    First, are you trying to install zend at godaddy?
    Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in/home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines
    I appreciate it. the "C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library' is where the file path.I use Godaddy but I have it zend on my computer and am just trying to get it to run. I tried running it from desktop, C:(where it's at), andneven put it in the file manager on godaddy and tried that path...
    the code I'm using is:
    <?php
    $library = 'C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader = Zend_Loader_Autoloader::getInstance();
    if ($loader) {
    echo 'OK';
    } else {
    echo 'We have a problem';
    I'm followed the book step by step but...
    when i click autoloader.php in the tab bar it has a get option. but when i click it it says "operation failed because it is not on the remote site.

  • David Powers Dreamweaver CS5 with PHP training from the source mail connector problem

    Hello,
    first I will say great work david this is great book, and i found everything i neede in it.
    I have one problem.
    I have managed to get to lesson 8 and i couldnt wait so i started live project and incororated everything in it learned from this book.
    But this is the problem.
    I have hosting on bluehost which makes mail conector from lessons 7-8 with gmail not to send email in example when i try to recover forgoten password.
    The scripts changes the token in database in users table, token is created, and i get message that the mail was sent but nothing comes to my mail.
    Same password login and everything works local but on bluehost server  wont send mail.
    I contacted them and they said that i have to create mail on server from which mail will be sent.
    I did that too.
    But for what ever i put in mailconector array cant get that mail, and i really dont know what to do and who to ask.
    Until this point i could get every problem solved put this bugs me because this is the last stage of what i was tryong to do and that is to incorporate login system from the book to live page.
    this is the code i have:
    <?php
    $mailhost='ssl://mail.majapanic-tarot.com';
    $mailconfig=array(    'auth'         =>     'true',
                        'username'     =>     '[email protected]',
                        'password'     =>     'password',
                        'ssl'        =>    'ssl',
                        'port'        =>     '465');
    $transport=new Zend_Mail_Transport_Smtp($mailhost,$mailconfig);
    Zend_Mail::setDefaultTransport($transport);
    and this is what they stated in info about the mail:
    Mail Server Username: majapanic+majapanic-tarot.com  >>>>>>>> this plus i think is (at)
    Incoming Mail Server: mail.majapanic-tarot.com
    Incoming Mail Server: (SSL) box344.bluehost.com
    Outgoing Mail Server: mail.majapanic-tarot.com (server requires authentication) port 26
    Outgoing Mail Server: (SSL) mail.majapanic-tarot.com (server requires authentication) port 465
    Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS)
    Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)
    Please HELP!

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • "Adobe Dreamweaver PHP Training from David Powers

    “Adobe® Dreamweaver® CS5 with PHP Training from the Source  David Powers
    Lesson 7 Validating Input on the Server
    I have reached page 445, and become completely stuck - I've been about three weeks trying to sort the problem but cant get anywhere.  Not sure what to do from here so any advice would be really appreciated.  The problem:
    I have completed the script exactly as instructed, when I go live (local sever), I get a blank screen, OK, does not display.  I am sure this is something simple but I have done all the fault finding and am out foxed.  I know the local server works OK - I completed chapter 6 successfully - I can also run a php test page from the local folder that the file is stored in. i.e provictis/phpcs5.  I have saved my ZendFraework in a separate location as advised. i.e. User/SPENNY/...    
    This is the basic code:
    <?php
    $library='/Users/SPENNY/ZendFramework/library';
    set_include_path(get_include_path() . PATH_SEPARATOR .
    $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader=Zend_Loader_Autoloader::getInstance();
    if ($loader) {
              echo 'ok';
    } else {
              echo 'Huston we have a blinkin problem, but do not panic we will get things sorted';
    Gareth

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • For  David Powers ?

    David,
    Hope you having a good break from here - as you've not been
    around for
    a few days.
    When you are back - I need a little help please
    ~Malcolm N....
    ~

    > Come to think about it - Murray seemed to make the move
    to using php
    > only a few months ago - and given his enthusiasm for
    SSI's maybe this
    > tells something about the next release - or maybe I'm
    reading too much
    > between the lines (:-))
    You're looking for deep inner meaning in a shallow bowl, I'm
    afraid! 8)
    Templates are part of DW and will be for a long time. And
    personally, I
    have no problem with includes in DW templates.....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Malcolm N_" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Jan 2007 19:38:04 +0000, David Powers
    <[email protected]>
    > wrote:
    >>
    >>I'll wait for the summary. The basic thing to
    remember about include()
    >>is that it expects a relative path, an absolute path,
    or for the file to
    >>be in the PHP include path.
    >
    > Thanks David - at the moment things are under control,
    but I haven't
    > altered much of the site with DW.
    >
    >> Things get complicated if you use includes
    >>with Dreamweaver templates.
    >
    > Yes - well DW has been good at controlling some tricky
    things to date,
    > I hope that the next release makes using includes within
    simple
    > Template's a little easier.
    >
    > After all the Adobe Community Experts have been pushing
    the use of
    > SSI's very strongly in the last couple of years, telling
    us to abandon
    > tables, and complex templates (:-))
    >
    > Come to think about it - Murray seemed to make the move
    to using php
    > only a few months ago - and given his enthusiasm for
    SSI's maybe this
    > tells something about the next release - or maybe I'm
    reading too much
    > between the lines (:-))
    >
    > --
    >
    > ~Malcolm N....
    > ~

  • FTAO - David Powers

    David (php guru that you are
    , this is directed to you as I have no
    concept of this wee problem I have.
    I signed up with a new unix host, so that I could set up a
    link directory
    script for testing purposes. According to the help doc, once
    I typed in the
    path to the install script, this "you bewt" script was
    supposed to install
    itself and away I'd go. I had the following from the host
    after I asked why
    I was getting an 'internal error' trying to run the scrip:
    "the reason you are getting the internal server error is
    because we do not
    allow mod rewrites in the htaccess file. If you need to use
    these we can
    add them to your hosting container on the server. Please let
    us know."
    What does this mean exactly and would adding them for my use
    cause problems
    for my site or any other user on the server?
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.macromedia.com/devnet/dreamweaver/css.html
    - CSS Tutorials

    Thanks David,
    I asked the new host (who were suprisingly quick to respond
    to my initial
    support ticket - considering the time differences) to add the
    mod, which
    they did within minutes of my request. Now however, I'm
    getting a
    "forbidden' error.
    So off to email them again ;-)
    PS: I even get a standard install of Wordpress with the host,
    so will
    definitely have to get to your book one day soon !
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.macromedia.com/devnet/dreamweaver/css.html
    - CSS Tutorials
    "David Powers" <[email protected]> wrote in message
    news:[email protected]...
    > .: Nadia :. *ACE* wrote:
    >> David (php guru that you are
    , this is directed to you as I have no
    >> concept of this wee problem I have.
    >
    > That's very nice of you, Nadia, but mod_rewrite has
    nothing to do with
    > PHP; it's an Apache module.
    >
    >> "the reason you are getting the internal server
    error is because we do
    >> not allow mod rewrites in the htaccess file. If you
    need to use these we
    >> can add them to your hosting container on the
    server. Please let us
    >> know."
    >>
    >> What does this mean exactly and would adding them
    for my use cause
    >> problems for my site or any other user on the
    server?
    >
    > It means you can't add a mod_rewrite command through
    .htaccess, but the
    > server administrator is willing to do it for you. If
    it's set up
    > correctly, it should have no impact on your current site
    or anyone else's.
    >
    > Disclaimer: my knowledge of Apache is basically limited
    to simple things,
    > such as installing PHP, creating virtual hosts, and a
    little maintenance.
    > I leave things like mod_rewrite to the experts.
    WordPress uses mod_rewrite
    > to provide nice looking links to blog entries. I use it
    on my site, but
    > all the mod_rewrite stuff is handled by WordPress. I
    haven't touched it
    > myself.
    >
    > --
    > David Powers
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "Foundation PHP 5 for Flash" (friends of ED)
    >
    http://foundationphp.com/

  • Creating category lists with php (David Powers???)

    I am creating a dynamic content website with numerous entries under various categories. The categories are kept in a seperate mysql that looks something like this (an example):
    ID
    Main
    Sub
    1
    food
    candy
    2
    food
    meat
    3
    drink
    coke
    4
    drink
    snapple
    5
    drink
    dr. pepper
    6
    food
    bread
    I have created a page where the user can see all of the main categories. In the above case, food and drink. I do not want 'food' and 'drink' to be repeated three times. So I have used php code which david powers gives in his recipe: http://cookbooks.adobe.com/post_Create_nested_lists_from_a_recordset__PHP_-16720.html.
    The problem is that in the above case, the page will list: food, drink, food. This is because when the php passes through the 'drink's it then sees the last 'food' as being unique.
    How do I get rid of this issue (without having to to continuosly reorder my mysql table)?
    thanks
    P.S. I am posting this here and not on the above recipe page because I am hoping for a quicker response.

    Re: David Powers cs5 with php...Zend
    Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.
    First, are you trying to install zend at godaddy?
    Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in/home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines
    I appreciate it. the "C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library' is where the file path.I use Godaddy but I have it zend on my computer and am just trying to get it to run. I tried running it from desktop, C:(where it's at), andneven put it in the file manager on godaddy and tried that path...
    the code I'm using is:
    <?php
    $library = 'C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader = Zend_Loader_Autoloader::getInstance();
    if ($loader) {
    echo 'OK';
    } else {
    echo 'We have a problem';
    I'm followed the book step by step but...
    when i click autoloader.php in the tab bar it has a get option. but when i click it it says "operation failed because it is not on the remote site.

  • David Powers, please help...

    Hi David,
    I have posted a similar message on the general DW forum but I
    think this
    might be the more appropriate place; besides which I'm not
    getting much
    traction there.
    I'm creating a detail page to display records which contain
    anywhere
    from 1-12 images per record. I'm trying to make a small image
    gallery
    similar to what you have in your PHP DW8 book pg. 414, though
    it will
    only show the images for the current record. The problem is
    all the
    images are different sizes and orientations, so I need a way
    to pass the
    image width to the javascript function so it will display the
    image in a
    size that fits my container. I have been scratching my head
    on this one
    for a while and I'm hoping you can point me in the right
    direction.
    Here is what I have so far:
    My scaling routine:
    > $image2 = $maindir . $row_gallery_show['image2'];
    > $image2Size = getimagesize($image2);
    > if ($image2Size[0] > $image2Size[1]) {
    > $ratio_1 = $maxsize/$image2Size[0]; $newWidth =
    > round(($image2Size[0]*$ratio_1),0);}
    > else {
    > $ratio_1 = $maxsize/$image2Size[1]; $newWidth =
    > round(($image2Size[0]*$ratio_1),0);}
    >
    >
    > $image3 = $maindir . $row_gallery_show['image3'];
    > $image3Size = getimagesize($image3);
    > if ($image3Size[0] > $image3Size[1]) {
    > $ratio_1 = $maxsize/$image3Size[0]; $newWidth =
    > round(($image3Size[0]*$ratio_1),0);}
    > else {
    > $ratio_1 = $maxsize/$image3Size[1]; $newWidth =
    > round(($image3Size[0]*$ratio_1),0);}
    I have this for each of the images.
    My markup:
    > <li class="thumbs"><a href="<?php echo
    $image2;
    > ?>"onclick="showImage(this);return false;">
    > <img src="<?php $pic2 = $thumbdir .
    > $row_gallery_show['image2'];?>
    > <?php $pos2 = strrpos($pic2, '.');
    > $thumb2 = substr($pic2, 0, $pos2) . '_thb' .
    > substr($pic2, $pos2);
    > echo $thumb2; ?> " /></a>
    > </li>
    > <li class="thumbs"><a href="<?php echo
    $image3;
    > ?>"onclick="showImage(this);return false;">
    > <img src="<?php $pic3 = $thumbdir .
    > $row_gallery_show['image3'];?>
    > <?php $pos3 = strrpos($pic3, '.');
    > $thumb3 = substr($pic3, 0, $pos3) . '_thb' .
    > substr($pic3, $pos3);
    > echo $thumb3; ?> " /></a>
    > </li>
    also for each image.
    And the javascript file:
    > // JavaScript Document
    > function showImage(elem) {
    > if(!document.getElementById) {
    > return false;
    > } else {
    > var bigPic = elem.getAttribute('href');
    >
    >
    document.getElementById('mainpic').firstChild.setAttribute('src',bigPic);
    > <?php echo "var newWidth = $newWidth"; ?>
    >
    >
    document.getElementById('mainpic').firstChild.setAttribute('width',
    > newWidth);
    >
    > }
    > }
    I have tried setting the width through $newWidth, but so far
    it's not
    working - instead of replacing the 'mainpic' it is opening
    the selected
    image in a new window, full size. What am I doing wrong here?
    How can
    I get this to work, or is there a better approach?
    TIA
    Brett

    Brett wrote:
    > I have tried setting the width through $newWidth, but so
    far it's not
    > working
    Of course it won't. PHP is a server-side language; the
    JavaScript
    function is client-side. You can't get PHP to change the
    value of the
    width, because the PHP script finishes working as soon as the
    page is
    sent to the browser.
    I haven't checked through your width calculations, but what
    you need to
    do is to use PHP to echo the value of the width for each
    image in the
    call to showImage():
    <a href="<?php echo $image2; ?>"
    onclick="showImage(this, <?php echo
    $newWidth; ?>);return false;">
    Then change the showImage() function to apply the new width:
    function showImage(elem, w) {
    if(!document.getElementById) {
    return false;
    } else {
    var bigPic = elem.getAttribute('href');
    document.getElementById('mainpic').firstChild.setAttribute('src',bigPic);
    document.getElementById('mainpic').firstChild.setAttribute('width',
    w);
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Is this an Apple Problem or a Denon Problem?

    I use the most recent Mac Mini as a media center in my living room. Using a DVI to HDMI adapter the Mac Mini video feeds into my Denon AVR-4306 Receiver. The audio is pumped out of the standard headphone jack. At the end of each viewing session, the TV and receiver are powered off, but the Mac Mini stays on.
    Prior to upgrading to Snow Leopard this setup worked great - but after the upgrade, I'm now having a video display issue and I'm not sure if I should call Apple or Denon to help resolve this.
    I set Snow Leopard to use the 1080p resolution setting. I've confirmed that both my reciever and my TV are indeed 1080p and upon first boot things work perfect. The problem starts when I turn off the TV and Receiver. What happens is, after the TV and Receiver are turned off, the Mac Mini is reverting to the 720P display setting. The next time the TV and receiver are turned on, I'm looking at a 720P display setting.
    I don't understand why it's flipping to this lower resolution and am wondering if anyone has a fix that will prevent this from happening?
    I have found two workarounds - neither are any good. The first is after turning back on the TV and receiver, using the keyboard shortcut to log out. Logging out triggers the display check and it reverts back to the 1080p setting. A reboot also fixes this issue.
    Secondly, is this an Apple problem or a Denon Receiver problem?

    After much discussion back and forth between Apple and Denon, it was discovered that the Denon receiver does not support 1080p - only 1080i - this was not the information I orginally received from Denon.
    Setting the Apple to use 1080i for the resolution, then configuring the Denon Receiver to use HDMI pass through for the HDMI output resolved this problem.

  • Stuck in Tutorial 2 of David Powers tutorials "Build dynamic sites and web applications".

    PLEASE NOTE - THIS IS ANEW SESSION! Apologies to those that have contributed already but I have been unable to reply unless by email on the original session!
    ========================================================================================== ==============================
    I am very new to Dreamweaver and indeed to mySql. So, I am going through the the 3 David Powers Tutorials that are available for PHP & MySQL. I have successfully negotiated the 1st tutorial and am on the 2nd one and have got to a place where I am stalled!I am working on the file "manage_posts.php" and have got successfully "Building a simple recordset" - successfully built the Recordset via that dialog box which tests perfectly showing the contents of the news Table in MySQL. I can bind the recordset results in the page and save the file "manage_posts.php" but when I click Live View the live view fails and I get a 404 error - in other words manage_posts.php does not show the last entry of the news table! I have tried everything that I can think of including deleting manage_posts.php and starting over, but still no good!
    Can anyone advise me on this please as to waht may be wrong and how perhaps to analyse what the error may be? I would appreciate any help as it is very frustrating not to be able to progress further.

    PLEASE NOTE - THIS IS ANEW SESSION! Apologies to those that have contributed already but I have been unable to reply unless by email on the original session!
    ========================================================================================== ==============================
    I am very new to Dreamweaver and indeed to mySql. So, I am going through the the 3 David Powers Tutorials that are available for PHP & MySQL. I have successfully negotiated the 1st tutorial and am on the 2nd one and have got to a place where I am stalled!I am working on the file "manage_posts.php" and have got successfully "Building a simple recordset" - successfully built the Recordset via that dialog box which tests perfectly showing the contents of the news Table in MySQL. I can bind the recordset results in the page and save the file "manage_posts.php" but when I click Live View the live view fails and I get a 404 error - in other words manage_posts.php does not show the last entry of the news table! I have tried everything that I can think of including deleting manage_posts.php and starting over, but still no good!
    Can anyone advise me on this please as to waht may be wrong and how perhaps to analyse what the error may be? I would appreciate any help as it is very frustrating not to be able to progress further.

  • My iPod Touch 3rd Gen is having problems with the touch screen being unresponsive, too responsive, freezing and constantly resizing. Is this a common problem? Is there a fix?

    My iPod Touch (3rd Gen) is having problems with the touch screen being unresponsive, too responsive, freezing and constantly resizing. It varies between not responding when I tap the screen and acting as if I double-tap or tap and hold when I tap. Every so often it freezes for a minute or so and then comes back. The scren is constantly changing sizes too such that I often can't see most of the top status bar or other edges. This makes typing almost impossible, ruins most games and generally makes everything difficult, but otherwise the iPod is working correctly. Powering off, shutting down apps, letting it sit have not worked. This has happened once before months ago, but the issue resolved itself somehow. Is this a common problem? Is there a fix?

    Try this for the freezing
    http://www.apple.com/support/ipodtouch/assistant/ipodtouch/
    Or if they don't work put it into recovery mode
    See here
    http://www.apple.com/support/ipodtouch/assistant/restore/
    Then restore
    http://support.apple.com/kb/HT1414

  • XSLT concat() problem.

    Help guys, this XSLT is getting me down!
    Im quite simply trying to take a string, and replace tabs with 4 non-breaking space characters.
    Can someone please explain to me why the following template doesnt work? It should take in a string, perform the replacement in a recursive fashion, and finally print it out.
    Any help is greatly appreciated.
    Cheers,
    Lee.
         <xsl:template name="substitute">
              <xsl:param name="string" />
              <xsl:param name="from" select="'&#9;'" />
              <xsl:param name="to">
                   &#160;&#160;&#160;&#160;
              </xsl:param>
              <xsl:choose>
                   <xsl:when test="contains($string, $from)">                    
                        <xsl:call-template name="substitute">                         
                             <xsl:with-param name="string" select="concat(substring-before($string, $from), $to, substring-after($string, $from))" />
                             <xsl:with-param name="from" select="$from" />
                             <xsl:with-param name="to" select="$to" />
                        </xsl:call-template>
                   </xsl:when>
              <xsl:otherwise>
                   NO MORE SUBSTITUTION REQUIRED - FINAL STRING IS : <xsl:value-of select="$string"/>
              </xsl:otherwise>
              </xsl:choose>
         </xsl:template>

    Help guys, this XSLT is getting me down!
    Im quite simply trying to take a string, and replace
    tabs with 4 non-breaking space characters.
    Can someone please explain to me why the following
    template doesnt work? It should take in a string,
    perform the replacement in a recursive fashion, and
    finally print it out.
    Any help is greatly appreciated.
    Cheers,
    Lee.
         <xsl:template name="substitute">
              <xsl:param name="string" />
              <xsl:param name="from" select="'     '" />
              <xsl:param name="to">
                   ����
              </xsl:param>
              <xsl:choose>
                   <xsl:when test="contains($string, $from)">                    
                        <xsl:call-template name="substitute">                         
    <xsl:with-param name="string"
    ing" select="concat(substring-before($string, $from),
    $to, substring-after($string, $from))" />
                             <xsl:with-param name="from" select="$from" />
                             <xsl:with-param name="to" select="$to" />
                        </xsl:call-template>
                   </xsl:when>
              <xsl:otherwise>
    NO MORE SUBSTITUTION REQUIRED - FINAL STRING IS :
    : <xsl:value-of select="$string"/>
              </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
    It is not concat() problem, it is a recursion problem -- too many recursive calls.
    I wouldn't recommand using recursion in XSL, yeah, it works, but you can't increase the stack size without restarting the JVM...
    anyway, you can use translate function to do replacing, also you can call a java extension method to do string replacement. it is cleaner anyway and more efficient anyway.

  • Bought 4th Gen 3TB TC - streaming TV over the internet is now so slow and now is constantly buffering.  It seems the Airport Utility is always 'searching for new networks' - don't know if this is the problem.  It's not the internet speed as checked that.

    Bought 4th Gen 3TB TC - streaming TV over the internet is now so slow and now is constantly buffering.  It seems the Airport Utility is always 'searching for new networks' - don't know if this is the problem.  It's not the internet speed as checked that.  I took my old router upstairs and was streaming TV via my ipad seamlessly - the same program via the TC was constantly buffering.
    I just expected to be able to plug in the TC, so a simple set-up and experience wireless both upstairs and downstairs in my house.  For some reason the range is low and speed veru disappointing.
    I am far from being an IT expert but I would welcome advice about setting up this TC so we can enjoy the product as it was designed.  Please HELP!

    No silver bullet........but my suggestions may drive you in the right direction.
    1.  Unplug the power cable from the TC and wait 10-15 minutes before powering back up.   Seriously wait!
          Proceed to #2 if this dosen't help.
    2.  Unplug the power cable from the TC, ubplug the power cable from your Broadband Modem (assuming it's a cable modem), disconnect ethernet, and cable from modem. 
    2a.  Wait 10-15 minutes then re-connect cable, ethernet, and power back to modem (your modem should power up unless you have a power switch)  wait for all the modem lights to come on EXCEPT activity.
    2b.  Connect ethernet from modem to TC, and plug in the power cable to TC.
          Proceed to #3 if this dosen't help.
    3.  Reconfigure the TC.........Read here........http://support.apple.com/kb/HT3728
    All really simple to do....if you need additional help let me (us) know.

  • Need help adapting David Powers PHP email form script please!

    Hi all,
    I'm fairly inexperienced with PHP and I'm trying to adapt the David Powers email form script from THE ESSENTIAL GUIDE TO DREAMWEAVER CS4 WITH CSS, AJAX, AND PHP.
    I've created a basic form so that visitors to the site can request a telephone call back from the site owner. The form asks the visitor for their name, telephone number and to select a time of day suitable for the telephone call to be made using radio buttons selecting between morning and afternoon.
    I'd like to achieve my goal with minimal validation error messages and would like to redirect to another page when a message is sent successfully. It is also important that in the spirit of the David Powers script I'm trying to work with, that it filters out suspect input, avoids email header injection attacks and blocks submission by spam bots.
    There may be a really simple solution to this since I don't want users to be able to enter an email address at all but I don't know enough to be able to figure it out just yet.
    I'd be grateful for any advice.
    See below for the code for the form including PHP so far...
    Thanks to everyone looking in in advance
    Karl.

    GEAtkins wrote:
    > I am using the redirect to a personal page from page 515
    of The Essential
    > Guide to DWCS3 in the following form:
    $_SESSION[MM_Username].php in the "if
    > login succeeds" field.
    Thank you for reminding me. There's a mistake in the book,
    which I
    discovered over the Christmas period, so forgot to send to
    friends of ED
    for the errata page.
    Don't use $_SESSION[MM_Username]. Use $loginUsername instead.
    It then works.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Question for David Powers re file 'quotations.sql'

    It would appear from the first few lines of this file (shown
    below) that it
    first checks if a table "quotations" already exists, and if
    so deletes it. Then
    it creates a new version, and populates it with the following
    data.
    Is this correct?
    Clancy
    -- Table structure for table `quotations`
    DROP TABLE IF EXISTS `quotations`;
    CREATE TABLE `quotations` (
    `quote_id` int(10) unsigned NOT NULL auto_increment,
    `quotation` varchar(255) NOT NULL default '',
    `first_name` varchar(30) NOT NULL default '',
    `family_name` varchar(30) NOT NULL default '',
    PRIMARY KEY (`quote_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    -- Dumping data for table `quotations`
    INSERT INTO `quotations` VALUES (1, 'My disability is ......'
    Clancy

    Clancy wrote:
    > I thought so. As the sql file redefines the table, is it
    necessary to define
    > the table at all before running the file?
    The purpose of the preceding section is to teach you how to
    define a
    table. If all you're interested in is copying my table
    structure, feel
    free to do so. However, I believe in the principle of
    teaching a man to
    fish, rather than giving a man a fish.
    > I have been thinking about how to set up a database for
    my photo album, and
    > wondering how to order it. If I have a text file, like
    'quotations.sql', it
    > looks as if the easiest way to change the order of the
    photos is to swap the
    > lines in the text file, and then reload the whole
    database.
    If that's your conclusion, then I'm afraid that you have
    failed to
    understand the fundamental principles of how a database
    works. The order
    in which records are entered is totally irrelevant. You use
    SQL to
    display them in whichever order you require.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for

  • Conditionally include Front Panel of a Subvi in an EXE

    I want to make two versions of an EXE, one "normal" version and a debug version. I know how to set conditional disable symbols via pre/post build actions (btw. NI: these variables should REALLY be defineable per build specification; even bare command

  • Blue Screen of Death on Toshiba Satellite

    Hi, I have a Toshiba Satellite and for the last few months I have experienced two Blue Screens Of Death, at first, I didn't think much of it, but it kept getting more and more frequent. The STOP Codes are 0x1E and 0xA. Now, I cannot even boot my lapt

  • Multiple timeout objects (object declaration problem?)

    So what I'm trying to do here is create 4 separate timeOut objects that are each applied to 4 different sprites. Each has a variable for the duration that is set to 0 by default so that it does not even check to call the timeout handlers. When the us

  • Transfer video files from a DVD to Final Cut

    Hi- I have a couple of personal DVD's that has content I want to capture and edit into a timeline. I would like to capture only portions of each. Can anyone suggest best method of doing so? Also, can video files from a DVD playing from a computer be

  • Applet height

    hello there. I have a problem with applet height during running forms in IE. As you could see on these two pictures, difference in height between window and canvas is minimal in Forms builder, but in applet i have to scroll down to see horizontal scr