17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for davy_yg

program1.php <html> <header> <script> function myFunction(p1, p2) { return p1 * p2; } document.getElementById("demo").innerHTML = myFunction(4, 3); </script> </header> <body> <div id="demo"></div> </body> </html> I don't understand why the above code does not show any value? and why this one does? program2.php <html> <body> <div id="demo"></div> <script> function myFunction(p1, p2) …

Web Development javascript
Member Avatar for ryantroop
0
461
Member Avatar for logicslab

Dear Friends, I have a string with structure $selectedTime = "2017-02-10 07:00,2017-02-10 08:00,2017-02-11 09:00"; I need to convert it as {"2017-02-10":[{"start":"07:00"},{"start":"08:00"}],"2017-02-11":[{"start":"09:00"}]} any idea ? please advise asap Thanks Anes

Web Development json php
Member Avatar for logicslab
0
664
Member Avatar for Mr.M

Hi DW. I'm trying to post data without refreshing the page using the ajax, and its works fine the problem is that on the response I also get the array data that I posted to my php file then at the end of response is the returned data which is …

Web Development html-css javascript php
Member Avatar for Mr.M
0
493
Member Avatar for Monrach

Getting an empty drop-down list by the following code. Trying to fetch names from the department table. Using an oracle Database... <label for="department">Department</label> <select class="form-control" name="deptname" id="deptname"> <option selected disabled></option> <?php $dbUser = "..."; $dbPass = "..."; $dbConn = "(DESCRIPTION = (ADDRESS = (PROTOCOL=TCP)(HOST=...)(PORT=1521))(CONNECT_DATA=(SID=...)))"; $conn = oci_connect($dbUser, $dbPass, $dbConn); $sql …

Web Development html-css oracle php
0
745
Member Avatar for Mike_51

I know this question is a lot easier than it seems, but I can't seem to get around it. This is my current code and I cannot get it to properly check if the SSN number is in a proper format or not. It just says all is false. This …

Web Development javascript
Member Avatar for john_111
0
472
Member Avatar for Ramakrishnan.L

I am developing a inventory management web application using php and mysql. This application will runs on different locations. while any one place disconnect the internet at the time data will be land in local database and when active internet that data automatically synchronizing the remote database. is there way …

Web Development mysql php
Member Avatar for Athi_3
0
4K
Member Avatar for EvolutionFallen

Hello, I'm just starting off with Ruby, but I have a task that landed on my desk that I need a quick answer for, and haven't been able to find a solution online. I appreciate any help I can get. I need to know if a value in one array …

Web Development ruby
Member Avatar for EvolutionFallen
0
516
Member Avatar for Anthony_22

Hello, I am trying to prevent my form, from submitting if the file is not an image type file but i keep failing, the array that i am using keeps displaying regardless of the files type. Any help would be grateful. <?php $Manufacturer = $_POST['Manufacturer']; $Brand = $_POST['Brand']; $Model = …

Web Development image php
Member Avatar for ryantroop
0
586
Member Avatar for Jon_7

I have a yearly curriculum for my basketball workouts that I'd like to display online. I've created 53 unique workouts for each day of the week that include the main focus for the day, 6 drills, a quote, and a motivational story. I know I'd need a [datepicker](https://jqueryui.com/datepicker/) to accomplish …

Member Avatar for Jon_7
0
718
Member Avatar for Anthony_22

i have been trying to upload image files in to my database but i failed in many ways, the form saves everything except the image files. i am not sure if its the php or the java or the html page, honestly i lost my path. i have included all …

Member Avatar for ryantroop
0
655
Member Avatar for Anthony_22

Hello guys, its been some time now i have been strugling with this error, evertime i submit my form it give me this error "Column count doesn't match value count at row 1 " and i cant find a way around this. Any help would be very appreciated!!! <?php if($_POST['phpfunction'] …

Web Development php
Member Avatar for urtrivedi
0
547
Member Avatar for alex910TN

Hi guys, I am trying to implement my first carousel on my website. I have 5 images with the same dimensions with the following HTML markup: <div id="myCarousel" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> <li data-target="#myCarousel" data-slide-to="3"></li> <li data-target="#myCarousel" data-slide-to="4"></li> <li data-target="#myCarousel" …

Web Development javascript
Member Avatar for Abdullah_19
0
46K
Member Avatar for SimonIoa

i am getting this problem `URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.` any solution?

Web Development social-media
Member Avatar for Bejoy_1
0
12K
Member Avatar for Aamit

hi, I am created 3 tables for 1> category 2> subcategory 3> projectdetail In my website folder structure root-index.php, header.php footer.php folder- about -index.php and other files folder - project- index.php folder - err- 404.php In my php page project/index.php i make left column dynamic, i.e call value from table …

Web Development apache php
Member Avatar for Sapna_3
-1
8K
Member Avatar for ekka

hello guys. I'm here to ask about margin and position properties with tow example : the first is a misalignment (vertical --margin-- and horizontal --align-text-- ) of select tag, the problem is that I add align-text and margin-top properties in the CSS style, but it is invisible for the select …

Web Development css-bootstrap html-css
Member Avatar for ekka
0
507
Member Avatar for janicemurby

hi im attempting to update a php srcipt and fixing errors and i have a error in the following block but cannot work out where if($_SERVER['REQUEST_METHOD']=='POST' && isset($_POST['smcomplete'])){ if(empty($_POST['abouth'])) $err_h = $aboutherorhis; elseif(strlen($_POST['abouth'])<6) $err_h = $datashort; else{ ERROR ON THIS LINE>>> $match = ($_POST['matchsame']=='on')?1:0;slBodyType'], $_POST['slHeightfrom'], $_POST['slHeightt $data = array($_POST['rdgender'], $_POST['slagefrom'], …

Web Development mysql php
Member Avatar for janicemurby
0
300
Member Avatar for gentlemedia

I'm using `file_get_contents()` to parse data of a JSON file within a `foreach()` loop onto my page. <?php $url = 'data/gigs.json'; $data = file_get_contents($url); $gigs = json_decode($data, true); foreach ($gigs as $gig) { echo '<tr>'; echo '<td><time>' . $gig['date'] . '</time></td>'; echo '<td>' . $gig['event_venue'] . '</td>'; echo '<td>' . …

Web Development json php
Member Avatar for gentlemedia
0
342
Member Avatar for niranga

Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt …

Web Development http-protocol javascript php
Member Avatar for Mukul_2
0
13K
Member Avatar for danielbala

hi... this is my index page... include("config.php"); session_start(); if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $myusername=addslashes($_POST['username']); $mypassword=addslashes($_POST['password']); $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $sql="SELECT id FROM admin WHERE username='$myusername' and passcode='$mypassword'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $active=$row['active']; $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table row must be …

Web Development php
Member Avatar for 3.15127E+11
0
10K
Member Avatar for patk570

I have a code that pulls a JSON response, and I need to compare times from now() and a previous when the timestamp was created. I am able to pull the info and have it display. However, when i try and get the comparison to work it just sits there …

Web Development api javascript json
Member Avatar for jkon
0
396
Member Avatar for massivefermion

I want to associate a REST API end point to two urls, "manager" and "manager/". So I added two path entries in the urlpatterns with these urls. But it seems something that can be handled with some kind of configuration. Is there such a configuration with django? thanks

Web Development api python python-django
Member Avatar for rproffitt
0
332
Member Avatar for Mr.M

This may sound confusing but I have a textbox which is a cell number textbox and I want when the max length of 10 has been reached then fire the php code which is inside the same html page as form and this php code will then get the value …

Web Development html-css javascript php
Member Avatar for Mr.M
0
6K
Member Avatar for paul_61

I work in VB.net only. I cal read an entire file in one statement, sort it with another statement and write it bacl in another. Three statements to sort a csv file! This is aswome, but I wan to know how to sort the file on different columns. Here is …

Web Development vb.net
Member Avatar for paul_61
0
376
Member Avatar for Arjen_2

$count1 = array(); $count1[0] = " 1"; $count1[1] = " 2 1"; $count1[2] = " 3 2 1"; $count1[3] = " 4 3 2 1"; $count1[4] = " 5 4 3 2 1"; $count1[5] = " 6 5 4 3 2 1"; for ($b = 1;$b <= 6;$b++) { echo …

Web Development asp php
Member Avatar for ryantroop
0
446
Member Avatar for ConstantineOfTX

[B]The following problem comes from an old JavaScript Textbook, JavaScript – First Edition, by Patrick Carey and Frank Canovatchel. This problem is not used in the Second Edition, making the question I shall ask a fair question. The problem is Case Problem 2, Chapter 9, pages 519-20. Here are the …

Web Development html-css javascript
Member Avatar for Richard_42
0
397
Member Avatar for patk570

Guys and gals, I am trying to do a simple LITTLE DIVIDE problem using jQuery its getting the values, but when its returning the results, it as if they are being divided by 10000, but I know its not... E.G. 50506/1000 = 50.506 in my jquery problem, it is coming …

Web Development javascript-jquery
Member Avatar for patk570
0
333
Member Avatar for RAHEEL_3

Hi there, I am not sure where to post this question. I want to know how to animate objects like my "project images" when i click on menu item on web page. For better understanding please visit the following link and click on my work from top navigation. Thank you. …

Web Development javascript-jquery seo
Member Avatar for gentlemedia
0
332
Member Avatar for nalini@121

Hello Everyone! I am unable to upload fiels using Code Igniter framework. I have one form with the help of it need to upload 4 images in fabrics folder each time. Before uploading images I need to create folder sructure also but unable to do so by giving absolute path …

Web Development php
Member Avatar for Mohammadjan
0
2K
Member Avatar for Indians

here if i click the Generate Employee Id button it should generate the random number in input textfield and then that button should hide after generate the id. how to do that? but, i can automatically generate the random number in input textfiled without the button. that code is below …

Web Development php
Member Avatar for Prashant_13
0
6K
Member Avatar for random_1

Hello, I am trying to insert a registration form with password using `password_hash()` but I am not sure what is wrong with whatever i am doing because the password doesn't get inserted into the database although all the other values do and no errors. database : password | varchar(255) php: …

Web Development php
Member Avatar for random_1
0
508
Member Avatar for random_1

Hi, I have a logout script that works just fine but I don't think its actually killing the session(?). so i have index.php, login.php, home.php, session.php, and logout.php. When i logout from home.php I am redirected to index.php, which is great. But when i manually enter the home.php url i …

Web Development php session
Member Avatar for random_1
0
447
Member Avatar for patk570

6 ●4 I have a code that displays an array from GeoTab SDK, I am able to get the array to display in the console.log, and it populates the results like normal, However, When I try to populate the data in the table, nothing shows but the headings. Here is …

0
218
Member Avatar for random_1

Hello, (i don't really know any specific bootstrap forum which might be better for asking about it but i like daniweb anyway), I am trying to modify a bootstrap snippet to what i need but I am having a little trouble. If you look at the attached images, what i …

Web Development css-bootstrap html-css
Member Avatar for random_1
0
493
Member Avatar for davy_yg

Hello, This is laravel. Please help me fix the quotation so that my program works. <button type="button" onclick="window.location.href = 'route('pemesanan')';">Beli</button> If I click Beli (buy) it should run pemesanan (order) route. I don't think the route works correctly. please help me fix the quotation around the route. Thanks in advance.

Web Development php
Member Avatar for AndrisP
0
297
Member Avatar for rpv_sen

Hi friends i am working for an shopping cart using php script, i placed a drop down option to display currency rate as per user selection(INR and USD). By default it will display all the price in INR, if any user select USD, then it has to show all the …

Web Development ecommerce finance php
Member Avatar for rproffitt
0
3K
Member Avatar for patk570

Hey everyone, this code below is giving me a weird error, Script 438: Object doesn't support property or method 'ajax'. I am testing this in Microsoft Edge, but...I have a website that uses this exact same code, and its working like normal. I am getting the `var id` to load …

Web Development javascript javascript-jquery
Member Avatar for patk570
0
5K
Member Avatar for davy_yg

Call to undefined function routes() (View: C:\xampp\htdocs\Julmarice\framework\resources\views\soulfy\apages.blade.php) Why this is undefine? apages.blade.php <form action="{{ routes('navcolor') }}" method="post"> <div style="color: white;">Select Pages Navigation Color :</div> {{ csrf_field() }} <select name="NavColor"> <option value="black">Black</option> <option value="blue">Blue</option> <option value="gray">Gray</option> <option value="brown">Brown</option> </select> <input type="submit" value="Submit"><br><br> </form> routes.php Route::post('/home/navcolor', 'SettingController@postNavColor')->name('navcolor'); SettingController.php public function postNavColor(Request $request) …

Web Development php
Member Avatar for davy_yg
0
7K
Member Avatar for davy_yg

Cek this code : @section('content') <div id="page"> <div class="container"> <section id="container" v-show="visiblePage"> <div class="row"> <div class="col-sm-4"> <img src="{{url('')}}/images/binder.png"> </div> <div class="col-sm-4" style="background-color: #f8f8f8; height: auto;"> <br> <ul class="b"> @foreach( $pages as $p) <li><a href="{{url('')}}/home/pages/{{ $p->id }}">{{ $p->pages_name }}</a><br> @endforeach </ul> </div> <div class="col-sm-4" style="background-color: white; height: auto;"> <center><b>{{ $pages2->pages_title }}</b></center><br> …

Web Development css-bootstrap
Member Avatar for gentlemedia
0
347
Member Avatar for random_1

I have a list.php which displays all the records that is in the database with 2 options Edit or Delete. When clicked its suppose to delete by id but instead it deleted everything. I'm not sure where i went wrong, please help. list.php <?php include "db.php"; try { $conn = …

Web Development mysql php
Member Avatar for benanamen
0
354
Member Avatar for Hamsterking

hello, i'm having trouble with jquery navigator i don't think the problem is my code <script> $(document).ready(function(){ alert( "welcome"); alert("twice alert"); }); </script> in chrome i have this error: Uncaught SyntaxError: Unexpected token < in firefox i have this error : SyntaxError: expected expression, got '<' i looked on astackoverflow …

Web Development javascript javascript-jquery
Member Avatar for Hamsterking
0
8K
Member Avatar for random_1

Hi. Im new to codeigniter, so im not sure if its something wrong with the codeigniter or my php. what im trying to do is if the records from a database table is empty echo a message. The message which ,"No records exist!", does display but then underneath is is …

Web Development php php-codeigniter
Member Avatar for cereal
0
436
Member Avatar for Jon_7

I'm attempting to simplify my fundraising page, and would like to show exactly how much each donation would help us out. I've listed the options below, but I would like for the first two dropdown boxes to change the third one depending on the combination chosen. Fruthermore, I'd like for …

Web Development html-css javascript
Member Avatar for AndrisP
0
453
Member Avatar for Mohammed_44

//The php section of the code <?php function getJSONFromDB($sql){ $conn = mysqli_connect("localhost", "root", "","rent"); //echo $sql; $result = mysqli_query($conn, $sql)or die(mysqli_error()); $arr=array(); while($row = mysqli_fetch_assoc($result)) { $arr[]=$row; } return json_encode($arr); } $jsonData= getJSONFromDB("select Pic from Display"); $jsn=json_decode($jsonData); //for loop to retrieve rows from database for($i=0;$i<sizeof($jsn);$i++){ $a=$jsn[$i]->Pic; //here is the main …

Member Avatar for network18
0
380
Member Avatar for MOHAMMAD_40

Hello, I am new to Javascript and I am having trouble with my assignment. I was told to create a simple "Grade Calculator" using prompt boxes It was fairly easy to make this "Grade Calculator" but there is only one problem that i cannot figure out. I was told to …

Web Development javascript
0
194
Member Avatar for mattyd

I have recently been using XAMPP for dev. Although I'm new to XAMPP, the recent issue sprung up surprisingly, the simple script running a day before. The script is just being used to test the ability to capture/display an IP address; this will later be used in a larger project: …

Web Development lan-wan php
Member Avatar for mattyd
0
654
Member Avatar for davy_yg

How to take part of url and store it into a variable? For example: /home/pages/id --> I want to take id out and store it into $id. How to do that?

Web Development php
Member Avatar for diafol
0
377
Member Avatar for davy_yg

I also wonder when I press the add category button the button disappears: <div class="tab-content backend-detail slimScroll"> <div role="tabpanel" class="tab-pane active" id="articles" style="height: 100%"> <br><br> <div class="form-body create-article"> <a href="{{ route('home-addpages')}}" class="btn btn-green btn-act-edit" data-id="" data-tittle="" data-content="">Add Category</a> <div style="color: white;">Category: <br><br> Category #1 <a href="#" class="btn btn-green btn-act-edit" data-id="" …

Web Development
Member Avatar for davy_yg
0
265
Member Avatar for rpv_sen

Hi i am having 3rd party csv file. i am having php uploading script to upload the datas into my table. while uploading datas into my mysql Table mean while it has to remove duplicate entries rows from CSV file. Please help me

Web Development mysql php
Member Avatar for bhuvi_2
0
9K
Member Avatar for gentlemedia

I'm using this snippet to calculate the sum of two table cells. var sum = 0; $('.amount').each(function(){ sum += parseFloat($(this).text()); }); $('.sum').text(sum); But when the sum is for example 40.00 it displays as 40 and as picky as I am, i want it to display as 40.00. So... what to …

Web Development javascript-jquery mathematics
Member Avatar for gentlemedia
1
298
Member Avatar for davy_yg

Hello, I start using the file manager, yet there is something strange happening. I cannot upload the image through mouse click. Nothing happen when I click the image in the file manager with my mouse. While my friend, able to click the picture with his mouse and the picture suddenly …

Web Development file-system
Member Avatar for davy_yg
0
347

The End.