Click here to Skip to main content
15,743,429 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: using web API Pin
Slacker00718-Jan-22 0:18
professionalSlacker00718-Jan-22 0:18 
GeneralRe: using web API Pin
Southmountain25-Jan-22 6:06
Southmountain25-Jan-22 6:06 
GeneralRe: using web API Pin
deepok130-Mar-22 21:55
deepok130-Mar-22 21:55 
GeneralHow can i create social media sharing links for my website? Pin
Vijay Bishnoi15-Jan-22 19:45
Vijay Bishnoi15-Jan-22 19:45 
QuestionHow can i create social media sharing links for my website? Pin
Vijay Bishnoi15-Jan-22 19:45
Vijay Bishnoi15-Jan-22 19:45 
QuestionWhat is program is better to use than Dreamweaver for Website Design? Pin
David Mills 202112-Jan-22 21:44
David Mills 202112-Jan-22 21:44 
AnswerRe: What is program is better to use than Dreamweaver for Website Design? Pin
RobertSF25-Feb-22 12:46
professionalRobertSF25-Feb-22 12:46 
AnswerRe: What is program is better to use than Dreamweaver for Website Design? Pin
Member 150787164-Jul-22 18:53
Member 150787164-Jul-22 18:53 
QuestionPHP quota on server Pin
JR21225-Dec-21 23:45
JR21225-Dec-21 23:45 
Questiongreating Pin
BEBEL AZOO20-Dec-21 20:03
BEBEL AZOO20-Dec-21 20:03 
AnswerRe: greating Pin
Connie Rucker21-Dec-21 3:00
Connie Rucker21-Dec-21 3:00 
QuestionWeb Server on Linux Pin
#realJSOP14-Nov-21 2:39
mva#realJSOP14-Nov-21 2:39 
AnswerRe: Web Server on Linux Pin
markkuk14-Nov-21 23:21
markkuk14-Nov-21 23:21 
GeneralRe: Web Server on Linux Pin
azraelmr129-Nov-21 1:45
professionalazraelmr129-Nov-21 1:45 
GeneralRe: Web Server on Linux Pin
markkuk29-Nov-21 10:16
markkuk29-Nov-21 10:16 
GeneralRe: Web Server on Linux Pin
azraelmr130-Nov-21 21:33
professionalazraelmr130-Nov-21 21:33 
AnswerRe: Web Server on Linux Pin
pkfox15-Nov-21 22:02
professionalpkfox15-Nov-21 22:02 
QuestionI need some assistance for do several customisation Pin
Member 154187496-Nov-21 7:04
Member 154187496-Nov-21 7:04 
AnswerRe: I need some assistance for do several customisation Pin
OriginalGriff6-Nov-21 7:05
mvaOriginalGriff6-Nov-21 7:05 
QuestionASP.NET Core (5.0) Web App background images Pin
#realJSOP2-Nov-21 1:38
mva#realJSOP2-Nov-21 1:38 
QuestionUpload content onto Bootstrap card Pin
MekaC27-Oct-21 17:35
MekaC27-Oct-21 17:35 
SuggestionRe: Upload content onto Bootstrap card Pin
Richard Deeming27-Oct-21 21:49
mveRichard Deeming27-Oct-21 21:49 
AnswerRe: Upload content onto Bootstrap card Pin
phil.o27-Oct-21 22:11
mvephil.o27-Oct-21 22:11 
QuestionHow to retrieve images from one file and place them in another file? Pin
MekaC26-Oct-21 1:29
MekaC26-Oct-21 1: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 7:40
professionalnovelsmith13-Oct-21 7:40 

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.