Results 1 to 21 of 21

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Joredos's Avatar
    Join Date: May:2003
    Location:
    Posts: 5,202

    , . -( ) MS SQL , - html- . -, .
    . HWBG ! , .

  2. #2
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    HTML? PHP, ASP, Perl...
    ''? * *
    - !
    ...

  3. #3
    Joredos's Avatar
    Join Date: May:2003
    Location:
    Posts: 5,202
    . .- . . .
    . HWBG ! , .

  4. #4
    Registered User bombov's Avatar
    Join Date: Jan:2007
    Location:
    Posts: 260
    Quote Originally Posted by Joredos View Post
    . .- . . .
    Html . .

    script- - php,java,c++ ..

    Php MySql :

    Code:
    <?
    $link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
    @mysql_select_db(" ", $link) or die(mysql_error());
    $query = mysql_query("SELECT * FROM table'");
    
    while($row = mysql_fetch_assoc($query))
    	{
    	 	$result[] = $row;
    	}
    ?>
    <table>
      		<tr>
        		<th> 1</th>
        		<th> 2</th>
        		<th> 3</th>
      		</tr>
    <?php
    	if(!empty($result))
    	{
    		foreach ($result as $tableRow):  
    ?>
    		<tr>
        		<td><?php echo $tableRow['row1'];?></td>
       	        <td><?php echo $tableRow['row2'];?></td>
       		<td><?php echo $tableRow['row3'];?></td>
      		</tr>
    <?php
    		endforeach;
    	}
    ?>
    </table>

  5. #5
    Registered User genn's Avatar
    Join Date: Feb:2003
    Location:
    Posts: 1,215
    Quote Originally Posted by bombov View Post
    ... script- - php,java,c++ ..
    off
    , ...

  6. #6
    Registered User bombov's Avatar
    Join Date: Jan:2007
    Location:
    Posts: 260
    Quote Originally Posted by genn View Post
    off
    , ...
    , .

  7. #7
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    Quote Originally Posted by Joredos View Post
    .
    - , , ? PHP ?
    ''? * *
    - !
    ...

  8. #8
    Joredos's Avatar
    Join Date: May:2003
    Location:
    Posts: 5,202
    , .bombov, .
    . HWBG ! , .

  9. #9
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , , . - php. , .
    PHP 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></title>
    </head>
    <body>
    <?php
    $db_host 
    "ime_ili_ip_na_hosta"//  localhost
    $db_name "ime_na_bazata";
    $db_username "ime_na_usera";
    $db_password "parola";
    $db_connection = @mssql_connect($db_host$db_username$db_password) or die(mssql_get_last_message());

    if(!@
    mssql_select_db($db_name$db_connection))
         die(
    '    .');

    $table 'ime_na_tablica';
    $query 'SELECT * FROM '.$table
    $res = @mssql_query($query);
    if(
    $res){
        if(
    mssql_num_rows($res) > 0){
    ?>
    <table border="1" cellspacing="0" cellpadding="1">
      <tr>
    <?php
        $num_fields 
    mssql_num_fields($res);
        for(
    $i 0$i $num_fields$i++){ 
    ?>
        <th><?php echo mssql_field_name($res$i); ?></th>
    <?php
        

    ?>
      </tr>
    <?php 
        
    while(($data mssql_fetch_row($res)) == TRUE){ 
    ?>
      <tr>
    <?php
            
    for($i 0$i $num_fields$i++){
    ?>
          <td><?php echo $data[$i]?></td>
    <?php
            
    }
    ?>
      </tr>
    <?php
        

    ?>
    </table>
    <?php
        
    }
        else
            echo 
    '  .';
        
    mssql_free_result($res);
    }
    else
        echo 
    mssql_get_last_message();
    ?>
    </body>
    </html>
    . MySQL, . .
    Last edited by Bombera; 12th November 2009 at 21:06.
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  10. #10
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , ++ . .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  11. #11
    Registered User genn's Avatar
    Join Date: Feb:2003
    Location:
    Posts: 1,215
    Quote Originally Posted by Bombera View Post
    , ++ . .
    , . c++ , php .

    , ,

  12. #12
    Registered User
    Join Date: Oct:2006
    Location: Plovdiv
    Posts: 305
    php - 5 ASP.NET :P - gridview connection, ( sql-a ) . Paging, Sorting - ...

    Code:
    	 <asp:GridView runat="server" AutoGenerateColumns="True" ID="grid" 
    	 	 AllowPaging="True" AllowSorting="True" 
    	 	 DataSourceID="SqlDataSource1" />
    	 <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    		 ConnectionString="<%$ ConnectionStrings:MyConnection %>" 
    		 SelectCommand="SELECT * FROM MyTable">
    	 </asp:SqlDataSource>
    prepBut nI vrbLike adjHungarian! qWhat's artThe adjBig nProblem?

  13. #13
    Registered User bombov's Avatar
    Join Date: Jan:2007
    Location:
    Posts: 260
    . .

    php , http://bg.php.net/ ( ).

  14. #14
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , , . , HTML WYSIWYG .
    - - , .. .
    , , , , , . , , . , , . , .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  15. #15
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    Quote Originally Posted by Bombera View Post
    ... , ...
    . PHP , , - ? - , ? ?
    Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19

  16. #16
    Registered User
    Join Date: Oct:2006
    Location: Plovdiv
    Posts: 305
    Quote Originally Posted by Bombera View Post
    , , . , HTML WYSIWYG .
    php asp.net sql-a . :P

    MSSQL MySQL + php...




    Quote Originally Posted by Bombera View Post
    , , , , , .
    - . codeproject.com paging , insert- SQL ( ) ... - , -: stored procedures -, ... " " ( ) ...


    PS: Bombera, - server-side . .. - "" . .
    Last edited by DiadoMraz; 14th November 2009 at 03:24.
    prepBut nI vrbLike adjHungarian! qWhat's artThe adjBig nProblem?

  17. #17
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , .
    :
    PHP Code:
    for($i 1$i 5$i++){
        
    $a $i;
    }
    echo 
    $a
    , $=4, . . unset($a).
    , -, . , , .
    - , PHP. .
    , , , , ., .
    , , , - , , .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  18. #18
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  19. #19
    Registered User bombov's Avatar
    Join Date: Jan:2007
    Location:
    Posts: 260
    To , Garbage Collector , .

    Quote Originally Posted by Bombera View Post
    - - 1) 2)
    1) ?
    2) . , .

  20. #20
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    Quote Originally Posted by bombov View Post
    1) ?
    2) . , .
    -, ( ) , query.
    , , while-, $row .

    Code:
    <?
    $link = mysql_connect('localhost', 'user', 'password');
    @mysql_select_db("DB_NAME", $link) or die(mysql_error());
    $query = mysql_query("SELECT * FROM `users`");
    
    if ($query) {
    	if (mysql_num_rows($query) > 0) {
    		echo '<table><tr>';
    		$cnt = 0;
    		while($row = mysql_fetch_assoc($query)) {
    			if ($cnt == 2) {
    				echo '</tr><tr>';
    				$cnt = 0;
    			}
    			echo '<td>'.$row['name']."</td>";
    			$cnt++;
    		}
    		echo '</tr></table>';
    	}else {
    		echo 'No users in db!';
    	}
    }else {
    	echo 'broken query!';
    }
    ?>
    E, , .
    Last edited by BornToDrink; 14th November 2009 at 11:42.
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  21. #21
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    Quote Originally Posted by bombov View Post
    ...
    1. , , - .

    2. if($rezultat_ot_zaqwkata). mysql_num_rows, BornToDrink, . , Firebird(ibase_num_rows ). , , . , , (, , ), , .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |