142 Discussion / Question Topics
Remove Filter Hello everyone i heard about this new but not new technology, which pays you to rent your free HDD space for cloud purposes. I like to ask is there anyone which can give me some more info about this? Am planing to invest about $150 - $200 for Raspberry Pi … | |
Hello i got a wierd problem, when am opening my website on a PC the site loads well and its best of all websites (`:D`).. but when i try to open it on phone or tablet the front page of the website which is meant to show the featured pictures … | |
Hello i want to make SEO friendly links but i dont know how can you please help me doing that? I have this code: <?php $sql = array('ID', 'post_title', 'post_content', 'post_header_image', 'post_category', 'post_date'); $outputSQL = selectSQL($sql, 'news'); $count = count($outputSQL); for ($i=0; $i < $count; $i++) { /* Loop Throught … | |
Hello im really curius about this, i want to know is it possible to intercept the code of execution in PHP but not on the server side. So if i have a script like this for example uploaded to mine server <?php $i=0; while($i<100) { mail("xxxxxx@gmail.com", "SPAM", "It´s ME"); $i++; … | |
How do i return an array with the file names from folder? I have this till now but doesn't work. function showFiles($path) { $folder = "gallery/$path"; $i = 0; if (is_dir($folder)) { if ($handle = opendir($folder)) { while (($file = readdir($handle)) != FALSE) { if ($file === "." || $file … | |
Why i cannot pass array to function parametter with two items? here is the function, but i get just the first parameter `Username` function selectSQL(Array $item, $table) { global $conn; foreach ($item as $field) { $sql = "SELECT `$field` FROM `$table`"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row … | |
Hello i started learning php laravel framework today and as far as i learned i can say its great framework. My problem is declaring the links to other files. Here is the route for file `register.blade.php` web.php Route::group(['prefix' => 'auth'], function() { Route::get('register', [ 'as' => 'get_register', 'uses' => 'Auth\AuthController@getRegister' … | |
I want to make pagination for videos since i have much videos and i cannot load all in the same page, i have a function which displays all videos in the directory and than i limited it only to show first 6. How do i make the pagination so when … ![]() | |
Hello, how do i escape passing parameters to page where you need to give two parameters `ID and category`? my sql is like this `SELECT ID, Image, imageID, Category FROM gallery WHERE imageID={$imageID} AND Category='$category'` but i have a button which should show all pictures no matter what category they … | |
Hello i have a problem putting margin between the images i have this html code <div class="row"> <div class="col-lg-12"> <h2 class="page-header">Featured Posts</h2> </div> <div class="col-md-4 col-sm-6"> <a href="portfolio-item.html"> <img class="img-responsive img-portfolio img-hover" src="http://placehold.it/700x450" alt=""> </a> </div> <div class="col-md-4 col-sm-6"> <a href="portfolio-item.html"> <img class="img-responsive img-portfolio img-hover" src="http://placehold.it/700x450" alt=""> </a> </div> <div … | |
I want to know is it possible to do that and install your own custom software on it ? | |
Hello i would like to invite all who like to take risks and like to build something new, i'm building a project and i can say its complete about 90% BUT i'm not experienced too much to finish the project by my self, so i need HELP from someone who … | |
Hello i have list of football teams on every line is a new team but there are countries in brackets i want to remove all of them, here is a example of the list: Águila (El Salvador) Águilas (Costa Rica) Águilas Doradas (Colombia) Árabe Unido (Panama) Åtvidaberg (Sweden) Ñublense (Chile) … | |
Hello, i want to make a categories menu which each will have its own sub-categories and that category will have own sub-categories im trying to make with arrays but i'm not really good at it.. im trying right now with bunch if statements but is there any other method of … ![]() | |
Hello, I have a multidimensional array i like to make every category to be clickable and to show its own sub-categories i have something like this... pls help to achieve this. function makeList(array $Array) { $Output = '<ul>'; foreach($Array as $Key => $Value) { $Output .= "<li><input type='submit' name='value[$Key]' value='$Key' … | |
Hello i have a question about the security of my website, does my website can get hacked somehow if im updating it directly from my database? (ex. images, posts, links...). I have few pages on my website which have PHP code to read info from the database and i do … | |
It gives me always `Invalid Username or Password` what is the problem with this code ? <form action="admin_login.php" method="POST"> <div class="form-group" style="width: 280px;"> <label for="usr">Username</label> <input type="text" class="form-control" name="userbox" id="user"> <br> <label for="pass">Password</label> <input type="password" class="form-control" name="passbox" id="pass"> <br> <button type="submit" name="login" class="btn btn-success">Log In</button> </div> <?php if(isset($_POST["login"])) { $user … | |
$sql = "INSERT INTO kladilnica (Username, Uplata, Dobivka, Date, regTime, Odds, isActive, ticket_id, isShared, is_wined, Location) VALUES ('".$user."', '".$bet."', '".$gain."', '".$date."', '".$regTime."' '".$odds."', 1, $randomTicketID, 0, 0, '".$userLocation."')"; $result = $conn->query($sql); trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); I searched on google and found that … | |
I have problem with selecting elements from array i have this code which is supposed to take the choosed element and echo it back but instead that this code just takes last element and echo it what is wrong with the code ? <div class="col-xs-3"> <?php global $m; $currencies = … | |
Hello guys i need to get all currencies in the world is there anyone who knows where to get them in a file so i can import it in my website or someone who can help me to solve with regular expression here is the [WEBSITE](http://www.xe.com/currencytables/?from=INR) where i have fund … | |
How do i get the most repeated value that is inserted just today from 23:59 till 00:00 i have this sql but i dont know how to filter it by date any help will be apreciated. $sql = "SELECT `MatchTitle`, COUNT(`MatchTitle`) AS `mostPlayed` FROM `matches` GROUP BY `MatchTitle` ORDER BY … | |
Is there any program for boosting my headphones i have searched on internet but all i get is the same steps (right click on volume>Playback Devices > Properties>Enhacements> Enable Sound Equalizer) | |
I want to make dynamic search button i have this code but doesnt work it gives me this error `Could not connect to database. Fatal error: Wrong SQL: SELECT * FROM kladilnica WHERE Location = Macedonia AND Uplata = 50 AND Liked = 50 Error: Unknown column 'Macedonia' in 'where … | |
Hello everone, i have a `teams.txt` file there are soccer clubs every team on new line i want to split the country from the club when is inserted into database. The country is the last string ex. `FC Barcelona (Spain)` `Arsenal (England)` Any help will be appreciated. I have tried … ![]() | |
Hello guys i want to make inputbox which will autocomplete the started word so you know what i mean like google, facebook who have autocomplete but i have a little problem i have searched and found some plugins and tutorials but actually none of them work i dont know why, … | |
I have two questions does its possible to encrypt get parameter same like the passwords are? If NO whats the best method to do it i have simple parameter `articleID=1`, i want to encrypt the number which user is not able to see it or hack it so should look … | |
I have wierd problem the navigation is working good everywhere but on `home.php` file it doesnt work when i press the MORE button to open the dropdown here is my code, what can cause this problem ? sidebar.css body,html{ height: 100%; } /* remove outer padding */ .main .row{ padding: … | |
Here is the error it gives me Warning: mysqli::query(): Couldn't fetch mysqli in C:\xampp\htdocs\bootstrap\tickets_info.php on line 27 db problem. Warning: main(): Couldn't fetch mysqli in C:\xampp\htdocs\bootstrap\tickets_info.php on line 31 Fatal error: Wrong SQL: SELECT `Uplata`, `Dobivka`, `Date`, `sharedTime`, `match1`, `match2`, `match3`, `match4`, `match5`, `match6`, `match7`, `match8`, `match9`, `match10`, `match11`, `match12`, … | |
I have host on 000webhost when i will try to connect it gives me this error i cannot figure out whats the problem ? `Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/1130): Host '31.170.161.176' is not allowed to connect to this MySQL server in /home/a2548020/public_html/includes/connection.php on line 6` here is my connection script <?php … | |
Hello im building messages page, i want to make it when the sender of the ticket is pressed to show the ticket from that sender so i have two files `messages.php` and `m.php` in messages.php are the the buttons for the senders and in m.php are the tables for the … ![]() | |
Hello everyone, im thinking how to make car engine sound on button click... my idea is when i click the button to be the same as you click on the gas pedal the engine starts to make sound (i know its not possible that with keyboard key) BUT i think … | |
Im making search button and i want when user is searched to give all tickets received by that user i have this code but its just showing the last record of that db table and if i try to search other users gives me `No ticket received from that user.` … | |
I'm really confuzed about this problem i have the same code on all files and is working fine but just it does problem on `home.php`. The problem is that the dropdown menu doesn't showing here is the code please take a look and tell me what wrong am doing ? … | |
Hello i want to make notification when new message is received, i have a row `seen` with values `0` and `1` if is 0 then its unread else is seen i got this code but when it displays the output shows the number of rows but for example i have … | |
Hello i want to make like button so i need to `INSERT`, `SELECT` and check does already exists the record i have this code: **likes.php** <?php require 'connect.php'; require 'core.php'; require_once 'functions.php'; $user = getUserData('users', 'UserUsername'); if(isset($_GET['type'], $_GET['id'])){ $type = $_GET['type']; $id = (int)$_GET['id']; switch($type) { case 'ticket': $sql = … | |
How can i get the end of the month or the beggining of the month to create a new table for records ? i have this code but it gets the current month... <?php $user = getUserData('users', 'UserUsername'); $sql = "SELECT `ticket_id`, `Uplata`, `Dobivka`, `Date` FROM `kladilnica` WHERE `Username`='$user'"; $result … | |
How can i check if username and email exists i have this code but its only checking the email not the username... $sql = "SELECT `Email`, `UserUsername` FROM `users` WHERE `UserUsername`='".$user."' AND `Email`='".$email."'"; $result = $conn->query($sql); if($result->num_rows >= 1) { echo "Email or Username already exist, try something else."; } … | |
Why i get these errors when i open the page but when i try to upload it works fine ? <?php function upload_images() { $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image … | |
Hello everybody im thinking about how AI works and actualy im really confuzed and scared at the same time, so me as low programmer i know how the computers work, first you write the program than you give him input and it gives you output based on what you insert … | |
How can i change the colors of the panels with css every panel to have different color on hover, i have this code: <div class="container"> <div class="row"> <div class="col-sm-4"> <a href="#"> <div class="panel panel-default trending"> <div class="panel-body"> <center> <img src="images/trending.png" alt="Trending"> <h2>Trending</h2> </center> </div> </div> </a> </div> <div class="col-sm-4"> <div … | |
Hello guys i want to ask how can i update my website, i want to make website for random posts updates but im confuzed in creating it. My question is how can i add new posts, do i need to create html files everytime i write new post and update … ![]() | |
How can i stick the footer at the bottom of thumbnail i cannot find anything on google here is the code HTML <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><b>Related Links</b></h3> </div> <div class="panel-body"> <ul class="equal-height-thumbnail"> <li> <figure><img src="http://www.htmllion.com/img/thumb.jpg" alt="Equal height of thumbnail"></figure> <div class="caption"> <p>Lorem ipsum dolor sit amet, consectetur … | |
Hello im using bootstrap and want to make the menu to be sticky i have uploaded the code so you can see it [www.upster.webuda.com](http://www.upster.webuda.com) i want to be like in the login screen at the begining im using the same code for other files but it doesn't work properly someone … | |
Hello everyone, first of all i like to say that the new daniweb webdesign is AMAZING i really like it and hope this site it will become number one for programming and if it does please never BAN its users like stackowerflow do but thats other theme.. :D I have … | |
I have a problem with installing Android Studio i followed thenewboston youtube channel for installing it and when i try to run it shows me some errors: `C:\Users\MONSTER\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus -netspeed full -netdelay none emulator: ERROR: This AVD's configuration is missing a kernel file!! emulator: ERROR: ANDROID_SDK_ROOT is undefined` i … | |
Hello everyone i have a problem with my application `onMarkerClick` it works well till i click the marker second time the application crashes here is the code: mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { builder.setTitle("Set radius in meters:"); builder.setMessage("Info: The radius is set by default on 500 meters"); … | |
Hello guys i have problem with my app, its all done but just need one more thing.. to run in background so it can start the alarm and send notification to the user... i saw much tutorials on internet but damn it i can't understand it is there some good … | |
Hello guys i have a really dumb problem i have two classes the first class is where the input value needs to be applied/readed and the second is where is inputed i do not know how to do that please someone help me This is where it is inputed the … | |
I want to create circle around marker but im having some troubles i have this code Circle circle = mMap.addCircle(new CircleOptions() .center(new LatLng(-33.87365, 151.20689)) .radius(10000) .strokeColor(Color.RED) .fillColor(Color.BLUE)); this code is drawing circle around Sydney but i want to create where i place the marker here is the code together with … | |
Hello i want to make upload button so users can upload images/gifs/videos/music but i cannot understand how i can do that i fuond a code on w3schools but it just uploads the image to folder in my computer called `/uploads` i want to store the images into database which they … |
The End.