Click here to Skip to main content
15,499,011 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Web Server on Linux Pin
pkfox15-Nov-21 23:02
professionalpkfox15-Nov-21 23:02 
QuestionI need some assistance for do several customisation Pin
Member 154187496-Nov-21 8:04
MemberMember 154187496-Nov-21 8:04 
AnswerRe: I need some assistance for do several customisation Pin
OriginalGriff6-Nov-21 8:05
mveOriginalGriff6-Nov-21 8:05 
QuestionASP.NET Core (5.0) Web App background images Pin
#realJSOP2-Nov-21 2:38
mva#realJSOP2-Nov-21 2:38 
QuestionUpload content onto Bootstrap card Pin
MekaC27-Oct-21 18:35
MemberMekaC27-Oct-21 18:35 
SuggestionRe: Upload content onto Bootstrap card Pin
Richard Deeming27-Oct-21 22:49
mveRichard Deeming27-Oct-21 22:49 
AnswerRe: Upload content onto Bootstrap card Pin
phil.o27-Oct-21 23:11
mvephil.o27-Oct-21 23:11 
QuestionHow to retrieve images from one file and place them in another file? Pin
MekaC26-Oct-21 2:29
MemberMekaC26-Oct-21 2:29 
Hey all ;) 

I took on an already made script for image gallery..goal is to have images uploaded within home page form a gallery for the user( think of FB..each member has their own pic gallery created from what was uploaded either on the dash or profile page). Again I want to make sure the images uploaed from the dropdown button not only shows up underneath on the home page but on image gallery page. 

Thank ya :) 

File upload code from Home page:
```
 <div class="dropdown">
  <button onclick="myFunction()" class="dropbtn">Upload Photo/Text</button>
  <div id="myDropdown" class="dropdown-content">
     <form action="upcontent.php" method="post" enctype="multipart/form-data">
  
  <input type="file" name="fileToUpload" id="fileToUpload">
   <br><br>     
     Words: <textarea name="comment" rows="5" cols="40"><?php echo $comment;?></textarea>
   <input type="submit" value="Submit" name="submit">
</form>
  </div>
</div> 
```
Code from gallery page
```
<div class='container'>
            <div class="gallery">
              
            <?php 
            // Image extensions
            $image_extensions = array("png","jpg","jpeg","gif");

            // Target directory
            $dir = 'img/';
            if (is_dir($dir)){
                
                if ($dh = opendir($dir)){
                    $count = 1;

                    // Read files
                    while (($file = readdir($dh)) !== false){

                        if($file != '' && $file != '.' && $file != '..'){
                            
                            // Thumbnail image path
                            $thumbnail_path = "img/thumbnail/".$file;

                            // Image path
                            $image_path = "img/".$file;
                            
                            $thumbnail_ext = pathinfo($thumbnail_path, PATHINFO_EXTENSION);
                            $image_ext = pathinfo($image_path, PATHINFO_EXTENSION);

                            // Check its not folder and it is image file
                            if(!is_dir($image_path) && 
                                in_array($thumbnail_ext,$image_extensions) && 
                                in_array($image_ext,$image_extensions)){
                                ?>

                                <!-- Image -->
                                <a href="<?php echo $image_path; ?>">
                                    <img src="<?php echo $thumbnail_path; ?>" alt="" title=""/>
                                </a>
                                <!-- --- -->
                                <?php

                                // Break
                                if( $count%4 == 0){
                                ?>
                                    <div class="clear"></div>
                                <?php    
                                }
                                $count++;
                            }
                        }
                            
                    }
                    closedir($dh);
                }
            }
            ?>
            </div>
        </div>
```

QuestionTip to build perfect mobile application Pin
novelsmith13-Oct-21 8:40
professionalnovelsmith13-Oct-21 8:40 
AnswerRe: Tip to build perfect mobile application Pin
megaadam18-Oct-21 6:11
professionalmegaadam18-Oct-21 6:11 
QuestionASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
Kevin Marois11-Oct-21 7:40
professionalKevin Marois11-Oct-21 7:40 
AnswerRe: ASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
Dave Kreskowiak11-Oct-21 9:01
mveDave Kreskowiak11-Oct-21 9:01 
GeneralRe: ASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
Kevin Marois11-Oct-21 9:33
professionalKevin Marois11-Oct-21 9:33 
GeneralRe: ASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
#realJSOP2-Nov-21 1:43
mva#realJSOP2-Nov-21 1:43 
GeneralRe: ASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
Richard Deeming2-Nov-21 2:14
mveRichard Deeming2-Nov-21 2:14 
GeneralRe: ASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
Kevin Marois2-Nov-21 5:34
professionalKevin Marois2-Nov-21 5:34 
AnswerRe: ASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
Richard Deeming11-Oct-21 23:11
mveRichard Deeming11-Oct-21 23:11 
GeneralRe: ASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
Kevin Marois12-Oct-21 8:34
professionalKevin Marois12-Oct-21 8:34 
GeneralRe: ASP.Net Core Web API Exception - Can't Find System.Data.Linq Pin
#realJSOP2-Nov-21 2:01
mva#realJSOP2-Nov-21 2:01 
QuestionSecuring A Web API Pin
Kevin Marois20-Sep-21 12:51
professionalKevin Marois20-Sep-21 12:51 
AnswerRe: Securing A Web API Pin
#realJSOP2-Nov-21 2:06
mva#realJSOP2-Nov-21 2:06 
GeneralRe: Securing A Web API Pin
Kevin Marois2-Nov-21 5:35
professionalKevin Marois2-Nov-21 5:35 
QuestionLaravel 8 how to add elements to navbar app.blade Pin
paradox0215-Sep-21 3:01
Memberparadox0215-Sep-21 3:01 
QuestionSSL Certificate Pin
Kevin Marois26-Aug-21 8:23
professionalKevin Marois26-Aug-21 8:23 
AnswerRe: SSL Certificate Pin
Richard Deeming26-Aug-21 22:52
mveRichard Deeming26-Aug-21 22:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.