Is php or mysql hanging due to my code?

Hi,
I've a project where i need to display the result of a query in a table. One of the result is 1263 rows and even after 15 minutes the table doesn't display.Is php,mysql or apache hanging.I use latest softwares of the above.If yes, wht can i do to test it and rectify it. connection working fine.The code is below
$ifields=split(",",$query1);
$i=0;
$bgc="black";
echo "<center><font size=9 face=\"book antiqua\"><table cellspacing=1 border=3><tr bgcolor=000000><th>Sl #</th>";
echo "<th>StreamId</th>";
echo "<th>Directory Path</th>";
echo "<th>Name</th>";
echo "<th>For Details</th>";
foreach($ifields as $field)
     if ($field=="typeid")
     else
          if ($field=="streamname")
          else
          echo "<th>$field</th>";
while ($i<=$num-1)
     $type=mysql_result($result,$i,"streamid");
     $directory=mysql_result($result,$i,"directoryid");
     //$type=mysql_result($result,$i,"typeid");
     $streamname=mysql_result($result,$i,"streamname");
     $streampath=mysql_result($result,$i,"streampath");
     $querytype = "SELECT * from type where id=$type";
     $resulttype = mysql_query($querytype, $connection);
     $typename=mysql_result($resulttype,0,"name");
     //$dirname = "SELECT * from directory where id=$directory and typeid=$type";
     //$resulttype = mysql_query($dirname, $connection);
     //$directoryname=mysql_result($resulttype,0,"name");
     echo "<tr bgcolor=$bgc><td>$i</td>";
     echo "<td>$type</td>";
     echo "<td>$streampath</td>";
     echo "<td>$streamname</td>";
     echo "<td><a href=\"details.php?type=$type&directory=$streampath&name=$streamname\" target=main>Click Here </a></td>";
     foreach($ifields as $field)
          if ($field=="type" || $field=="streamname" )
          // Do Nothing.
          else
               $value=mysql_result($result,$i,$field);
               $Hex="";
               if ( $field=="pcrpid" || $field=="audiopid" || $field=="videopid" )
                    if ( hexdec($value) !=0 ) $Hex="0x";
               else if ( $field=="ac3bitrate" || $field=="samplerate" )
                    if ( $value="0.000000") $value="";
               echo "<td>$Hex$value</td>";
     $next=$i+1;
     if ($i%2==0)
          $bgc="gray";
     else
          $bgc="black";
     $i++;
echo"</table></font></center>";

Hi!!
Pls post complete code...also you haven't closed the <tr bgcolor=$bgc>..tag..make sure <tr> tag is closed..

Similar Messages

  • 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

  • How to reduce buffer busy waits, session hanging due to buffer busy waits

    Hi,
    How to reduce buffer busy waits, session hanging due to buffer busy waits.
    Thanks,
    Sathis.

    When I see through enterprise manager I see lot of
    tables with buffer busy waits.
    Is there any way by table name we can check the
    blocks info.
    The simple way is to look at the SQL statement and corresponding table name?
    P1=file#, P2=block#. You can extract segment name(table or index) using this info.
    Query v$bh like following:
    SQL> select file#, block#, class#, objd from v$bh where file# = P1 and block# = P2;
    SQL> select object_name from all_objects where object_id = <objd>;See following doc:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1051.htm
    Or you can dump block:
    SQL> alter system dump datafie <P1> block <P2>;Some excerpts from block dump:
    scn: 0x07df.17e70782 seq: 0x01 flg: 0x04 tail: 0x07822301
    frmt: 0x02 chkval: 0x61d0 type: 0x23=PAGETABLE SEGMENT HEADER
    Map Header:: next  0x00000000  #extents: 1    obj#: 55881  flag: 0x10000000>
    Can we do something at table level that will reduce
    the waits.
    Yes, some methods are known. But before thinking of that, you must verify which block class and which access are involved.
    Typo... always. :(
    Message was edited by:
    Dion_Cho

  • 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 to create php/apache/mysql installer with AIR

    Dear Flexer,
    I'd like to use AIR to create my own web tools installer (like mamp, wammp...).
    But I have no idea how to do that.
    Can you help me?
    Thanks

    There's a tutorial here:
    http://www.php-mysql-tutorial.com/wikis/php-tutorial/installing-php-and-mysql.aspx
    That said, why go through all the trouble? There are a number of applications out there than install and configure Apache, PHP, and MySQL for you.

  • 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/
    >

  • Set a max Upload quantity dreamwaver php and mysql

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

  • CMS for Dreamweaver and PHP with MySQL

    Hello
    I am at a medium level with Dreamweaver MX and 8. I have
    created a dynamic website running PHP and MySQL. The site sells
    luxury yachts (resales). What I need is a simple, not too custom
    code heavy content management system to allow the client to update
    dynamic text areas and upload images via a web browser (IE7 PC).
    The site needs the ability to input new boats, and delete sold
    boats (flush out the database items).
    Has anyone got a recommendation for some CMS software,
    preferably Mac OSX PPC and running on a server under linux.
    I don't mind buying it, in fact rather do that than risk
    shareware going forward.

    I have the exact same need. Looks like nobody had any
    suggestions for the original poster. Perhaps someone can make a
    recommendation this time? I too am looking for a commercial
    product, rather than open-source.

  • Insert not working in php to mysql

    Ive been trying to enter information into mysql for the longerst. My guess is the sql statement. But if anybody can find anything wrong please tell me
    Heres my database
    and heres my code
    please help

    Can you try this in your insert.php (its mysqli rather than mysql)
    <?php
    $NameofOrganization = $_GET['NameofOrganization'];
    $Tickets = $_GET['Tickets'];
    $OriginalPrice = $_GET['originalprice'];
    $DiscountedPrice = $_GET['DiscountedPrice'];
    $Date = $_GET['Date'];
    $Time = $_GET['Time'];
    $Email = $_GET['Email'];
    $Description = $_GET['Description'];
    $Event_name = $_GET['event_name'];
    $con=mysqli_connect("localhost", "root" , "", "user_registration");
    // Check connection
    if (mysqli_connect_errno()) {
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
    mysqli_query($con,"INSERT INTO events (name_organization, event_name, number_of_tickets, orginal_price, discounted_price, date, time, email,description) VALUES('$NameofOrganization' , '$Event_name', '$Tickets', ' $OriginalPrice', '$DiscountedPrice', '$Date', '$Time', '$Email', '$Description' )");
    ?>
    Below is the mysql version for insert.php:
    <?php
    $NameofOrganization = $_GET['NameofOrganization'];
    $Tickets = $_GET['Tickets'];
    $OriginalPrice = $_GET['originalprice'];
    $DiscountedPrice = $_GET['DiscountedPrice'];
    $Date = $_GET['Date'];
    $Time = $_GET['Time'];
    $Email = $_GET['Email'];
    $Description = $_GET['Description'];
    $Event_name = $_GET['event_name'];
    ?>
    <?php
    // Make a MySQL Connection
    mysql_connect("localhost", "root", "") or die(mysql_error());
    mysql_select_db("user_registration") or die(mysql_error());
    // Insert a row of information into the table "events"
    mysql_query("INSERT INTO events
    (name_organization, event_name, number_of_tickets, orginal_price, discounted_price, date, time, email,description) VALUES('$NameofOrganization' , '$Event_name', '$Tickets', ' $OriginalPrice', '$DiscountedPrice', '$Date', '$Time', '$Email', '$Description') ")
    or die(mysql_error()); 
    ?>

  • LABVIEW APPLICATION HANGS DUE TO INSUFICIENT MEMORY

    I AM USING LABVIEW 7.1. I BUILD ONE APPLICATION. IN THAT APPLICATION I USED MSCOMM ACTIVEX FOR SERIAL COMMUNICATION TO MY PLC. ALSO I USED TOOLBAR , STATUS BAR ACTIVEX IN MY APPLICATION. IT WORKS OK. BUT AFTER SOME TIME SOFTWARE GET HANGS DUE TO INSUFFICIENT MEMORY. I FOUND THAT AFTER 3SECOND THAT EXE SIZE IN MEMORY GET INCREASED BY 4K. WHY DON'T KNOW. PLEASE TELL WHY MEMORY SIZED INCREASED.

    How can we say why, without seeing your code ?
    -Check if you open references and not closing them.
    -Use "Performance and Memory" to see in which vi, the memory is increased

  • Captcha's in PHP to MySQL

    I am having troubles creating a php captcha verifaction for a
    form I am using.... I am able to create the catpcha fine but need
    some help on the INSERT part of the form. This INSERT section
    should input a record into a MySQL table providing the catpcha has
    passed verification check.
    The code I am using has two 'if' statements based on a pass
    and fail... question I have is A) Should I use the if statements to
    check the captcha and input the record B) How would I include a
    INSERT within this function?
    Many thanks
    Luke

    Can you try this in your insert.php (its mysqli rather than mysql)
    <?php
    $NameofOrganization = $_GET['NameofOrganization'];
    $Tickets = $_GET['Tickets'];
    $OriginalPrice = $_GET['originalprice'];
    $DiscountedPrice = $_GET['DiscountedPrice'];
    $Date = $_GET['Date'];
    $Time = $_GET['Time'];
    $Email = $_GET['Email'];
    $Description = $_GET['Description'];
    $Event_name = $_GET['event_name'];
    $con=mysqli_connect("localhost", "root" , "", "user_registration");
    // Check connection
    if (mysqli_connect_errno()) {
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
    mysqli_query($con,"INSERT INTO events (name_organization, event_name, number_of_tickets, orginal_price, discounted_price, date, time, email,description) VALUES('$NameofOrganization' , '$Event_name', '$Tickets', ' $OriginalPrice', '$DiscountedPrice', '$Date', '$Time', '$Email', '$Description' )");
    ?>
    Below is the mysql version for insert.php:
    <?php
    $NameofOrganization = $_GET['NameofOrganization'];
    $Tickets = $_GET['Tickets'];
    $OriginalPrice = $_GET['originalprice'];
    $DiscountedPrice = $_GET['DiscountedPrice'];
    $Date = $_GET['Date'];
    $Time = $_GET['Time'];
    $Email = $_GET['Email'];
    $Description = $_GET['Description'];
    $Event_name = $_GET['event_name'];
    ?>
    <?php
    // Make a MySQL Connection
    mysql_connect("localhost", "root", "") or die(mysql_error());
    mysql_select_db("user_registration") or die(mysql_error());
    // Insert a row of information into the table "events"
    mysql_query("INSERT INTO events
    (name_organization, event_name, number_of_tickets, orginal_price, discounted_price, date, time, email,description) VALUES('$NameofOrganization' , '$Event_name', '$Tickets', ' $OriginalPrice', '$DiscountedPrice', '$Date', '$Time', '$Email', '$Description') ")
    or die(mysql_error()); 
    ?>

  • DataGrid to PHP to MySQL?

    I'm working with FlashBuilder 4 b2. It is doing some wonderful things, but I am having trouble getting my app to send data back to the database table. It reads it just fine. I want to update the data in a dataGrid then update the database with the dataGrid contents.  I am using PHP and MySQL on a local server.  Where can I find an example of the Actionscript 3 and PHP code to get it to work? Thanks!

    Hi,
    You have to use <service instance id>.commit() instead of <service class name.>
    For example,
    My generated code looks like this,
    <fx:Declarations>
            <s:CallResponder id="getAllEmployeesResult"/>
            <employeesservice:EmployeesService id="employeesService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    So in my button click handler function, I have to make a call, "employeesService.commit() "
    Note that i have used the id property of EmployeeService. Let me know if it helps.
    Thanks,
    Radhakrishna

  • I need to know how I will create a dynamic website using php and mysql

    I need to know how will I create a dynamic website using php and mysql that people could have the abilities of registering in the website, and modify their profile where they can add their pictures and everything. apart from that, they should have the ability to search about other member. hope to here more from you.

    If you are a right-brained creative, and have no previous experience or propensity to be able to understand coding and database "stuff", and/or if your time can be better spent on other skills, I recommend you save your sanity and hire a developer... or at least the first time around. I have been attempting to grasp this for years... and have a library of marked up books to prove my efforts, all while trying to keep up with an ongoing client base that is always cramped. It's a wonder I still have my sanity... then again, I might not be the best person to determine that. Others might question it.
    That said, I still plan to master php... one of these days.

  • Essbase server is hanging due to BSO applications

    Hi All,
    We upgraded from 9.3.1 to 9.3.3 in august and since then we are having issues. We have about 12 BSO applications, Size is 2GB each. After the upgrade when the users do some operations sucn as rerteval or outline edits etc the essbase hangs and we have to reboot to resolve this issue but after sometime (1 hour later) on performing the same operations it hangs again.
    We initially thought it is the server problem, so we migrated all these 12 apps to 3 diferent servers and the other server also started hanging due to these apps. SO this solidifies that there is something wrong in these BSO applications...Any ideas????
    System info: Windows environment
    sever: windows server 2003
    hyp - 9.3.3
    Oracle support also jumped in but could not resolve the issue.
    Any help would be appreciated.
    Thanks!!!

    Have a look on Essbase conf file
    for netdelay and net recount try increaseing 1000 each and look for diffrence
    Also look on avaiable RAM on server. Allot 2 gb per application
    let say you have 12 app then 12*2=24 + 6 Gb i.e=30gb so better get 32gb
    up to my understanding since ram seq goes 8 ,16, 32, 64
    also look at your processor how many core have alloted
    Have a read on :http://docs.oracle.com/cd/E17236_01/epm.1112/esb_dbag/frameset.htm?part_optimize.html

Maybe you are looking for