142 Discussion / Question Topics

Remove Filter
Member Avatar for Stefce

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 …

Member Avatar for Reverend Jim
0
528
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
397
Member Avatar for Stefce

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 …

Member Avatar for cereal
0
410
Member Avatar for Stefce

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++; …

Member Avatar for cereal
0
438
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
657
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
294
Member Avatar for Stefce

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' …

0
108
Member Avatar for Stefce

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 …

Member Avatar for diafol
0
272
Member Avatar for Stefce

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 …

Member Avatar for jkon
0
241
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
510
Member Avatar for Stefce
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
268
Member Avatar for Stefce

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) …

Member Avatar for cereal
0
377
Member Avatar for Stefce

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 …

Member Avatar for diafol
0
2K
Member Avatar for Stefce

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' …

Member Avatar for Stefce
0
333
Member Avatar for Stefce

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 …

Member Avatar for cereal
0
409
Member Avatar for Stefce

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 …

Member Avatar for jkon
0
493
Member Avatar for Stefce

$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 …

Member Avatar for Stefce
0
982
Member Avatar for Stefce

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 = …

Member Avatar for Stefce
0
390
Member Avatar for Stefce

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 …

Member Avatar for cereal
0
159
Member Avatar for Stefce

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 …

Member Avatar for cereal
0
230
Member Avatar for Stefce

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)

Member Avatar for Reverend Jim
0
316
Member Avatar for Stefce

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 …

Member Avatar for hericles
0
274
Member Avatar for Stefce

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 …

Member Avatar for RudyM
0
196
Member Avatar for Stefce

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, …

Member Avatar for rproffitt
-1
743
Member Avatar for Stefce

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 …

Member Avatar for Stefce
-1
2K
Member Avatar for Stefce

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: …

0
149
Member Avatar for Stefce

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`, …

Member Avatar for Stefce
0
474
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
347
Member Avatar for Stefce

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 …

Member Avatar for RudyM
0
228
Member Avatar for Stefce

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 …

Member Avatar for rproffitt
0
340
Member Avatar for Stefce

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.` …

Member Avatar for Stefce
0
152
Member Avatar for Stefce

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 ? …

0
168
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
302
Member Avatar for Stefce

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 = …

Member Avatar for ryantroop
0
286
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
312
Member Avatar for Stefce

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."; } …

Member Avatar for saheedriswan
0
13K
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
495
Member Avatar for Stefce

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 …

Member Avatar for rproffitt
0
411
Member Avatar for Stefce

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 …

Member Avatar for gentlemedia
0
3K
Member Avatar for Stefce

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 …

Member Avatar for diafol
0
187
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
552
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
233
Member Avatar for Stefce

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 …

Member Avatar for Stefce
1
443
Member Avatar for Stefce

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 …

Member Avatar for samantha2015
0
290
Member Avatar for Stefce

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"); …

Member Avatar for Stefce
0
388
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
186
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
255
Member Avatar for Stefce

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 …

0
196
Member Avatar for Stefce

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 …

Member Avatar for jkon
0
607

The End.