Jump to content


  • Posts

  • Joined

  • Last visited

About rootKID

  • Birthday 11/08/1992

Previous Fields

  • Languages
    PHP, CSS, HTML, JavaScript, jQuery, MySQL, MySQLI

Profile Information

  • Gender
  • Location
  • Interests
    HTML, CSS, Photoshop, PHP, jQuery, JavaScript, Ajax, MySQL, MySQLI, Movies, Gaming, Music, American Football, Homework

Recent Profile Visitors

11,385 profile views

rootKID's Achievements


Member (2/7)



  1. Hi W3S! Been a while (as always). So i am in need of support yet again. I have this fun project of mine, where i have 2 background images i really wonna show, but at random on each page load... so as the title says, is there a way to do this with simple javascript? As said i have 2 background images i wanna show and since im not the best with javascript, i kinda hoped i could get you guys to show me an example or at least guide me to where i could look? I have looked at W3Schools main website but not sure if i'm looking in the right spot. Many thanks in advance! :D PS: The idea behind the background images is that they should be attached to the "<body>" tag for kinda "overlayers". If that makes sence? I already have a "black" background, and these images are supposed to look like "x"s... but in different colors... hense the random images... Anyways as always, thanks in advance and i hope you guys can help me... again... as always... Happy new year so far, and hope all are with good health! And watch out! <3 Regards, rootKID :D
  2. but i tried this and it dosent react for some reason 😕 I tried creating a whole new project with css and everything. When i get home i can try and give you the code here, where you can see what i am doing currently - maybe you can see if i'm doing it correctly or not. Right now im just using the CSS based from OpenCart admin panel and it seems to work as said before, but still, could be doing it wrong. Will share the coe when i get home later
  3. Hmm ok i think i understand now. But just to give you an ideas as to what im looking into currently - is the demo page of "OpenCart" admin panel. OpenCart is an open-source website for webshops - and i kinda like their setup - which i am currently trying to copy. I have tried to copy some of their CSS code just to see how theirs work and it looks pretty good - just not sure if its the right way but it works on my end. Basically i still hit the "body" element, and tells it with normal css (no flex just yet), that it should be 100% height and then i have a simple wrapper div box right after as a child where i tell it to be absolute position and 100% height and from there, i can start playing around with divs inside, which is working great so far - i haven't had any spoilers/errors just yet
  4. hmm - if i start messing around with html/body tags, does that not interfere with the BootStrap CSS Oo? I mean, even tho i set it to be 100% in both height and width, still...
  5. hmmm... so something similar to this you mean: <div class="container-fluid"> put my wrapper around here? or how do you mean? <div class="row"> <div class="col-sm-4"> .COL-SM-4 </div> <div class="col-sm-8"> .COL-SM-8 </div> </div> </div> this is why im kinda confused. if i could only use bootstrap, my life would be saved but i have primarily 2 problems when it comes to BS. first is that i cannot get the things to be 100% height AND even then, if i do get them to be 100% height, i have trouble with overflow's with texts and such AND! Then the next problem is the columns (i think at least...). Whenever i try to make the height 100%, i have problems with the breakpoints in bootstrap 4.5.2 - of which i simply don't know how to get around (the fixes). This is why i would have to make a work-around with the custom stuff but still a bit un-clear to me as to how i should take the aproach 😕
  6. ok so short answer is yet i can assume? And no, my classes won't in any way conflict with theirs. I also use something like ".CUSTOM_CSS-classe_name_goes_here_etc"... but why im confused is that they have specific breakpoints with rems and pixels... if i make a class called ".CUSTOM_CSS-wrapper_1" and place that as being my website holder etc - will i still be able for instance to place container,row and col-sm-12 classes inside there? If i have f.ex. a specific width inside that wrapper? Or for the sake of responsiveness an "auto" width? If that makes sense?
  7. Hello W3S. So this is not a problem as much as a question. I have found this awesome tutorial where i can use CUSTOM FLEXBOX CSS CODING to make a sidepanel/menu to my website (not online just yet). My question is. If i start doing this, can i use stuff like grid boxes from bootstrap 4? The reason i ask of this, is because im afraid of the grid "break-points". For example if i make use of a navbar on a content (the right side of the page etc...) and set the expand to "xl" - will the "width/px" breakpoint get in trouble with breaking and stuff like this, in regards to the custom setup i have? I'm asking mostly because im a big fan of bootstrap - however lately they have not been able to deliver the things i need and i would have to think differently and try to compromise with my designs and things like this. I hope my questions makes sense? Mostly because i know (again, for example), bootstrap 4 have breakpoints like "if less than 1000xxxx pixels, break" and so on. But in my situation, i wish to make a website that are kinda "divided" into left/right and with different pixels in widths and such - so if i start to insert "containers, rows, columns, etc"... this is what im afraid of? Hope you all understand my concern and could answer this - if more details/samples neede, dont hesitate to ask Many thanks in advance!
  8. Hi, been a while. Started a new project today. A WEBSITE Crawler made with pure PHP (if possible of course). I know there are other websites out there like this - but never the less i always wanted to create my very own. The idea about the project is to create a website that will gather information from various different website links i have pasted into the code/database etc, and it would then take the prices from those websites and place them in a sort of "history" of prices in the database. You probably know what im talking about - but just making this for the sake of seeing how its actually done. However, i am a little bit clueless as to where to start? I mean... would i create some sort of CRON job to run a file that would then execute the code for me each hour or something? And if so, how would a basic code like this look like? Any ideas what to look into would be really appreciated! Many thanks in advance!
  9. Hello W3S! So, im a bit confused kinda. Currently, im trying to "re-create" this canvas kind of "matrix effect". Found it from the URL below here: HTML5 CANVAS MATRIX EFFECT Now, what i am trying to achieve here, would be the exact same effect - but on a DIV instead? Because from what im aware of the canvas it is not possible to place things like DIV's and FORM's on those? (correct me if im wrong here....) So at the moment im kinda trying to re-engineer the effect, but still a little lost i guess. This is my current Javascript Code: /* ##################################################################################### # FILE: ( ROOT/file.login.3.html ) # ID & CLASS PREFIX: ( #fl3, .fl3_ ) # SAMPLE 1: ( body#fl3 ) # SAMPLE 2: ( #fl3 ) # SAMPLE 3: ( div.fl3_CLASS_ETC_ ) # SAMPLE 4: ( .fl3_CLASS_ETC_ ) # SAMPLE 5: ( .fl3_ ) ##################################################################################### */ // "#fl3_matrix_1" // "fl3_matrix_1_" // "fl3_matrix_1___" var fl3_matrix_1_id = document.getElementById("fl3_matrix_1"), // full screen dimensions fl3_matrix_1_screen_width = window.innerWidth, // or "cw = column width" fl3_matrix_1_screen_height = window.innerHeight, // or "ch = column height" fl3_matrix_1_character_array = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'], fl3_matrix_1_max_character_count = 100, fl3_matrix_1_falling_character_array = [], fl3_matrix_1_fontSize = 10, fl3_matrix_1_maxColums = fl3_matrix_1_screen_width/(fl3_matrix_1_fontSize) ; fl3_matrix_1_id.width = fl3_matrix_1_screen_width; // Width Being Set fl3_matrix_1_id.height = fl3_matrix_1_screen_height; // Height Being Set // Generates a random integer function fl3_matrix_1___randomInt( min, max ) { return Math.floor(Math.random() * ( max - min ) + min); } // Generates a random float function randomFloat( min, max ) { return Math.random() * ( max - min ) + min; } // Generates a "Point" function Point( x, y ) { this.x = x; this.y = y; } /* var canvas = document.getElementById( 'canvas' ), ctx = canvas.getContext( '2d' ), canvas2 = document.getElementById( 'canvas2' ), ctx2 = canvas2.getContext( '2d' ), // full screen dimensions cw = window.innerWidth, ch = window.innerHeight, charArr = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'], maxCharCount = 100, fallingCharArr = [], fontSize = 10, maxColums = cw/(fontSize); canvas.width = canvas2.width = cw; canvas.height = canvas2.height = ch; function randomInt( min, max ) { return Math.floor(Math.random() * ( max - min ) + min); } function randomFloat( min, max ) { return Math.random() * ( max - min ) + min; } function Point(x,y) { this.x = x; this.y = y; } Point.prototype.draw = function(ctx){ this.value = charArr[randomInt(0,charArr.length-1)].toUpperCase(); this.speed = randomFloat(1,5); ctx2.fillStyle = "rgba(255,255,255,0.8)"; ctx2.font = fontSize+"px san-serif"; ctx2.fillText(this.value,this.x,this.y); ctx.fillStyle = "#0F0"; ctx.font = fontSize+"px san-serif"; ctx.fillText(this.value,this.x,this.y); this.y += this.speed; if(this.y > ch) { this.y = randomFloat(-100,0); this.speed = randomFloat(2,5); } } for(var i = 0; i < maxColums ; i++) { fallingCharArr.push(new Point(i*fontSize,randomFloat(-500,0))); } var update = function() { ctx.fillStyle = "rgba(0,0,0,0.05)"; ctx.fillRect(0,0,cw,ch); ctx2.clearRect(0,0,cw,ch); var i = fallingCharArr.length; while (i--) { fallingCharArr[i].draw(ctx); var v = fallingCharArr[i]; } requestAnimationFrame(update); } update(); */ Now, what i am trying to do here, are to grab the ID, which is placed on the "<body>" tag! And from there, i wish to kinda place the text in the background? Not sure if this is possible with JavaScript, but again, the reason i want it as a kinda background is because text can still fill so if i just place them like that with the JavaScript, im pretty sure it would push to all the other elements somehow? If anybody got any clues or ideas as to how i could potentially manage to get this one running, i would love the help :D And if you are lost like me, dont hesitate to write and ask for more details. But just imagine this. Essentially i wish to create the effect in the background like this on the "body" html element, because i can then place stuff like DIVs etc inside there and create my login formular ^^' Thanks in advance if anybody got a clue to help me going! And dont hesitate to ask for further details if it can help somehow :P thanks :)
  10. Hello W3S! I'm on it again.... (lol). So lately i've been playing around with creating my very own calendar system where i can connect everything with the database somehow (this is for future purposes tho! for now i only wonna make the calculations and the view/design look great!). So if you could help with the part of the calculations, i would love that. This is my (WHOLE) PHP/FILE code so far: (a little messy) <?php // -> Default Date, Time & Timezone Setup // Timezone List: ( " http://php.net/manual/en/timezones.php " ) date_default_timezone_set('Europe/Copenhagen'); // set the default timezone to use. Available since PHP 5.1 if( ini_get('date.timezone') != 'Europe/Copenhagen' ){ ini_set( 'date.timezone', 'Europe/Copenhagen' ); } // _GET the Year and Month // $m = "m" = "Numeric representation of a month, with leading zeros" = "01 through 12" // $m = "n" = "Numeric representation of a month, without leading zeros" = "1 through 12" $y = (isset($_GET['year']) ? $_GET['year'] : date('Y')); // Year $m = (isset($_GET['month']) ? $_GET['month'] : date('n')); // Month // Months (ARRAY) // ( just like Jan,Feb,Mar,Apr in short format etc... ) $months_array = array( '1'=>'Januar', // Januar (DK), Jan/JAN (DK/ENG), January (ENG) '2'=>'Februar', // Februar (DK), Feb/FEB (DK/ENG), February (ENG) '3'=>'Marts', // Marts (DK), Mar/MAR (DK/ENG), March (ENG) '4'=>'April', // April (DK), Apr/APR (DK/ENG), April (DK/ENG) '5'=>'Maj', // Maj (DK), Maj/MAJ (DK), May/MAY (ENG), May (ENG) '6'=>'Juni', // Juni (DK), Jun/JUN (DK/ENG), June (ENG) '7'=>'Juli', // Juli (DK), Jul/JUL (DK/ENG), July (ENG) '8'=>'August', // August (DK), Aug/AUG (DK/ENG), August (DK/ENG) '9'=>'September', // September (DK), Sep/SEP (DK/ENG), September (DK/ENG) '10'=>'Oktober', // Oktober (DK), Okt/OKT (DK), Oct/OCT (ENG), October (ENG) '11'=>'November', // November (DK), Nov/NOV (DK/ENG), November (DK/ENG) '12'=>'December' // December (DK), Dec/DEC (DK/ENG), December (DK/ENG) ); // Monthly Days (ARRAY) // ( md_array = Monthly Days _ Array ) $md_array = array( '1'=>31, // Jan '2'=>28, // Feb '3'=>31, // Mar '4'=>30, // Apr '5'=>31, // Maj '6'=>30, // Jun '7'=>31, // Jul '8'=>31, // Aug '9'=>30, // Sep '10'=>31, // Okt '11'=>30, // Nov '12'=>31 // Dec ); // Monthly Days (CALCULATION) // ( md = Monthly Days _ Calculation ) $md_calculation = ($m==2 && $y%4==0) ? 29 : $md_array[$m]; // (NEEDS MORE DETAILS FOR LATER PURPOSES!) // Days (ARRAY) $days_array = array( '1'=>'Mandag', // Mandag (DK), Man/MAN (DK), Mon/MON (ENG), Monday (ENG) '2'=>'Tirsdag', // Tirsdag (DK), Tir/TIR (DK), Tue/TUE (ENG), Tuesday (ENG) '3'=>'Onsdag', // Onsdag (DK), Ons/ONS (DK), Wed/WED (ENG), Wednesday (ENG) '4'=>'Torsdag', // Torsdag (DK), Tor/TOR (DK), Thu/THU (ENG), Thursday (ENG) '5'=>'Fredag', // Fredag (DK), Fre/FRE (DK), Fri/FRI (ENG), Friday (ENG) '6'=>'Lørdag', // Lørdag (DK), Lør/LØR (DK), Sat/SAT (ENG), Saturday (ENG) '7'=>'Søndag' // Søndag (DK), Søn/SØN (DK), Sun/SUN (ENG), Sunday (ENG) ); // Monthly Start Day (?) // ( msd_date = Monthly Start Day _ Date ) $msd_date = $y.'-'.$m.'-01'; // Monthly Start Day (?) // ( msd_startday = Monthly Start Day _ Start Day ) $msd_startday = array_search( date( 'D', strtotime($msd_date) ), $days_array ); // Next And Previous Calculation Of Month And Year (CALCULATION) // napcomay_next_y = Next And Previous Calculation Of Month And Year _ Next _ Year // napcomay_next_m = Next And Previous Calculation Of Month And Year _ Next _ Month // napcomay_prev_y = Next And Previous Calculation Of Month And Year _ Prev _ Year // napcomay_prev_m = Next And Previous Calculation Of Month And Year _ Prev _ Month $napcomay_next_y=(($m+1)>12)?($y+1):$y; $napcomay_next_m=(($m+1)>12)?1:($m+1); $napcomay_prev_y=(($m-1)<=0)?($y-1):$y; $napcomay_prev_m=(($m-1)<=0)?12:($m-1); ?> <!DOCTYPE html> <!-- da == (DANSK / DANISH) --> <html lang="da"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS - V.4.5.2 --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> <!-- WWW TITLE --> <title>Kalender System - Version 1.0</title> </head> <body> <!-- DISPLAY YEARS AND YEAR PAGINATION --> <!-- display 5 previous and 5 next years of selected year --> <div class="container-fluid py-3"> <div class="row"> <div class="col-sm-12"> <nav> <ul class="pagination pagination-sm justify-content-center"> <!-- <li class="page-item"> <a class="page-link" href="#" aria-label="Previous"> <span aria-hidden="true">&laquo;</span> </a> </li> --> <?php for ($i=$y-5; $i<=$y+5; $i++){ $current_year = date("Y"); if( isset($_GET['year']) && $_GET['year'] == $i ) { echo ' <!-- <li class="page-item active" aria-current="page"> --> <li class="page-item active"> <span class="page-link"> '.$i.' <span class="sr-only">(nuværende år)</span> </span> </li> '; } else if( !isset($_GET['year']) && $i == $current_year ) { echo ' <!-- <li class="page-item active" aria-current="page"> --> <li class="page-item active"> <span class="page-link"> '.$i.' <span class="sr-only">(nuværende år)</span> </span> </li> '; } else { echo ' <li class="page-item"> <a class="page-link" href="index.php?year='.$i.'&month='.$m.'"> '.$i.' </a> </li> '; } } ?> <!-- <li class="page-item"> <a class="page-link" href="#" aria-label="Next"> <span aria-hidden="true">&raquo;</span> </a> </li> --> </ul> </nav> </div> </div> </div> <!-- DISPLAY MONTHS AND MONTHS PAGINATION --> <!-- display months --> <div class="container-fluid py-3"> <div class="row"> <div class="col-sm-12"> <nav> <ul class="pagination pagination-sm justify-content-center"> <!-- <li class="page-item"> <a class="page-link" href="#" aria-label="Previous"> <span aria-hidden="true">&laquo;</span> </a> </li> --> <?php foreach( $months_array AS $key => $value ){ echo ' <li class="page-item"> <a class="page-link" href="index.php?year='.$y.'&month='.$key.'"> '.$value.' </a> </li> '; } ?> <!-- <li class="page-item"> <a class="page-link" href="#" aria-label="Next"> <span aria-hidden="true">&raquo;</span> </a> </li> --> </ul> </nav> </div> </div> </div> <div class="container py-3"> <div class="row"> <div class="col-sm-12"> <header class="text-center"> <h1><?php echo $months_array[$m]; ?></h1> <h6>( <?php echo (isset($_GET['year']) ? $_GET['year'] : date("Y")); ?> )</h6> </header> </div> </div> <div class="row"> <div class="table-responsive"> <table class="table table-bordered table-striped table-hover"> <caption>TABLE CAPTION</caption> <thead> <tr class="text-center"> <!-- <th scope="col">UGE</th> <th scope="col">MAN</th> <th scope="col">TIR</th> <th scope="col">ONS</th> <th scope="col">TOR</th> <th scope="col">FRE</th> <th scope="col">LØR</th> <th scope="col">SØN</th> --> <th scope="col">UGE</th> <?php // display days foreach ( $days_array AS $key => $value ){ echo '<th scope="col">'.$value.'</th>'; } ?> </tr> </thead> <tbody> <!-- <tr> <th scope="row">1</th> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> </tr> <tr> <th scope="row">2</th> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> </tr> <tr> <th scope="row">3</th> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> </tr> <th scope="row">4</th> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> </tr> --> <tr> <?php for( $i=0; $i<($md_calculation+$msd_startday); $i++ ){ $day = ( $i - $msd_startday + 1 <= 9 ) ? '0'.( $i - $msd_startday + 1 ) : $i - $msd_startday + 1 ; echo ( $i < $msd_startday ) ? '<td></td>' : '<td>'.$day.'</td>' ; echo ( $i %7 == 0 ) ? '</tr><tr>' : '' ; } ?> </tr> </tbody> <tfoot> <tr class="text-center"> <td colspan="8">TABLE FOOT</td> </tr> </tfoot> </table> </div> </div> </div> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script> </body> </html> Note that what im trying to do here, is to create a simple PHP Based Calendar dynamicly working. Right now im just trying to show some simple stuff so i know a little about how everything works. I watched this answer online: ( how-to-create-a-dynamic-calendar-with-mysql-php-etc ) - and it worked great! Then i started to tear stuff here and there apart, so i might understand it a little better and try to improve it a little bit. Now, i am showing in the HTML part successfully things like years, months... but the calendar itself i have a little trouble with. What i wanna try to do, is to also at one point, show stuff like (WEEKS)... and im talking weeks of the year here and what current week we are in. So that means in my code where i show the calendar, this code: for( $i=0; $i<($md_calculation+$msd_startday); $i++ ){ $day = ( $i - $msd_startday + 1 <= 9 ) ? '0'.( $i - $msd_startday + 1 ) : $i - $msd_startday + 1 ; echo ( $i < $msd_startday ) ? '<td></td>' : '<td>'.$day.'</td>' ; echo ( $i %7 == 0 ) ? '</tr><tr>' : '' ; } i have to somehow figure out how to calculate the weeks into the days, somehow giving the days an "offset" with "1" so that they do NOT overwrite somehow the weeks column in the HTML TABLE im creating the calendar on... i have tried to explain a little bit of what im trying and im still trying to figure out what everything means so that i can comment stuff out here and there for myself (for later purposes etc). So if you guys got any idea for the weeks/days part regarding the calendar, i would love the help i could get! ❤️ Thanks in advance NOTE: The full code i shared, you can copy/paste etc... its a full code with full design and everything based on bootstrap css library... just make sure to be online so it works If you got questions or i need to explain a little bit more into details, please reply and i will do my best. Thanks.
  11. so, me and a friend have this website: https://pizza1.pizzabix.dk/pizzaer/62-117-9-italiano.html#/29-storrelse-almindelig Currently, im adding CUSTOM JS to the PrestaShop via this file here: https://pizza1.pizzabix.dk/themes/classic/assets/js/custom.js At the very bottom of the file, beneath the comment (Product Normal/Family Size on Product Details Page - Show/Hide on change) i have this code here: $(function () { // "29" == (Normal Size) // #an_productfields_1_id == (Normal Size) // "30" == (Family Size) // #an_productfields_2_id == (Family Size) // #group_6 == SELECTION/DropDown Form Box //$("#an_productfields_1_id").hide(); // Normal Size (hide instantly) //$("#an_productfields_2_id").hide(); // Family Size (hide instantly) $("#group_6").change(function () { if ($("#group_6").val() == "29") { // Normal Size $("#an_productfields_1_id").show(); } else { $("#an_productfields_1_id").hide(); } if ($("#group_6").val() == "30") { // Family Size $("#an_productfields_2_id").show(); } else { $("#an_productfields_2_id").hide(); } }); }); and i almost got it working, however! As u try it on the website, and i for example take the (Almindelig) value from the select box, it dosent shows the very first time... but when i change to Family Size, nothing happens on the second choise! And same goes for the other way around. When i select (Familie) on first try, it works, hides the "normal sizes / almindelig", and shows family... any ideas as to why it does this? I should have used the propper code i think... i got a peace of the code form this linke by searching google: http://jsfiddle.net/Y3pW9/ https://stackoverflow.com/questions/18572401/jquery-select-change-show-hide-div-event If you could possibly tell me what im doing wrong and what i could do in future cases, i would be very happy! Also, i did consider using "toggle" from jQuery, but not sure hos to use that just yet so i went with this option since i got the most experience (so to speak) with this one... in anyways, i hope you guys can help me out, as always! :D Thanks in advance! Looking foreword for a reply... very... VERY... patiently ;)
  12. Hi sry for late reply as always. Actually the API part sounds like a good idea, but in case i cant find any with theese services, where should i look as to how to implement IMAP services? Done this through CPanel b4 but never by php code? Is this not done to server only? Or is it possible to actually use IMAP to do this stuff on something like front-end on a server and to interact like the way i intended? thx in advance
  13. Good option, problem is that i've never personaly created API's before. I know it is one option, and a popular one at best, so would maybe need help for the beginning. Can you refer me to a guide somewhere online possibly? Thanks in advance!
  14. Hello, been a while. This is as much a hyperthetical question as it is a general question for how to do this best, security wise. So me and a friend is soon to launch a project we wonna sell out to people, however, we have 2 databases to take into consideration. Our customers localhost database, and our database at our own domain name (not online yet! will soon!). The idea is that whenever, on a customers website, a person orders say a pizza, that pizza order will be placed in their database. HOWEVER! That order will also be counted into our database as a sort of receipt. We sell our website based on how much that specific website gets of orders and we get x-% amount of those orders and so on. My questions is. What to take into consideration and how to do this best? Because right now we have: index.php (one file to rule them all............ basically we only have one file :P) up_order.php (upload order to database"s") Now, from what im thinking, the up_order.php file would contain the database to OUR domain (of course)! But since all of these files are gonna be placed on our customers localhost service online on their own website domain and so on, we of course don't want our PERSONAL database login information being on their website!? So what do take into consideration when doing this, and what ways to best protect ourselves from any attacks and other stuff? One thing i have already considered, are to have 2 seperated database logins somehow. One main-login for our database we use for whatever reason, and another that can ONLY INSERT and MAYBE also UPDATE... but we are afraid if we put the "UPDATE" part into the secondary user login we would use for user customers, they (or any hackers for that matter) are still able to use that somehow to change whatever they want inside our database, should they get access? The reason we also consider the UPDATE part, is that if the specific restaurant wants to make changes to a customers order, we should also be able to see this so whenever we bill those customers, we dont send them bills based on some order they maybe did not deliver for some weird reason (of course... would not make sense) In any ways, if you guys knows what type of approaches to take the best and what to take into consideration, i would LOVE you for these information! Maybe considering encrypted information somehow to be used in a database connection? In either way, hoping you can guide me with both information, tutorials or just in general information of what i should read up upon. Thanks in advance! PS: Not sure if this is the right place for me to post this, but hoping it is. If not, then please [ADMIN's], move it to the right location. Again. Thanks! ❤️
  15. Hi, this is a quick one. Is it somehow possible to "show" the mails i GET on my mails on my server/domain? I know some ppl do this... but never seen any code for this out there Oo? Asking bcoz i would like to try and insert this into my project portfolio somehow :D thanks in advanse! :D
  • Create New...