17,029 Solved Topics
Remove Filter ![]() | |
I have a script that opens a camera and takes a snap. I want it to be able to create an id of the photo and then store it. HTML <a href="javascript:void(0);" class="updateControl2" id="webcamButton" title="Open Camera"><span class="boxWebcam wallbutton">Open Camera</span></a><br /><br /><br /> <video id="player" controls autoplay></video> <div id="webcam"> <button id="takeSnap" … Web Development api javascript php webcam ![]() | |
how do i convert this <label for="category">Select Winner</label> <select name="willwin" id="willwin"> <?php if ($db->numrows() > 0){ while ($row = $db->fetch()) { ?> <option value=''></option> <option value="<?php echo $row["willwin"]; ?>"><?php echo $row["team1"]; ?></option> <option value="<?php echo $row["willlose"]; ?>"><?php echo $row["team2"]; ?></option> <?php } } ?> </select> <br/><br/> <label>Tag Bettor</label> <select name="sub_cat" … Web Development php ![]() | |
![]() | In my registration page i want user to select multiple images and upload it i am saving images name in database for reference. I am successful in uploading single images in database and can also show image in view but now i have problem in uploading multiple images. <?php if … |
Hello i want to create a horizontal menu divided equally in 4 same width parts. I don't want its width to change. Any ideas? Something like this https://jsfiddle.net/simonioa/t6vqqva2/ but not with <span> elements. Menu should have 4 colors horizontally but would not have to change acoording to html content. I … Web Development html-css | |
I am trying to populate the data in a modal via AJAX, but i am unsure how to do so. The link right now is `<a href="viewmessage.php?id='.$row['ID']'">View</a>` Since there is only 1 Message in the Database, the number is 70. I have seen multiple things online but I am not … Web Development php | |
please help me cause I am totally lost on this one. I am trying to fetch the results from a database that has the data inserted in a weird way. The IDs are not unique, thus I have multiple values with the same ID in the ID column. I am … Web Development php | |
I want to have a forum in my website project in school. i don't have any idea. may anyone help me suggesting some examples. it is like daniweb forums. i want to save the topics in the database and retrieve it as a link. i dont know how to do … Web Development java-jsp | |
Hi I am trying to populate textbox value based on releated textbox value like that of (Country and State) using dynamic row formate. I can able to populate a value for only first row, if i tried ti for second row its again overwrite the first row and also i … Web Development javascript-jquery mssql php | |
I am starting a project that has been managed using a spreadsheet until now but needs to be converted to a mysql/php application. The amount of rows in the spreadsheet has exceeded something that can be easily sorted, filtered and edited. A particular field has a weak entity that is … Web Development javascript javascript-jquery ![]() | |
I am not sure what DOM is. But based on my understanding through my lecture slides and online source. By applying DOM approach, which allowing you to create/update/modify the certain HTML elements dymanically. Am I correct? Web Development javascript ![]() | |
Hi everyone, i have a page that uses jquery ajax to get json from another page. However, instead of the ajax using sucess, it goes directly to error. I have a debug on the error to see what is the issue and i get "Parsing JSON Request failed." page 1.php … Web Development javascript-jquery json php ![]() | |
Hello, Any idea how to change the css codes just by pressing a button? I wonder how to do this? Any clue? Web Development html-css | |
![]() | so i've been trying to do this multiple times but stil didnt get the answer. i have a column named closed in my database and close button in my view, whenever i click the button close, i want it to update my closed column to '0' if it is closed … Web Development php php-codeigniter session |
Experts, I do not understand this atall. Here: https://www.tutorialspoint.com/php/php_constants.htm It says: "PHP Magic constants PHP provides a large number of predefined constants to any script which it runs. There are five magical constants that change depending on where they are used. For example, the value of __LINE__ depends on the … Web Development php ![]() | |
Hello. I'am using php codeigniter for my task here. i just have to use it. its all set up at the first. so i kinda not understand the path. I've read some of the explainatiion and try from scratch but when I try to apply it to my task its … | |
I have a code that is working to show images and description. But I am trying to get it to loop through 3 pictures wide, then loop again. and display them, I am going to add pagination to the script, but before i do that i need it to loop. … | |
Hello, I have this laravel file that is already works but when I try to set it offline it does not works I wonder why? I try to do this: framework_freshway\framework.env DB_HOST=localhost DB_DATABASE=wwwsoulf_revsoul DB_USERNAME=root DB_PASSWORD= http://localhost/framework_freshway/public_html/ Whoops, looks like something went wrong. 3/3 ErrorException in 1319c52207fd4f3069a97397543698e4 line 1275: Trying to … Web Development php web-browser | |
Hello, I am having trouble with laravel video tutorial : https://laracasts.com/series/laravel-from-scratch-2017/episodes/1 Any clue what video player that is perfect to run that video. This is the error messages: The media could not be loaded, either because the server or network failed or because the format is not supported. ![]() | |
Hello, I try to do this: framework_freshway\framework.env DB_HOST=localhost DB_DATABASE=wwwsoulf_revsoul DB_USERNAME=root DB_PASSWORD= http://localhost/framework_freshway/public_html/ Whoops, looks like something went wrong. 3/3 ErrorException in 1319c52207fd4f3069a97397543698e4 line 1275: Trying to get property of non-object (View: C:\xampp\htdocs\framework_freshway\framework\resources\views\home.blade.php) (View: C:\xampp\htdocs\framework_freshway\framework\resources\views\home.blade.php) home.blade.php Line 1274 - 1276: if (type == "twitter") { showProfileInfoTwitter("{{$user->twitter->name}}", "{{$user->twitter->screen_name}}", "{{$user->twitter->profile_image}}", "{{$user->twitter->description}}", 0, 0); … Web Development php | |
Hello i want to add some CSS3 filters on a background image but the effects take place on the text too not just the background image. Here is the css code <div style="color:whitesmoke; background-image:url(wall_icons/uploadMedia.png); background-size:contain;-webkit-filter:grayscale(1.7); filter: brightness(0.2); -webkit-filter: brightness(0.2); -moz-filter: brightness(0.2); -o-filter: brightness(0.2); -ms-filter: brightness(0.2); background-repeat:no-repeat"> <small style="font-size: 3vmin;">Text.Text.Text.Text.Text.Text.</small> </b> … ![]() | |
Hey everyone, I have a MYSQLI statement that i would like to add pagination to. I would like to have it set to 5 per page, and not have a negative value if you are on page 1 (disables back link) Every tutorial i have been seeing allows for a … | |
There is some kind of rendering problem in my Javascript/HTML5 Canvas code that I haven't been able to spot. All the assetts are there, for some reason my sprite goes invisible and nothing loads when I enter the second room except the pizza slice that is deployed when I press … Web Development audio javascript | |
Hello i have a problem. It seems that the value of this this input `<input type="hidden" id="uploadUid" value="<?php echo $sessionUid;?>" name="update_uid">` in here `formData.append('uploadUid', uploadUid.value);` When i put an alert `alert(uploadUid.value);` on Firefox it returns just fine but on Chrome returns undefined Any guess why? Web Development javascript | |
For clairifying you can add a string to a variable then add other variables as such; var one = "test", super,apple,pear,cardboard The string "test" will be assigned to the variable one as well; super, apple, pear, cardboard will also be created variables ? Web Development apple javascript | |
I wanted to pass two values to a click function and use the values to load a file in to a specific DIV. The file to load is called ‘displayTwo.txt' from the 'partialContent' directory and the DIV that the contents of the file will be place in has the ID … Web Development javascript javascript-jquery | |
hi! ;) I just want to asked on how I can set the image as background. I put an image on the working station but once I run it, it doesn't appear on the browser. thanks. I'm using Visual Studio 2008 ;) Web Development asp.net image visual-studio ![]() | |
All, Using the standard ac_quicktime.js as shown below - how does one get the video to auto play and then also keep looping: <script language="JavaScript" src="ac_quicktime.js" type="text/JavaScript"></script> <script> function jumpToTime(timeInSecs) { try { var vid = document.getElementById("iaatt_video"); if (vid && ('VIDEO' == vid.tagName) && vid.currentTime) { // video tag, use … Web Development javascript video | |
Hello i have a problem uploading a file in the local server on Chrome. Works fine on Firefox, it uploads as requested, saves to localserver and puts the values on the database as wanted. But it doesn't on Chrome. On the inspector i am getting this error `index.php:1 Uncaught (in … Web Development api javascript | |
Hi im ageeting the following error in my script can anyone find a fix or solution hus jan x Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/letsswin/public_html/template_pageTop.php on line 7 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /home/letsswin/public_html/template_pageTop.php on line 8 //check … Web Development php | |
Hello i want a script that shows various text content in the foreground and closes witn an X and shows the original page. Any suggestions? Web Development html-css javascript javascript-jquery | |
Doesn't seem like it should be difficult, but none of my attempts have worked. Thanks a ton. Code found [here](https://www.amcharts.com/kbase/stacked-floating-3d-column-chart/), btw. <style> #chartdiv { width : 100%; height : 500px; } </style> <script src="https://www.amcharts.com/lib/3/amcharts.js"></script> <script src="https://www.amcharts.com/lib/3/serial.js"></script> <script src="https://www.amcharts.com/lib/3/themes/light.js"></script> <div id="chartdiv"></div> <script src="//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js"></script> <script src='https://code.jquery.com/jquery-1.11.2.min.js'></script> <script> var chart = AmCharts.makeChart( "chartdiv", … Web Development javascript-jquery | |
Hi guys, I am facing a little bit problem in mobile menu design. In android is working fine but in iOS safari or chrome has the same issue where I press on the Menu and press on dropdown menu, I cannot scroll to bottom of other <li> element This is … | |
How do i get the name of the image without the extension at the end ex. (.jpg) i got this code **functions.php** function get_image($id="1") { ?> <img class="img-responsive img-portfolio img-hover" name="picture" src="images/gallery/<?= urldecode(base64_decode($id)); ?>" alt=""> <?php } **pictures.php** <center> <form action="" method="POST"> <div class="col-lg-12"> <?php get_image($imageID); // $imageID is read … | |
Hello everybody, I'm stuck with this and I hope there is somebody who can help me. I have a Form <html> <form action="" method="POST"> <input type="text" name="credentials[firstname]"> <input type="text" name="credentials[lastname]"> <input type="text" name="credentials[email]"> <input type="text" name="game[points]"> <input type="text" name="game[wins]"> <input type="submit" name="submit"> </form> </html> and I want to post the … | |
![]() | I'm beginning to wonder... I hope someone can clarify my doubts. First let me explain. So I've been using codeigniter's session library without much thought. I assumed the code was just some wrapper for PHP native sessions. So I assumed it was stored server side so encryption and all that … Web Development encryption php session |
I am trying out a function from a book for the first time. I could use some help. It goes: [CODE] function sanitizeString($var) { $var = stripslashes($var); $var = htmlentities($var); $var = strip_tags($var)' return $var; } [/CODE] I have two simple forms. One that asks for an email address and … Web Development cybersecurity php | |
Hi ! I´m developing my first wordpress plugin. To create a shortcode according to tutorial i should duplicate following code. But why is it function form_creation(){ ?> instead of function form_creation(){} ?> I mean why is only a part of function form_creations curled bracket inside the php ending tag ? … | |
Hello i want to make a script that allows the user to record audio from his device mic and then store it as a .mp3 or .wav file on my database. Does anyone knows any tutorials or scripts? I found this one `http://stackoverflow.com/questions/16413063/html5-record-audio-to-file` but i dont know to make it … Web Development audio javascript php ![]() | |
All in the following code snippet - I have this code working without syntax error if a user accesses the page directly they get the message listed in the else statement "This page cannot be accessed directly " - and when the user accesses the page from a post method … Web Development | |
Hi! Anyone can help please? I am searching around like crazy to make this work but no luck... There are allot of articles with some solutions but nothing works for me... Here is my code <?php require_once('../tcpdf/config/lang/eng.php'); require_once('../tcpdf/tcpdf.php'); // create new PDF document $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, … | |
function email($reqNo){ //Database Configurations $host = "some.url"; $username = "someuser"; $pass = "xxxxxx"; $db = "mydatabase_db"; //Customer Configurations $cName = null; $cEmail = null; $DBConnect = @mysqli_connect($host, $username, $pass, $db) or die ("<p>Unable to connect to the database server.</p>". "<p>Error code ". mysqli_connect_errno().": ". mysqli_connect_error()). "</p>"; $SQLString = "SELECT name, … | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN? "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Address Book</title> <script type="text/javascript"> function addressBookItem (fname, lname, email) { this.fname = fname; this.lname = lname; this.email = email; } addressBookItem.prototype.write = function() { adrbook = "<tr><td>" + this.fname + "</td><td>" + this.lname + … Web Development javascript | |
I was informed the if-statement is incorrect. I can't find the syntax error ? var curDoc = app.activeDocument; var selall = app.executeMenuCommand("selectall"); var fillrmv = curDoc.pathItems[0].filled = false; if (app.activeDocument.pathItems[0].filled = true) { for (i=0;i>fillrmv;i++) { curDoc.pathItems[0].filled = false; }; }; Web Development javascript programming-construct | |
My ISP - upgraded the Apache servers and in doing so - the CGI/Perl script below that worked before since they didn't require use strict now does not - since I uncommented out the use strict - I'm getting two errors - at first I was getting: Global symbol "@allgifs" … | |
Let's all be examples. I am redirecting from A.php to B.php with a parameter, let's say it ID=1. Therefore, ..../B.php?ID=1 And I wanna hold the value of the ID. Whenever I press a button on B.php, the value ID=1 gone. Any idea of how can I hold that value ? … Web Development php | |
function display_questions() { $lines = file('questions.txt', FILE_IGNORE_NEW_LINES); $count = count($lines); for ($i = 0; $i < $count; $i++) { $newLines = explode(",", $lines[$i]); $no_question = $i + 1; ECHO ('<b>' .$newLines[0]. '</b><br />'); ECHO ('<input type="radio" name="' .$no_question. '" value="' .$newLines[1]. '/>' .$newLines[1]. '<br />'); ECHO ('<input type="radio" name="' .$no_question. … Web Development php | |
hi i have a form for members to fill in and i want there own personal submissions under form where i will be adding options but it will only work if i put the submitted data above form else i get white screen heres my coding **top php block ** … Web Development php ![]() | |
What does it mean when you get the error; Illegal use of the resevered word; else. if(); { alert(); } else { alert(); }; Web Development javascript | |
I have found a source of and aledged xml file (although it is named as solarxml.php, when I download it the data that I want is there, i.e. solarflux, aindex, kindex and sunspots, but I have no idea how to determine how to extract the 4 data fields I want, … Web Development javascript php xml | |
The following code will allow me to add a table row line and I can add the starting amount with the first amount input into the first row, but if I add a row and enter in an amount I want it to add or subtract that as well. Thanks … |
The End.