PHP and Actionsripting...

Hey fellow Flash friends... I have a flash banner that I have
sitting on my gaming clans website I did. The forums are PHP and
when ever anyones views a new topic or post of does anything to
refresh the browser it reloads the movie and plays again. I'd like
the movie to just play once when you first get there and not
everytime someone post something. Is there a actionscript of some
way around this? I've searched everywhere and have come to a wall.
LOL Any help will be appreciated thanks!
http://www.shadowops.org/Forums/index.php

There is an even easier way to do this without using cookies.
Use Session IDs. PHP should be able to keep the session OR keep an
active variable from one page to another. Use the variable to
control the flash video.
I am presuming that you will want the movie to continue
playing in the same exact place as they left.
I don't know about AS2 or 3 if it can handle this however,
here is how you would accomplish it.
IF AS3 can accomplish this than here is what you can do.
1. When the movie is playing, IF AS3 can detect when the
movie stops have it send out the frame number and the mc name to
PHP.
Store that in PHP variables.
Transfer those variables via POST and GET methods to the
reloading page.
Check to see if those variables are active. Send those
variables back to the flash movie on the refreshed page using flash
vars and tell the ActionScript to start the same exact movie and
the same exact frame.
That is the only way that I can think of doing that.
Wayne

Similar Messages

  • Include PHP and/or JAVA code in any BC site.

    I am thinking about including some PHP and/or JAVA code into my BC site and I was wondering if I am allowed to do this. Just Curious. Thanks.

    That's a shame, because I was thinking about implementing a business search api for my real estate website that was created using business catalyst that allows the collection of all real estate agents in Australia by searching and collecting their information from the Yellow Pages and White Pages directories, and include these information in a database that allows users to search for the real estate agent they want and comment on that agent. This can only be done by integrating some PHP or JAVA code into my BC website.
    So that means that the only way that I can do this is to create a web app that allows users to search for the real estate agent they want to see and comment on that agent, just by entering real estate agents' information into the web app's database and using various BC modules and plugins. Are there other easier ways to do this? Thanks.

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • How do I add an already built Shopping Cart  (PHP and MYSQL) application to a page in a Muse site?

    How do I add an already built Shopping Cart  (PHP and MYSQL) (Cartweaver 4) application to a page in a Muse site? Do I have to export the Muse site as Html to dreamweaver and them use the extension to bring the shooping cart in or can I do it directly in Muse?
    Message was edited by: mgv2048

    We have experimented with doing this with some good success. We have been working on adding Cartweaver to a Facebook page by essentially adding a Cartweaver store to Facebook in an iframe.  The "store" would be pages with just your basic product display, cart, and checkout functionality, with none of the "window dressing" - just use CSS to match the color and general look of the design it's being added to.
    The one problem with this for Facebook is when it comes time to check out toy have to leave Facebook and go to your server where an SSL is in place.  Fortunately in this situation this would not be the case, you can have an SSL installed to the root of your site and you'll be okay.
    This is an interesting project.  Give this a try and let me know how it goes and if you run into any snags, please make a post on the Cartweaver forums: http://forums.cartweaver.com - I'm really confident that this can work, and not only work, but work well.
    Looking forward to hearing how this goes, and being of what help we can.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • Getting stylesheets to work in header.php and files associated with it

    Let's say I created a header.php file in my includes folder.  And I include it in my index.php file in the site root directory.
    Then in the header.php file, I have a link to the style sheet. 
    The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    I can get it to work using global links, however I don't want to do that as I'll have to undo them before I upload the site.  (And I forget....)
    So anyways, I came up with this code today in an attempt to overcome this.  Here is my header file so far:
    "; } else           echo ""; ?>  
    So here is what it is doing:
    1. It is creating a variable called $directory which is equal to the current directory.
    2. Then it is creating another variable called $currentFolder which is equal to whether or not the variable $directory contains the word "includes".
    3. Then it says if $currentFolder is NOT false then it has the location of the stylesheet in relation to the header.php file.
    4. Else - if it IS false then the stylesheet is located in a location in relation to files in my root directory.
    This works perfectly fine....in Live view.  Both the header.php and index.php will format the header in live view.  Neither though will format it in Design view.  Which sucks cause I was pretty happy that I came up with this code on my own.
    The reason it isn't working in Design View - I realize now - is because Dreamweaver won't process that script in Design View. 
    Does anyone know of a way to get this script to run in Design View?  Or maybe some suggestions on editing this code to get it to work in Design View?
    Thanks!

    >The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    Right. That's because, and it seems you understand this already, the css file relative location is different from the point of view of the header file, and the parent file. Since the header file is included in the parent at the server, the client then sees the css file in the wrong location.
    The solution is to use Design time style sheets. This will apply the css to the page only in design time - it won't actually insert the css file into the code. So, insert the css reference into the header file from the point of view of the parent - index.html. Then add a design time style sheet. That should work.

  • Can you change Layout of php and filter?

    HI All,
    I have some code:
    function tc($v) {
    if (!$v) {
    return 'NULL';
    } else {
    return '\''.mysql_real_escape_string($v).'\'';
    $field = array(
    array("surname", "Surname"),
    array("forename", "Forename(s)"),
    array("address", "Address"),
    array("post_code", "Post Code"),
    array("telephone1", "Telephone Number"),
    array("telephone2",  "Alternative Number 1"),
    array("telephone3", "Alternative Number 2"),
    array("dob", "Date of Birth"),
    array("gender", "Gender"),
    array("religion", "Religion"),
    array("special", "Disabilities / Special Needs"),
    array("mother_name", "Mother Name"),
    array("mother_occ", "Mother Occupation"),
    array("mother_crb", "Mother CRB?"),
    array("father_name", "Father Name"),
    array("father_occ", "Father Occupation"),
    array("father_crb", "Father CRB?"),
    array("email", "Email Address"),
    array("subs", "Subs"),
    array("GA", "Gift Aid Signed?"),
    array("dpa", "DPA Signed?"),
    array("editby", "Record last edited by"),
    array("edittime", "Record last edited at"),
    array('datejoined', 'Date Joined'),
    array('year1', 'Year One Badge'),
    array('year2', 'Year Two Badge'),
    array('year3', 'Year Three Badge'),
    array('year4', 'Year Four Badge'),
    array('year5', 'Year Five Badge'),
    array('year6', 'Year Six Badge'),
    array('year7', 'Year Seven Badge'),
    array('year8', 'Year Eight Badge'),
    array('year9', 'Year Nine Badge'),
    array('EA1', 'Emergency Aid Stage 1'),
    array('EA2', 'Emergency Aid Stage 2'),
    array('EA3', 'Emergency Aid Stage 3'),
    array('EA4', 'Emergency Aid Stage 4'),
    array('EA5', 'Emergency Aid Stage 5'),
    array('HA1', 'Hikes Away Stage 1'),
    array('HA2', 'Hikes Away Stage 2'),
    array('HA3', 'Hikes Away Stage 3'),
    array('HA4', 'Hikes Away Stage 4'),
    array('HA5', 'Hikes Away Stage 5'),
    array('HA6', 'Hikes Away Stage 6'),
    array('IT1', 'IT Stage 1'),
    array('IT2', 'IT Stage 2'),
    array('IT3', 'IT Stage 3'),
    array('IT4', 'IT Stage 4'),
    array('IT5', 'IT Stage 5'),
    array('music1', 'Musician Stage 1'),
    array('music2', 'Musician Stage 2'),
    array('music3', 'Musician Stage 3'),
    array('music4', 'Musician Stage 4'),
    array('music5', 'Musician Stage 5'),
    array('NAtotal', 'Total Nights Away'),
    array('NA1', 'Nights Away Stage 1'),
    array('NA2', 'Nights Away Stage 2'),
    array('NA3', 'Nights Away Stage 3'),
    array('NA4', 'Nights Away Stage 4'),
    array('NA5', 'Nights Away Stage 5'),
    array('NA6', 'Nights Away Stage 6'),
    array('NA7', 'Nights Away Stage 7'),
    array('NA8', 'Nights Away Stage 8'),
    array('NA9', 'Nights Away Stage 9'),
    array('NA10', 'Nights Away Stage 10'),
    array('NA11', 'Nights Away Stage 11'),
    array('NA12', 'Nights Away Stage 12'),
    array('swim1', 'Swimming Stage 1'),
    array('swim2', 'Swimming Stage 2'),
    array('swim3', 'Swimming Stage 3'),
    array('swim4', 'Swimming Stage 4'),
    array('swim5', 'Swimming Stage 5'),
    array('OCDATE', 'SCOUTS: Outdoor Challenge'),
    array('OPCDATE', 'SCOUTS: Outdoor Plus Challenge'),
    array('ACDATE', 'SCOUTS: Adventure Challenge'),
    array('CCDATE', 'SCOUTS: Creative Challenge')
    if ($user = User()) {
    if ($_POST['section'])  {
    if (UserRead($_POST['section']) || UserAdmin()) {
    echo '<h1>1st Chalfont St Giles Scout Group - ';
    $lsec_query = mysql_query('SELECT * FROM csg_section WHERE section='.tc($_POST['section'])) or die("<b>MySql Error:</b>".mysql_error());
    if ($lsec = mysql_fetch_array($lsec_query)) {
    echo $lsec['name']."\n</h1>";
    } else {
    echo 'Section Not Found</h1>';
    die();
    echo '<table border="2"><tr>'."\n";
    foreach ($field as $item) {
    if ($_POST[$item[0]]==1) {
    $fielddo[] = $item;
    echo '<td>'.$item[1].'</td>'."\n";
    echo '</tr>';
    switch($_POST['sort']) {
    case 'a':
    $sort = 'surname ASC, forename ASC';
    break;
    default:
    $sort = 'dob ASC';
    $ypl_query = mysql_query("SELECT * FROM csg_yp WHERE section=".tc($_POST['section'])." ORDER BY $sort") or die('<b>MySql Error:</b>'.mysql_error());
    while ($ypl = mysql_fetch_array($ypl_query)) {
    echo '<tr>'."\n";
    foreach ($fielddo as $item)
    echo '<td>'.$ypl[$item[0]].'</td>'."\n";
    echo '</tr>'."\n";
    echo '</table>'."\n";
    } else {
    ?>
    <p><b>Access Denied.</b> You are not authorised to view this section.
    <?
    } else {
    ?>
    All this does is produce a list of all the fields in the database in a long list so we can choose which fields to print.
    As this list is now growing as we have added a lot more fields to the database ... is there anyway we could split it into say 3 columns?
    Ideally the first column would be all the personal details - i.e. down to DPA Signed - Second column would be the other badges and the third column different depending on the section.
    On the data input page we have different badges depending on section. Using the following code:
    if ($action=='add' || ($action=='edit' && (UserRead($yp['section']) || UserAdmin()))) {
    $yp_section_query = mysql_query("SELECT name FROM csg_section WHERE section=".tc($yp['section'])) or die("<b>MySql Error:</b>".mysql_error());
    $yp_name = mysql_fetch_assoc($yp_section_query);
    $yp_name = $yp_name['name'];
    $yp_section = (strstr($yp_name,"Scout")) ? 1 : (strstr($yp_name,"Cub") ? 2 : 3) //If has word 'scout' -> 1. Else If has word 'cub' -> 2 Else 3 (beaver)
    ?>
    <form action="yp2.php" method="post">
    <input type="hidden" name="yp" value="<?php echo $yp['yp_id']; ?>">
    <input type="hidden" name="section" value="<?php echo $yp['section']; ?>">
    could we use this on the print page to show different badge list depending on section in the third column??
    Many Thanks,
    Steve

    I am not sure how it looks familiar ... are you in Scouting too?
    So can i just create columns and put the different bits in each column?
    How can I sort by database - sorry I am a bit of a novice when it comes to php and coding, etc.
    Also was it able to filter depending on section?
    Many Thanks,
    Steve

  • 'unable to connect' and 'localhost' and index.php and dreamweaverCC

    Hi. 
    I am developing a Web Site and index.php is my point of entry.
    Document Root Library/WebServer/Documents
    so my path is: Library/WebServer/Documents/dwwdSite
    httpd.conf file is modified to add index.php  and have it listed first.
    <IfModule dir_module>
    DirectoryIndex   index.php   index.html
    <IfModule>
    Troubleshooting:
    I was using Netbeans IDE and when I ran index.php it opened in the browser.
    When I launched 'any' of my index.php files from Netbeans IDE, they opened correctly in the brower
    I am now using DreamweaverCC and when I run the index.php Error Message ' Unable to Connect'.
    For the last 2 days I have been working on this and I am completely stuck.
    This morning I thought of another way to test the 'unable to connect' error.
    I decided to copy this same file into Netbeans IDE and I NOW get the same Error Message ' Unable to Connect'
    when running index.php from Netbeans.
    Somehow, my settings are not correctly configured anymore.
    Here are my screenshots from Dreamweaver > manage sites.
    I believe that this is a rather simple fix that I am somehow not seeing.
    Maybe some can spot some mistake.
    I appreciate your help and explanation.

    Site window settings.
    Site Name: dwwdSite
    Local site folder: /Library/WebServer/Documents/dwwdSite
    Server window settings.
    Server Name: testing Server
    Address: Macintosh HD/Library/WebServer/Documents/dwwdSite
    Connect using: Local/network
    Testing: yes (checked)
    Server folder: /Library/WebServer/Documents/dwwdSite
    (I also tried this: Server folder: /Library/WebServer/Documents)
    Web URL: http://www.localhost/dwwdSite
    Server Advanced tab: (within server window settings)
    Testing server: PHP MySQL
    Advanced Settings window.
    Local info: Web URL: http://www.localhost/dwwdSite
    Enable cache: yes (checked)

  • PHP and SSIs not working in Lion

    So I had PHP and HTML SSIs working fine under SL, but now they don't seem to be working since upgrading to Lion.  I have checked the httpd.conf file and all the correct lines are still uncommented and 'Includes' is still listed as an Option Directive in both the httpd.conf file and <USER>.conf file.  Has anybody else had this problem since upgrading to Lion and how can I fix it?

    Mine is similar for something different. After uncommenting php in httpd.conf file the server refuses to boot. When I typed php -v at the command line I got this:
    dyld: Library not loaded: @loader_path/../lib/libssl.dylib
      Referenced from: /usr/lib/libpq.5.dylib
      Reason: Incompatible library version: libpq.5.dylib requires version 1.0.0 or later, but libssl.0.9.8.dylib provides version 0.9.8
    That's been frustratingly hard to fix so far (at least for me). I was just getting started helping a friend with his Joomla site and promised to duplicate the difficulty and debug it on my Mac Air. But, I installed Mountain Lion, and then more recently the latest upgrade, and everything went south as they say. I need to see what answer you get. It may apply to my problem as well.

  • Dreamweaver CS5.5 Mobile Apps with PHP and MYSQL?

    Hello,
    I don't have Dreamweaver CS5.5 yet and I've been trying to search for information on this but I couldn't find any. I've been learning PHP and been developing with MYSQL with Dreamweaver CS5 but I wanted to know if I can use the same tags and everything if I would to build a Mobile App using the new Dreamweaver CS5.5 (http://tv.adobe.com/watch/cs-55-web-premium-feature-tour-/dreamweaver-cs-55-jquery-mobile- pages/). I overlooked at the video and it seems pretty easy building an app. So is PHP and MYSQL easily integratable? Are there any examples that I might be able to check out?
    Thanks!

    No. PHP is a server-side scripting language that requires a server (or server-like environment) to run.
    An iPhone (or Android) application does not allow for a "built-in" server (which is resource intensive and has scary security implications). You just can't build an application with PHP/MySQL for a mobile device. Instead you can build a web service that your HTML/JavaScript mobile application can then communicate with. This is the only supported way you can use PHP/MySQL in a mobile app. Again: the PHP/MySQL should reside on a server and your HTML/JS mobile app can then communicate with that web service. That's what instapaper and other applications do.
    Frankly, just make a web application that's mobile device friendly and you'll:
    1) Avoid all the messiness of the app stores
    2) Have greater control over what your web app can do (don't have to tow the Apple/Google line)
    3) Have a web app that can work across mulitple mobile devices as well as standard web browsers (i.e. more audience = more $).
    4) Future proof your application (pushing updates to your server and everyone using your web app is updated)
    Otherwise, read-up on Adobe AIR and what it supports and remember, the best apps are written natively for the platform (i.e. want to write an app for an iPhone? Learn Objective-C and use xCode on a Mac. Want to write an app for Motorola Xoom? Learn the Android SDK and use inteliJ).

  • How i can connect php and oracle9i ?

    hello am new to php.i have oracle 9i and php and apache.oracle is installed at one system and php inother one at network .when i have at same pc's i connect it.but now it's at different systems how i can connect.plzz tell me complete steps of apache that i will define and next complete process to connect php and oracle .plzzzzzzzzzzzzzzzzzzzzzzzzzzzz

    Apache and PHP need to be on the same system. That system also needs either the database or Oracle client libraries like Oracle Instant Client. There are steps for installation of the PHP side on http://www.oracle.com/technology/tech/php/index.html
    There are various Oracle installation notes in the Oracle manuals or software bundles.
    -- cj

  • ANN: Setting up PHP and MySQL for newbies!

    We've recently released two new solution recipes to help
    designers make the
    jump to building dynamic sites. Each solution recipe
    describes step by step
    how to set up PHP and MySQL on your XP or Vista systems. You
    can find them
    on the Solution Recipe page:
    Installing PHP and MySQL on Windows Vista
    Installing PHP and MySQL on Windows XP
    http://www.webassist.com/professional/products/solutionrecipes.asp
    Each of these Solution Recipes include PDFs that you can
    print out or read
    on screen.
    We also have steps outlined for the Mac in PDF format, one
    for 10.4.x and
    the other for 10.5.x:
    10.4.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    10.5.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    All content is freely available. Go get'em!
    Best - Joe
    Joseph Lowery
    VP of Marketing, WebAssist -
    http://www.webassist.com
    Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/

    Cool. I've bookmarked it for later.
    Thanks!
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Joseph Lowery" <[email protected]> wrote in
    message
    news:ftj87l$nem$[email protected]..
    > We've recently released two new solution recipes to help
    designers make
    the
    > jump to building dynamic sites. Each solution recipe
    describes step by
    step
    > how to set up PHP and MySQL on your XP or Vista systems.
    You can find them
    > on the Solution Recipe page:
    >
    > Installing PHP and MySQL on Windows Vista
    > Installing PHP and MySQL on Windows XP
    >
    http://www.webassist.com/professional/products/solutionrecipes.asp
    >
    > Each of these Solution Recipes include PDFs that you can
    print out or read
    > on screen.
    >
    > We also have steps outlined for the Mac in PDF format,
    one for 10.4.x and
    > the other for 10.5.x:
    >
    > 10.4.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    >
    > 10.5.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    >
    > All content is freely available. Go get'em!
    >
    > Best - Joe
    >
    > Joseph Lowery
    > VP of Marketing, WebAssist -
    http://www.webassist.com
    > Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/
    >

  • Upgrade PHP and Apache on 10.6.8

    I'm thinking of upgrading PHP and Apache that were installed as part of 10.6.8 (Snow Leopard) to their current versions.
    How do I do it?
      - nello

    I posted links for creating a Macintosh, Apache, MySQL, PHP (mamp) stack on delicious:
    http://www.delicious.com/nlucchesi/tag_bundle/mamp

  • Flash Builder 4.5 for PHP and ANT

    I just installed Flash Builder 4.5 for PHP Premium and I am trying to install ANT so I can automate the AsDoc generation process.
    In the past (Flash Builder 4), I just point to "http://download.eclipse.org/releases/galileo/" and select "Eclipse Java Development Tools".
    However, when I do the same in " Flash Builder 4.5 for PHP Premium", I got an error message saying that a newer version of "Eclipse Java Development Tools" has already been installed. I go to the "Already Installed Software" tab, and indeed I see "Eclipse Java Development Tools" under "Eclipse Java IDE", but ANT is nowhere to be found.
    By the way, I am doing everything on the stock, standalone Flash Builder 4.5 for PHP Premium.
    Any suggestion is much appreciated.

    I also have Flash Builder 4.5 for PHP and the ANT view does not show when going to Window -> Show View --> Other.  I could not find it in any of the folders.
    However, I was able to add it by hitting Command 3 (CTRL 3 on PC) and typing Ant.

  • MariaDB, PHP, and mysql_connect() issue on Installation scripts

    I searched for this issue and turned out nothing..
    I am using an installation script on my web server and i get this error:
    function mysql_connect() not found:
    Your system does not appear to have mysql available within php
    I followed the wiki and have uncommented the following lines
    extension=pdo_mysql.so
    extension=mysqli.so
    extension=mysql.so
    I have also restarted the httpd daemon several times. I am using MariaDB because I know arch is dropping mysql. I followed the MariaDB wiki too and have it set-up properly.
    Here is my "mysqli" section of phpinfo()
    MysqlI Support    enabled
    Client API library version     mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
    Active Persistent Links     0
    Inactive Persistent Links     0
    Active Links     0
    Directive    Local Value    Master Value
    mysqli.allow_local_infile    On    On
    mysqli.allow_persistent    On    On
    mysqli.default_host    no value    no value
    mysqli.default_port    3306    3306
    mysqli.default_pw    no value    no value
    mysqli.default_socket    /var/run/mysqld/mysqld.sock    /var/run/mysqld/mysqld.sock
    mysqli.default_user    no value    no value
    mysqli.max_links    Unlimited    Unlimited
    mysqli.max_persistent    Unlimited    Unlimited
    mysqli.reconnect    Off    Off
    and here is "mysqlnd" in phpinfo()
    mysqlnd
    mysqlnd    enabled
    Version     mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
    Compression     supported
    SSL     supported
    Command buffer size     4096
    Read buffer size     32768
    Read timeout     31536000
    Collecting statistics     Yes
    Collecting memory statistics     No
    Tracing     n/a
    Loaded plugins     mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
    API Extensions     mysqli
    MySQL is running as I have set-up a database and user for this installation script.

    I dropped to the command line and tried to run php and realized that mysql.so was named mssql.so..
    so for anyone that has this issue, when you install php, unless they change it next release, that's a typo you have to fix when uncommented the mysql extension
    Last edited by evil (2013-03-31 19:34:12)

  • MySQL php and CHARACTER SET error

    Still very new to php and MySQL, in fact this is my first
    site using it.
    I have got an issue with displaying characters, namely the
    £ sing, all I get is an ? displayed.
    I have been told to use, utf8 in the database field but this
    has not helped cure the problem.
    I'm building the site in DW CS3 and it's all running off my
    Mac using OS X 10.5.1 and the built in php client.
    Could anyone show me the right way to go?

    Ok I think my IQ is falling me, it's been a long week.
    <?php header('Content-type: text/html;charset=utf-8');
    ?>
    Is the first line of code on the test page I have got
    running. I have no error but I also have no £ sings.
    Here is the live page:
    http://www.epos-acoustics.com/test.php
    The page code:
    <?php header('Content-type: text/html;charset=utf-8');
    ?>
    <?php require_once('Connections/epos.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;
    mysql_select_db($database_epos, $epos);
    $query_rs01 = "SELECT * FROM epos_shop ORDER BY my_shop_id
    ASC";
    $rs01 = mysql_query($query_rs01, $epos) or
    die(mysql_error());
    $row_rs01 = mysql_fetch_assoc($rs01);
    $totalRows_rs01 = mysql_num_rows($rs01);
    ?>
    <!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>shop text test</title>
    </head>
    <body>
    <?php do { ?>
    <table width="600" border="0" cellspacing="2"
    cellpadding="2">
    <tr>
    <td width="92">Product name: </td>
    <td width="494" colspan="2"><?php echo
    $row_rs01['my_shop_product']; ?></td>
    </tr>
    <tr>
    <td valign="top">Description:</td>
    <td colspan="2"><?php echo
    $row_rs01['my_shop_text']; ?></td>
    </tr>
    <tr>
    <td>Price:</td>
    <td colspan="2"><?php echo
    $row_rs01['my_shop_price']; ?></td>
    </tr>
    <tr>
    <td height="30" colspan="3"> </td>
    </tr>
    </table>
    <?php } while ($row_rs01 = mysql_fetch_assoc($rs01));
    ?></body>
    </html>
    <?php
    mysql_free_result($rs01);
    ?>
    Am I missing the point or do I have something wrong with the
    table or field?

Maybe you are looking for

  • Can't delete files

    Hello, I'm having an issue deleting a file from my home directory. This the file I want to delete .shapshot. It looks like it is shapshoting my files in my home directory. Anyway how do I stop these snapshots? This is the command I used. rm -rf /home

  • Disc ejects on startup

    I've been searching for a while now, but still haven't found a solution for this. Ever since I installed the last update of Leopard, the disc tray on my PowerMac (G5) will eject on startup, before I get to the login screen. I first thought that it wa

  • Report help / question

    I want to pull a specific report. either from the p6 tool reporting or directly from the database. Using Primavera p6 version 7. All the Role names and capacity / demand time for each role over a timespan where the role is assigned to an activity, an

  • HT1848 My rented movie is nowhere to be found on my itouch.

    I moved my rented movie from my itunes account to my iPod touch.  Itunes tranferred the file and it showed up on the device in the itunes menu bar.  But when I go to the iTouch, the movie is nowhere to be found.  I have done this numerous times, but

  • Adapter for printer ??

    Is there an adapter to hook up two computers to one printer