Creating A Report need PHP MYSQl HElP

I have a table "officers" table two with 4 fields all with
variable char which will end up just being names. However, I need
to create a report that counts each the occurance of each name and
ouputs the name with the count next to it. The names in table
"officers" are concatinated from a first name field and last name
field in a separate table "persons";
I need some help figuring out how to write this using
PHP.

Hi Shashank,
SQL Server Reporting Services provides a full range of ready-to-use tools and services to help us create, deploy, and manage reports for our organization, as well as programming features that enable us to extend and customize our reporting functionality.
With Reporting Services, we can create interactive, tabular, graphical, or free-form reports from relational, multidimensional, or XML-based data sources. To create a basic table report, we can refer to the tutorial as below:
http://msdn.microsoft.com/en-IN/library/ms167305(v=sql.110).aspx
For more information and tutorials about Reporting Services, please refer to the following documents:
Reporting Services (SSRS)
Reporting Services Tutorials (SSRS)
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • PHP/MySQL Help Needed

    I'm a beginner with this PHP/MySQL language, but I'm using
    Dreamweaver CS3 to help things along. I've set up my database with
    my host (using PHPmyAdmin) and put in a table with some fields.
    Then I went into Dreamweaver and set up everything and it saw the
    database name perfectly. Then I made a recordset and it saw the
    fields just fine. I then made an input page to put the data into
    the database and that went off without a hitch. I then made a basic
    webpage with nothing but the call to display 2 of the fields in my
    database (I did the test in dreamweaver and it saw all the data I
    populated my database with perfectly). I then told it to preview in
    Firefox and got a blank page... Ok I must have done something
    wrong, so I put in some basic text just so I could see if even that
    would show up correctly. Then I previewed in Firefox again and not
    only did it show up, but the 2 fields showed up as well! Yea! So I
    made some changes to the fields I wanted to show and again did a
    Preview in Firefox. I was again treated to a blank page. Not even
    my basic text was showing up. I went back to Dreamweaver and added
    some more text... preview... works perfectly showing everything. I
    refresh the page and it's blank. I close Firefox and preview again.
    It's a blank page, but for the heck of it I decide to View Source
    and lo and behold all the data is there. I close the source and try
    reloading the page... blank. I'm at a loss. Any idea why this might
    be happening?

    jays99 wrote:
    > Thanks, David. I have your PHP5-Flash 8 book and egerly
    await your newest. I
    > installerd MySQL 5.027 for 10.4 intel which but it does
    not come up
    > automatically and there is no MySQL control on the
    Preferences. I read
    > somewhere that I have to open a file and change some
    lines of code in a config.
    > file. Do you have any insight to that? Thanks again, Jay
    Sorry, I haven't tested anything on an Intel Mac yet. Testing
    everything
    on Vista for my new Dreamweaver book has given me enough of a
    headache.
    However, I'm pretty sure that my editor has an Intel Mac, and
    he
    followed the instructions in "PHP Solutions" without any
    major hiccups.
    (They're pretty much the same as in the Flash book.)
    Isn't there a MySQL.prefPane icon in the MySQL installation
    package? I
    have found that MySQL won't start automatically on 10.4 (it
    did on
    10.3), but as long as you install the prefPane, you should be
    able to go
    in and start it manually.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Dreamweaver newbie - php & mysql help

    hi,
    new to dremweaver, have used .net in past with vwd and found it straight forward to drag over grid view etc to view data from sql database.
    i want to use php and mysql now and looking at dreameaver cs4 i really want to know what each navigation is. i.e. how do i create my mysql database and drag say a grid view in dreamweaver cs4 over to view?
    basically just need to know the basics navigation of what buttons i need for to interact using php and mysql?
    any help would be great, and also if anyone can recommend a good book on php/mysql with dreamweaver cs4 as a by the by then would greatly appreciate it.
    many thanks
    andy

    Take a look at this book:
    http://www.amazon.com/Essential-Guide-Dreamweaver-Ajax-Essentials/dp/1430216107
    I didn't read it, but I am currently reading the author's another book (David Powers: PHP Object-Oriented Solutions) and he is good.
    David is also a community expert on these forums.

  • Apache2, PHP, MySQL Help

    Hi,
    Sorry if this is a bit of a newbie thing todo but I am not too good with solaris configuration yet.
    Can anyone supply a decent step by step and easy tutorial/how-to on how to set up Apache, PHP, MySQL and PHPmyadmin on a SPARC solaris 10 box please...
    Thanks Rob

    Can anyone supply a decent step by step and easy
    tutorial/how-to on how to set up Apache, PHP, MySQL
    and PHPmyadmin on a SPARC solaris 10 box please...Setting up Apache is very easy since all it takes is setting it up. Its installed by default, you can check /etc/apache for an example configuration file. Next to that www.apache.org/docs/ is also a very valuable read.
    <blunt SPAM>
    You could also consider looking into the Java webserver (formely SunONE). Its currently being made available for free with the Java Enterprise System and compares very well to Apache. If you'll also be doing some Java it would be a better choice (IMO its a better choice than Tomcat) and it can also do PHP.
    http://www.sun.com/software/products/web_srvr/home_web_srvr.xml
    http://www.zend.com/sun/?article=/sun/index.php&kind=&id=6179&open=1&anc=0&view=1
    http://www.php.net/
    </SPAM>
    As you'll note I included the PHP website because with the above setup you'd also need to manually setup PHP. If you have the companion CD present you can install the PHP module which will end up on /opt/sfw/apache. This directory will also present you a php.ini example which will need to be placed in /etc/apache as well. Setting it up is basicly following the documentation in the ini file, and the Apache documentation on adding an extra module (/opt/sfw/apache/libexec/libphp4.so).
    MySQL. Also very easy since its shipped with Solaris as well. Look into /etc/sfw/mysql for a README which covers the most essential steps to set it up. In short you'll need to setup a few directories for MySQL to work and optionally (but recommended) copy the default config file to /etc (/etc/my.cnf) which will define certain basic settings. The readme explains. Next you're likely to need the MySQL guide (if you're new with MySQL) which can be located at http://dev.mysql.com/doc/refman/4.1/en/index.html.
    This applies to the version (close enough anyway) which is shipped with Solaris. From personal experience I can say that MySQL 5 will also run very well on Solaris 10.
    Finally the PHPMyadmin... That really is an RTFM issue, once you have your environment setup (Apache and the likes) its likely you only need to copy it to your document root and point your browser to it.
    Hopes this helps somewhat.

  • PHP / MySQL help

    Hello all,
    I've got an update record form on one of my pages (it is a
    php / MySQL site). I followed the tutorial in dreamweaver 8, it
    works, but it does not work like I want it to work.
    I am hoping that when a user logs into the site, and they
    want to update their information, they can go to a page that has an
    update record form. This form will have all the fields empty. When
    the user enters information, only the fields that have been entered
    will update the record in the database (and all of the fields that
    are left blank will have no effect on the record in the database).
    How it is now, when the user goes to that page, all the text
    fields are filled with the information contained in the database.
    If they make a mistake, and delete any of those fields, that
    information will be deleted from the database.
    Is this possible to do? If so, is there a tutorial that I
    have not found yet that I can learn how to do this?
    Thank you

    >Is this possible to do?
    Sure it's possible, but I don't really think it's necessary.
    What if the user wants to completely remove the contents of the
    field? And if you don't want to allow that, then you should
    validate those fields anyway.
    Another workflow would be to have the form retrieve the
    database row into static text fields, so at least the user can see
    what is stored. Adjacent to the static fields would be normal text
    fields that they can enter text into if they want to make changes.
    Of course your form processing script would then need to evaluate
    each field for contents. It would then dynamically build the update
    sql based on the filled in fields. I don't know of a specific
    tutorial, but if you know sql and php it should be a piece of
    cake.

  • Macromedia Dreamweaver "Unidentified Error" PHP MySQL, help please

    Ok,
    I've been developing web applications with with PHP/MySQL for some time now, but had been unable to afford dreamweaver to help me out. Thus every website I made came from strait "notepad" style typeing. Everything always worked just fine. Recently though I got my hands on Macromedia Studio MX, but have been having troubles ever since then.
    I wrote my own PHP script to connect to my MySQL database on my computer (localhost), and it worked like a charm. Then I went over to dreamweaver, followed all the steps, entered the information, clicked the "test" button and I get the an error "an unidentified error occured".
    At this point I checked everything tried again, and then that rendered the same result, I went online and found the same problem at Macromedia's webstie: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16515
    I've tried everything mentioned there to no avail. I was hopeing someone out there would know what is wrong with my connection. Quick summary:
    Trying to connect with Dreamweaver to localhost MySQL database, with PHP MySQL settings. I get "an unidentified error occured". But the informaiton has been verified as correct with my own PHP script.

    Sorry, but it doesn't help JTANNA.
    What is your definition of "more efficiently"? If it's limitation of search results, branded search, and limitation of styling your results then google search is more efficient. Real developers rely on their own developments. For example: how can google search display results from a password-protected site? They can't.
    best,
    Shocker

  • Error message when I run searches on my website (PHP/MySQL help)

    Hey guys, can someone tell me why this is happening in my PHP? I run a search on my website and get this error message ye sI filled the hostname, username and password)
    Results for
    PHP Error Message
    Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a8295382/public_html/Search Results.php on line 233
    Couldn't execute query
    Here is my PHP code:
    <?php
    $hostname_logon = "host" ;
    $database_logon = "hostname" ;
    $username_logon = username" ;
    $password_logon = "password" ;
    //open database connection
    $connections = mysql_connect($hostname_logon, $username_logon, $password_logon) or die ( "Unabale to connect to the database" );
    //select database
    mysql_select_db($database_logon) or die ( "Unable to select database!" );
    //specify how many results to display per page
    $limit = 15;
    //get the search variable from URL
    $var = mysql_real_escape_string(@$_REQUEST['q']);
    //get pagination
    $s = mysql_real_escape_string($_REQUEST['s']);
    //set keyword character limit
    if(strlen($var) < 3){
        $resultmsg =  "<p>Search Error</p><p>Keywords with less then three characters are omitted...</p>" ;
    //trim whitespace from the stored variable
    $trimmed = trim($var);
    $trimmed1 = trim($var);
    //separate key-phrases into keywords
    $trimmed_array = explode(" ",$trimmed);
    $trimmed_array1 = explode(" ",$trimmed1);
    // check for an empty string and display a message.
    if ($trimmed == "") {
        $resultmsg =  "<p>Search Error</p><p>Please enter a search...</p>" ;
    // check for a search parameter
    if (!isset($var)){
        $resultmsg =  "<p>Search Error</p><p>We don't seem to have a search parameter! </p>" ;
    // Build SQL Query for each keyword entered
    foreach ($trimmed_array as $trimm){
    // EDIT HERE and specify your table and field names for the SQL query
    // MySQL "MATCH" is used for full-text searching. Please visit mysql for details.
    $query = "SELECT * , MATCH (field1, field2) AGAINST ('".$trimm."') AS score FROM table_name WHERE MATCH (field1, field2) AGAINST ('+".$trimm."') ORDER BY score DESC";
    // Execute the query to  get number of rows that contain search kewords
    $numresults=mysql_query ($query);
    $row_num_links_main =mysql_num_rows ($numresults);
    //If MATCH query doesn't return any results due to how it works do a search using LIKE
    if($row_num_links_main < 1){
        $query = "SELECT * FROM table_name WHERE field1 LIKE '%$trimm%' OR field2 LIKE '%$trimm%'  ORDER BY field3 DESC";
        $numresults=mysql_query ($query);
        $row_num_links_main1 =mysql_num_rows ($numresults);
    // next determine if 's' has been passed to script, if not use 0.
    // 's' is a variable that gets set as we navigate the search result pages.
    if (empty($s)) {
         $s=0;
      // now let's get results.
      $query .= " LIMIT $s,$limit" ;
      $numresults = mysql_query ($query) or die ( "Couldn't execute query" );
      $row= mysql_fetch_array ($numresults);
      //store record id of every item that contains the keyword in the array we need to do this to avoid display of duplicate search result.
      do{
          $adid_array[] = $row[ 'field_id' ];
      }while( $row= mysql_fetch_array($numresults));
    } //end foreach
    //Display a message if no results found
    if($row_num_links_main == 0 && $row_num_links_main1 == 0){
        $resultmsg = "<p>Search results for: ". $trimmed."</p><p>Sorry, your search returned zero results</p>" ;
    //delete duplicate record id's from the array. To do this we will use array_unique function
    $tmparr = array_unique($adid_array);
    $i=0;
    foreach ($tmparr as $v) {
       $newarr[$i] = $v;
       $i++;
    //total result
    $row_num_links_main = $row_num_links_main + $row_num_links_main1;
    // now you can display the results returned. But first we will display the search form on the top of the page
    echo '<form action="search.php" method="get">
            <div>
            <input name="q" type="text" value="'.$q.'">
            <input name="search" type="submit" value="Search">
            </div>
    </form>';
    // display an error or, what the person searched
    if( isset ($resultmsg)){
        echo $resultmsg;
    }else{
        echo "<p>Search results for: <strong>" . $var."</strong></p>";
        foreach($newarr as $value){
        // EDIT HERE and specify your table and field unique ID for the SQL query
        $query_value = "SELECT * FROM newsight_articles WHERE field_id = '".$value."'";
        $num_value=mysql_query ($query_value);
        $row_linkcat= mysql_fetch_array ($num_value);
        $row_num_links= mysql_num_rows ($num_value);
        //create summary of the long text. For example if the field2 is your full text grab only first 130 characters of it for the result
        $introcontent = strip_tags($row_linkcat[ 'field2']);
        $introcontent = substr($introcontent, 0, 130)."...";
        //now let's make the keywods bold. To do that we will use preg_replace function.
        //Replace field
          $title = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" , $row_linkcat[ 'field1' ] );
          $desc = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" , $introcontent);
          $link = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" ,  $row_linkcat[ 'field3' ]  );
            foreach($trimmed_array as $trimm){
                if($trimm != 'b' ){
                    $title = preg_replace( "'($trimm)'si" ,  "<strong>\\1</strong>" , $title);
                    $desc = preg_replace( "'($trimm)'si" , "<strong>\\1</strong>" , $desc);
                    $link = preg_replace( "'($trimm)'si" ,  "<strong>\\1</strong>" , $link);
                 }//end highlight
            }//end foreach $trimmed_array
            //format and display search results
                echo '<div class="search-result">';
                    echo '<div class="search-title">'.$title.'</div>';
                    echo '<div class="search-text">';
                        echo $desc;
                    echo '</div>';
                    echo '<div class="search-link">';
                    echo $link;
                    echo '</div>';
                echo '</div>';
        }  //end foreach $newarr
        if($row_num_links_main > $limit){
        // next we need to do the links to other search result pages
            if ($s >=1) { // do not display previous link if 's' is '0'
                $prevs=($s-$limit);
                echo '<div class="search_previous"><a href="'.$PHP_SELF.'?s='.$prevs.'&q='.$var.'">Previous</a>
                </div>';
        // check to see if last page
            $slimit =$s+$limit;
            if (!($slimit >= $row_num_links_main) && $row_num_links_main!=1) {
                // not last page so display next link
                $n=$s+$limit;
                echo '<div  class="search_next"><a href="'.$PHP_SELF.'?s='.$n.'&q='.$var.'">Next</a>
                </div>';
        }//end if $row_num_links_main > $limit
    }//end if search result
    ?>
    Anyone got any ideas as to why this is happening?
    Also, I have not created any tables in my database... is this why it doesn't display any search results from my website?

    Sorry, but it doesn't help JTANNA.
    What is your definition of "more efficiently"? If it's limitation of search results, branded search, and limitation of styling your results then google search is more efficient. Real developers rely on their own developments. For example: how can google search display results from a password-protected site? They can't.
    best,
    Shocker

  • Create an HTTPService in PHP/MySQL?

    Our development server has PHP and MySQL running on it.  We're beginning to build in Flex, and would like to know how to create an HTTPService connection to our MySQL database.
    We have successfully created a connection to the database in DreamWeaver, so we know that we can get to the database remotely.
    I've scoured tutorials.. but nothing seems clear on how to accomplish this.
    Thanks, in advance, for any help!

    These links use JSON to handle the data, but the PHP code, as well as the Flex code, should answer your questions.
    If this post answers your question or helps, please mark it as such.
    http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-json
    http://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databas e
    http://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updating

  • DataGrid + .PHP + mySQL Help

    I have searched all over for information on how to load data
    from mySQL in a DataGrid with AS3.
    My mySQL database only has three fields; ID, Name, Kind
    Thanks in advance for your help.

    http://www.flash-db.com/Tutorials/helloAS3/helloAS3.php?page=1
    This is a pretty good, start-to-finish, example of how to get
    data from MySQL/PHP (as well as working with other forms of data)
    to Flash AS3 and how to manipulate it. Now,...I don't think it
    covers DataGrid, but you can probably read through it and get a
    good idea of what to do. If you still have questions, after you
    read it, post back here.

  • Created in NTSC, Need in PAL - HELP!

    Hello,
    I'm fairly new to the iMovie package, i had used it about two years ago while editing a movie for a college class and everything was set-up for us.
    Anyway, i spent all day yesterday editing a project for my univeristy course. The problem is, when i come to "share" the project in iDVD it says that it's an incorrect format to burn as the discs are PAL... do i want to continues (i did).
    The project burned to a DVD disc, and works fine in my home dvd player (but i think that's because it's multiregion). is there anyway to make sure it has burned to Pal and works on all dvds that aren't multiregion?
    Thanks for any help

    Hello HelixOmnimedia,
    in your workflow (iMovie/iDVD), what is PAL and what is NTSC? Is the iMovie project NTSC and you want to burn a PAL DVD?
    If so, that is possible in iDVD (and from what I read you have done so). You'll find the setting for the TV standard in iDVD's preferences: "New projects are ...". Note that this setting takes place only for new projects. A project's setting can be verified by choosing Project > Show Project Info from the menu.
    Note: the conversion done by iDVD doesn't produce the best quality. For better results you might want to have a look at JES Deinterlacer:
    http://www.xs4all.nl/~jeschot/home.html
    The project burned to a DVD disc, and works fine in my home dvd player (but i think that's because it's multiregion). is there anyway to make sure it has burned to Pal and works on all dvds that aren't multiregion?
    Do not confuse TV standard with region codes. iDVD creates DVD's that are enabled for all 6 regions, so there's no problem with that. Most newer DVD players in PAL - land will play NTSC discs, but not all of them and there might be problems, such as the DVD being shown in black & white.
    hope this helps
    mish

  • Can't create Word Document report - need help

    Hi,
    I have been trying to create a report using a word document. I downloaded an example from ni.com that has Export_Info.vi. When I try to run it I get this error:
    Error 1003 occurred at Open VI Reference in New Report.vi->Export_Info.vi
    I traced the error back to New Report.vi which is a VI that comes with the LabView package. There is a Open VI reference that when it tries to open Word_Open.vi gives an error. So for some reason I can not open Word_Open.vi without an error, and it comes with the Report generation office library.
    Does anyone know what could the problem be?
    I tried reinstalling everything and i still keep getting the same error. This makes it impossible to create a report now.
    Any help would be VERY appreciated.
    Thank you

    Yes I have it installed. When I went to open up Word_Open.vi it opened with an error and it said that the property was not valid.
    I attached a screenshot of the block diagram for Wor_Open.vi with an error message.
    Thank you
    Attachments:
    word open.jpg ‏115 KB

  • Starting out php/mysql

    Hello, i am new to php so be prepared for a idiots
    question,Hello, Do i need to run this on my localhost or can i run
    it on my virtual server as this allready has php mysql etc
    installed.
    i am new to php so be prepared for a idiots question, i have
    been trying to copy a youtube tutorial to create a navbar using php
    mysql and dreamweaver "
    http://www.youtube.com/watch?v=habZHcnShfs"
    to do this i need to create a mysql tabel in dreamweaver, to do
    this i have been useing the following code;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <?php
    $user="james1892";
    $password="14011991";
    $database="naviagation";
    mysql_connect("localhost",$user,$password);
    @mysql_select_db($database) or die("unable to select
    database");
    $query = 'CREATE TABLE 'menu' (
    'mid' TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT,
    'name' varchar(20) NOT NULL
    'link' varchar(100) NOT NULL,
    PRIMARY KEY ( 'mid' )
    mysql_query($query);
    mysql_close();
    ?>
    </body>
    </html>
    this then returns the following message "Parse error: syntax
    error, unexpected T_STRING in
    /var/www/vhosts/sickstudentgames.com/httpdocs/php attempt 1/first
    database midnamelink.php on line 15"
    i then gave up on thsi as i couldnt work out what was the
    problem and started a new code to create a database using this code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <?php
    $con = mysql_connect("localhost","com1892","14011991");
    if (!$con)
    die('Could not connect: ' . mysql_error());
    }if (mysql_query("CREATE DATABASE my_db",$con))
    echo "Database created";
    else
    echo "Error creating database: " . mysql_error();
    }mysql_close($con);
    ?>
    </body>
    </html>
    this then showed the folling message "Warning:
    mysql_connect(): Access denied for user 'com1892'@'localhost'
    (using password: YES) in
    /var/www/vhosts/sickstudentgames.com/httpdocs/php attempt
    1/tableattempt2.php on line 10
    Could not connect: Access denied for user
    'com1892'@'localhost' (using password: YES)"
    i have been uploading these to my website server as this has
    php and mysql installed could this be the problem do i need to run
    it on the coputers localhost>?
    any help greatly appriciated
    thanks you
    i have been trying to copy a youtube tutorial to create a
    navbar using php mysql and dreamweaver "
    http://www.youtube.com/watch?v=habZHcnShfs"
    to do this i need to create a mysql tabel in dreamweaver, to do
    this i have been useing the following code;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <?php
    $user="james1892";
    $password="14011991";
    $database="naviagation";
    mysql_connect("localhost",$user,$password);
    @mysql_select_db($database) or die("unable to select
    database");
    $query = 'CREATE TABLE 'menu' (
    'mid' TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT,
    'name' varchar(20) NOT NULL
    'link' varchar(100) NOT NULL,
    PRIMARY KEY ( 'mid' )
    mysql_query($query);
    mysql_close();
    ?>
    </body>
    </html>
    this then returns the following message "Parse error: syntax
    error, unexpected T_STRING in
    /var/www/vhosts/sickstudentgames.com/httpdocs/php attempt 1/first
    database midnamelink.php on line 15"
    i then gave up on thsi as i couldnt work out what was the
    problem and started a new code to create a database using this code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <?php
    $con = mysql_connect("localhost","com1892","14011991");
    if (!$con)
    die('Could not connect: ' . mysql_error());
    }if (mysql_query("CREATE DATABASE my_db",$con))
    echo "Database created";
    else
    echo "Error creating database: " . mysql_error();
    }mysql_close($con);
    ?>
    </body>
    </html>
    this then showed the folling message "Warning:
    mysql_connect(): Access denied for user 'com1892'@'localhost'
    (using password: YES) in
    /var/www/vhosts/sickstudentgames.com/httpdocs/php attempt
    1/tableattempt2.php on line 10
    Could not connect: Access denied for user
    'com1892'@'localhost' (using password: YES)"
    any help greatly appriciated
    thanks you

    james1892 wrote:
    > Hello, i am new to php so be prepared for a idiots
    question,Hello, Do i need to
    > run this on my localhost or can i run it on my virtual
    server as this allready
    > has php mysql etc installed.
    You don't need a local testing environment, but it's highly
    recommended
    that you do. It's much more efficient and secure.
    > i have been trying to
    > copy a youtube tutorial to create a navbar using php
    mysql and dreamweaver
    > "
    http://www.youtube.com/watch?v=habZHcnShfs"
    I watched about four minutes of that "tutorial". It's totally
    useless.
    > $query = 'CREATE TABLE 'menu' (
    > 'mid' TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT,
    > 'name' varchar(20) NOT NULL
    > 'link' varchar(100) NOT NULL,
    > PRIMARY KEY ( 'mid' )
    > )';
    The reason that doesn't work is because the creator of the
    "tutorial"
    failed to explain the difference between quotation marks and
    backticks.
    What actually appears on screen is not what you have typed,
    but this:
    $query = 'CREATE TABLE `menu` (
    `mid` TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` varchar(20) NOT NULL
    `link` varchar(100) NOT NULL,
    PRIMARY KEY ( `mid` )
    Note the difference between ' and `. The second one is called
    backtick,
    and is located above the tab key on most keyboards. In this
    case, you
    don't need it. The following would be fine:
    $query = 'CREATE TABLE menu (
    mid TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT,
    name varchar(20) NOT NULL
    link varchar(100) NOT NULL,
    PRIMARY KEY (mid)
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to use crystal report with php

    Hello every body
    can any body know how to use crystal report with php any helping material, code or tutorial for my problem ill be very thankful for helping me
    farooq

    Hello sir
    i am sudeep and i need to deploy crstal reports in php
    i want to integrate it in sugar crm (open source project(
    can u plz tell me how to do it
    i have written this code
    <?php
    //echo phpinfo();exit;
    $ObjectFactory= New COM("CrystalReports11.ObjectFactory.1");
    $crapp = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application");
    //$crapp = new COM("CrystalRuntime.Application.10");
    $reportToRun="C:\Report4.rpt";
    $creport = $crapp->OpenReport($reportToRun, 1);
    //reportToRun=full path to *.rpt file
    $creport->Database->Tables->
    Item(1)->ConnectionProperties['User ID'] = $user;
    $creport->Database->Tables->
    Item(1)->ConnectionProperties['Password'] = $pass;
    //fomatType = integer 22=xls, 31=pdf etc
    $creport->ExportOptions->FormatType = $formatType;
    //type 1 is to output to a file I think 2 is email
    $creport->ExportOptions->DestinationType = 1;
    //location = full path to report output file
    $creport->ExportOptions->DiskFileName = $location;
    $creport->DiscardSavedData();
    $creport->Export(False);
    ?>
    thanks in advance

  • Custom report templates with the help of BI Publisher.

    Hi All,
    I have created custom report templates with the help of BI Publisher it is working as we excepted.
    refered : https://blogs.oracle.com/kyle/tags/reports
    But our requirement want to change the color of heading and include filters in output report, It is possible, if yes pls share you comments?
    Best Regards
    Pradeep

    how silly of me!
    just restarting the tomcat sorted the problem!!!

  • Create Jasper Reports in JSF Portlet...

    Hi,
    Is there anyone having samples of creating Jasper Reports in JSF Portlet ( Sun Java Creator 2 EA).
    Thanks indeed for your help.
    =netsearcher2000=

    Hi Sundar
    check link:http://www.jasperassistant.com/demo.html
    this link contains all necessary steps for creating jasper report this would be helpful for u

Maybe you are looking for

  • Finding out Idoc number of the Invoice List

    Hi! how to find out Idoc numberr if I have number of Invoice List? For example, I have number of Invoice List for checking it in tcode VF22, but how to get Idoc number of the Invoice List in order to check it in WE02? Will reward, Mindaugas

  • [Solved] embedded videos in firefox take a lot of CPU time

    Playing embeded videos in Firefox take a lot of CPU time. Actually my old computer is not able to play these videos correctly if they are in HD. The problem appears with flash videos (not so surprising, flash sucks...) but also with html5 videos (the

  • PSE 8 Editor crashes on launch

    When I try to start the editor in PSE8 the editor workspace appears to be loading then I get a crash report stating that " Adobe has detected the application Elements Organizer has unexpectedly quit" (see below). I have tried uninstalling then reinst

  • My D110 won't connect to my Dir 601 Wireless router because it thinks the MAC filtering is on.

    The D-Link techs say the default status for MAC filtering on the router is "OFF".   How do I get around this?

  • GuiXT requires InputAssistant

    Hello! I need you advice to using GuiXT with Citrix deploiments. I create "Z" transaction with variant and run GuiXT script from this transaction (feel fields on screen). When i run script with local mode (GuiXT install on my Desctop) script work wel