64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for toxicandy

I have a page running scrolling nav bootstrap theme which essentially means for me that I have multiple forms on one page. The problem I am having is whenever someone submits any of the 3 forms it sends data from all forms on the page. The code is below, I …

Member Avatar for toxicandy
0
404
Member Avatar for Safina_1

i am trying to fetch only image from database.In database the table (post_content) have image along with description i only want image.is it possible?Keep in mind that $row['post_content'] has image and decription. <?php $sql = "select * from wp_tableposts;"; $res = mysql_query($sql); while ($row = mysql_fetch_array($res)) { echo'Post Contant:'. $row['post_content']. …

Member Avatar for Safina_1
0
644
Member Avatar for AntonyRayan

I included my mail attachment code in php But it is not working correctly, Please give me a alternate solution which works in online <?php //define the receiver of the email $to = 'demo@gmail.com'; //define the subject of the email $subject = 'Test email with attachment'; //create a boundary string. …

Member Avatar for AntonyRayan
0
318
Member Avatar for shany0786

this is js code i am calling "is_loggedin" from ajax in php folder in login.php but it always gives undefined index action $(document).ready(function(){ $('.carousel').carousel({ pause: "false" }); }); $("#loginId").click(function(){ $("#modalLoginId").modal("show"); }); $("#registerId").click(function(){ $("#modalRegisterId").modal("show"); }); $("#login-btn").click(function () { var loginpasswordJSON = JSON.stringify({ "username": $('#login_username').val(), "password": $('#login_password').val(), }); alert(loginpasswordJSON); console.log ("Login Started"); …

Member Avatar for diafol
0
491
Member Avatar for Aeonix

Website is exclusively built with `.click()`, `onclick=""` and alikes. I'd like to use a plugin that there is out in the world, which would allow me to use custom scrollbar to scroll content of a lengthy `<div>`. I've tested about 6, whom 1 didn't work (maybe I just can't read), …

Member Avatar for Sanchit_Sahu
0
431
Member Avatar for Nybuler

Hi all, my boss want me to send an calendar invitation event to Microsoft Outlook i have tried many time already and it still give me the result "This is no a valid internet calendar file" and here my code: [CODE] $vcal = "BEGIN:VCALENDAR"; $vcal .= "VERSION:2.0"; $vcal .= "PRODID:-//CompanyName//ProductName//EN"; …

Member Avatar for Foo_1
0
4K
Member Avatar for zachattack05

Good afternoon everyone! I'm running into a small snag and it could just be because it's late and I'm not thinking clearly. I have an ASP Panel that is an alert box. The panel's initial visible property is set to false and should only be set to true when specific …

Member Avatar for zachattack05
0
451
Member Avatar for Florea

Hy there! I have the following thing that I need to solve: In the Menu I have the Parrent Category Name and inside are 7 categories for food.... If I click on the menu on the parent category name it send me to the home page and open the menu. …

Member Avatar for gentlemedia
0
706
Member Avatar for lewashby

I get the following in my web browser when I try to connect to my mariaDB database. `Error!: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)` It also doesn't matter if I use mariaDB root or a regular users credentials, I get the same thing. The error above …

Member Avatar for lewashby
0
659
Member Avatar for mexabet

I wrote a modify password file, but unfortunately, the MySQL query is throwing error: Warning: mysql_query() expects at most 2 parameters, 3 given in admin\modify-password.php on line 40 This is the PHP code: if (mysql_query("UPDATE admin SET hash = ? WHERE admin_id = ?", crypt($_POST["newpassword"]), $_SESSION["admin_id"]) === false) I modified …

Member Avatar for mexabet
0
352
Member Avatar for praba_web

Hi there, Routing is not working in codeigniter hostgator shared hosting. When i login www.doamain.com/admin this redirects to www.domain.com am using below in my config.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically …

Member Avatar for praba_web
0
4K
Member Avatar for gentlemedia

I have a form where I save the data in a cookie with localStorage. This all works fine, but If clear (just deleting with backspace) the value of an input field or textarea so that the placeholder text shows up again and I refresh or come back at the page, …

Member Avatar for gentlemedia
0
396
Member Avatar for janicemurby

hi im following a tutorial for a block system and i have the following error i cannot fathom if anyone can help be must appreciated heres the error msg: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in /home/public_html/php_parsers/block_system.php on line 32 and heres the code in question // …

Programming mysql php
Member Avatar for janicemurby
0
7K
Member Avatar for AazibKhan
Member Avatar for gabrielcastillo

Quick help, I can't seem to think right now, and I need to add these array values into a single total value for each array key. Importantly the total value. Array ( [0] => Array ( [sub_total] => 1000 [total_tax] => 82.5 [total] => 1087.5 ) [1] => Array ( …

Member Avatar for cereal
0
357
Member Avatar for abim usman

<html> <head> <title>Help Me</title> <html lang="en"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> </head> <body><br><br> <center> <h1> Additon</h1><br> <form action="" method="post"> <label>Enter Num1:</label> <input type="text" name="num1" /><br> <label>Enter Num2:</label> <input type="text" name="num2" /><br><br> </form> <div class="container"> <!-- Trigger the modal with a button --> …

Programming css-bootstrap html-css php
Member Avatar for rubberman
0
311
Member Avatar for mpdph09

I am trying to upload folders to comboBox 1 from the directory, and then at selection from comboBox 1 to comboBox2. I have below code, I am getting error when I make selection from comboBox 1 as direcory doesnot exists at bin/debug path of the project. private void Form1_Load(object sender, …

Programming
Member Avatar for mpdph09
0
249
Member Avatar for Abbas Ansari

I'm trying hard with displaying details from a selected option in a drop down list for my project. I have a drop down list which is populated from a MYSQLi query. I want the user to select an option and the values associated pulled from the database and displayed to …

Member Avatar for cereal
0
19K
Member Avatar for chrisschristou

hello world i would like to know to print on terminal a message with color and backround without external library i find this on internet and it works pretty fine but i would like to coloriza backround too!! #include <stdio.h> #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" #define ANSI_COLOR_YELLOW "\x1b[33m" #define …

Member Avatar for rubberman
0
424
Member Avatar for sheelap

i have a problem with ASP.NET. IN Asp.net i designed a code such that all controls i generate in a dynamic manner line in page_load event i generate one Button also attaching click event with this when it clicks two more buttons are created dynamically.also i attached click event with …

Programming asp asp.net
Member Avatar for sheelap
0
356
Member Avatar for mpdph09

I am trying to upload folders to comboBox 1 from the directory, and then at selection from comboBox 1 to comboBox2. I have below code, I am getting error when I make selection from comboBox 1 as "Unbable to cast object of the type system.string to system.Io.DirectoryInfo { private void …

Programming
Member Avatar for tinstaafl
0
231
Member Avatar for janicemurby

hi ive changed my system and im attempting to add a date of birth to registration and i have came across the following error Fatal error: Call to undefined function Age() in /home/jktempla/public_html/signup.php on line 56 if solmeone can please look at the coding for this section and see whats …

Member Avatar for cereal
0
216
Member Avatar for SimonIoa

Hello i have a problem with my script for uploading a photo. The name it is stored in the database (123.jpg) but the photo doesnt go to folder i ask it to go Here is my script <form id="imageform" method="post" enctype="multipart/form-data" action='<?php echo $base_url; ?>press_image_ajax.php'> <span id='addphoto'><?php echo $lang['AddAPicture'];?>:</span> <input …

Member Avatar for diafol
0
114
Member Avatar for phfilly

Hi guys, I was wondering if anyone can pin-point me to the right direction. I want to implement this css translate 3d effect does anyone maybe know of a resource(s) I can work through to do this? I've been searching for related content and haven't been able to find this …

Member Avatar for phfilly
0
168
Member Avatar for lefteven20

I am working on a program and I almost have it working the way I want except for two problems. The first is major; I can not for the life of me get my answer for the population to equal anything but zero. I have a feeling this is due …

Member Avatar for Reverend Jim
0
201
Member Avatar for london-G

Hello Guys, I have been hopelessly trying to make the sidebar full height on this site. When the content expands, its height stays the same. [Site](http://www.5th-floor.co.uk/blog) Any idea how I can do that?

Member Avatar for london-G
0
248
Member Avatar for Schmelz

Hi, I a real newbie when refering to programming. I keep having this error but I don't know what it means. Can somebody help me? I looked it up on google but I couldn't find anything of usefull so I tought posting it. Can you please tell me what an …

Member Avatar for rubberman
0
274
Member Avatar for janicemurby

hi i have made a sub folder for a program i have done and ive put in in my existing template and now i am attepting to show the logo in it my site is in the public html folder and the logo image is as follows images/logo/<?php echo SITE_FAVICON; …

Member Avatar for janicemurby
0
299
Member Avatar for payara111

How can i print it recursively with one helper function? [img]http://img2.imageshack.us/img2/1690/recursive.th.jpg[/img] Here, n will always be a power of 2 and c will be indicating the column number from which to start the output. The above pattern has been produced with the initial function call RecursivePattern(8,1) It prototype should be …

Member Avatar for Chetana_1
-1
2K
Member Avatar for IconiCxPimp

This is my code. I am learning this through the microsoft C# for absolute beginners book. I am on chapter 8 on the final soccer program and have no errors. The only problem I have is when I run it. I get $exception {Index was outside the bounds of the …

Member Avatar for IconiCxPimp
0
346
Member Avatar for Violet_82

Hi guys, I'm having some problem with cloning a div with a button in and its functionality. 2 words about the functionality first. Basically I'm creating some HTML with javascript (it has to be done that way I'm afraid) and append it at the top of the page. I also …

Member Avatar for Violet_82
0
167
Member Avatar for Callie C.

I'm not sure what I'm doing wrong so if you could take a look and give me some ideals it would be great. Thanks so much Specifications: Write a program that uses a two-dimensional array to store the highest and lowest temperature for each month of the year. The program …

Member Avatar for David W
0
375
Member Avatar for lefteven20

For my class I am asked to complete a program: create an application that will predict the approximate sie of a population of organisms. the user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a …

Member Avatar for lefteven20
0
572
Member Avatar for trishtren

Hello, Iv been working on a project for a while now in java and i read somewhere that the GCJ can compile java classes into native binaries, after a quick google search it was revealed that this was true. However after reading a number of posts across the web and …

Member Avatar for jwenting
0
225
Member Avatar for nathan.pavlovsky

Hello Programmers! I am working on a C++ phone number class. The class has overloaded stream manipulators, cin and cout for output. It has three private members: areaCode, exchange, and line, strings that represent the numbers that are used in a telephone call. It is supposed to default to (000) …

Member Avatar for 2teez
0
588
Member Avatar for SimonIoa

Hello i am getting an error that says *Mixed Content: The page at 'https://www.rovespier.com/login.php' was loaded over HTTPS, but requested an insecure script 'http://malsup.github.io/jquery.form.js'. This request has been blocked; the content must be served over HTTPS.* but the `malsup.github.io/jquery.form.js` file that i am calling i call it with https like …

Member Avatar for SimonIoa
0
748
Member Avatar for Latrell_vie

Hi ! I working on a site where i can contact potential employees through a skype button and either call or message them. I already implemented the button next to each employee on my list( code can be found on official skype pages). But if i press these buttons on …

Member Avatar for diafol
0
370
Member Avatar for Legarcio

Public Class Form1 Dim intsum, intaverage, counter As Integer Private Sub btnAverage_Click(sender As Object, e As EventArgs) Handles btnAverage.Click For counter = 0 To lbNumber.Items.Count - 1 intsum += counter Next intaverage = (intsum / lbNumber.Items.Count - 1) lblAverage.Text = intaverage End Sub Private Sub btnSum_Click(sender As Object, e As …

Programming vb.net visual-basic
Member Avatar for Legarcio
0
308
Member Avatar for bLuEmEzzy

I added "DISTINCT" in my code. but seems the output is still the same, it have duplicate records. Thank u :D (note: I changed the field names and tables here) SELECT DISTINCT b.field1, b.field2, b.field3, b.field4, c.field1, c.field2, c.field3 from tbl1 b inner join tbl2 c on b.logid = c.logid …

Member Avatar for daniellemacey
0
372
Member Avatar for zelrick

Hello DaniWeb Community, I have a hover drop down menu, below this is another hover drop down menu.. Once you hover your mouse pointer to this drop down menu it show the list.. The problem is it overlap to the 2nd drop down menu. I want my list to be …

Member Avatar for zelrick
0
213
Member Avatar for Sidrah_1

I am writing a python program on Windows using Python 2.7. Basically, it's a program that takes a 5-digit, negative & positive, number from user & spells it out in English using num2word & then speaks it out too. I have used espeak & pyttsx both but i'm getting errors …

Member Avatar for Sidrah_1
0
440
Member Avatar for Vivek_13

array = [1, 2, 3, 1, 2, 4, 5]; for (var i = 0; i < array.length; i++){ for (var j = 0; j < i; j++){ //if (i != j) { if (array[i] == array[j]) { $('#result').append(array[j]+'Repate<br>'); } //} } $('#result').append(array[i]+'<br>'); } ## given output is 1 2 3 …

Member Avatar for parvez alam
0
278
Member Avatar for noobjavacoder

I have written a program in java using selection, bubble and merge sort and I have to print just the time it took to run the sort which works just fine, but how do I sort a sorted list? I want to see how much faster is it to sort …

Programming java
Member Avatar for JamesCherrill
0
249
Member Avatar for lewashby

Linux Mint I logged into phpmyadmin and set the password option to 'no password' and now I can't log in. If I enter the password I was using I get this error -> `#1045 Cannot log in to the MySQL server` and if I don't user a password at all …

Member Avatar for cereal
0
4K
Member Avatar for monching

I want to add 12 players in 1 transaction only. My codes here can only save 1 player. Here's my codes: Private Sub savebtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles savebtn.Click Dim conn As MySqlConnection Dim myCommand As New MySqlCommand Dim commandB As MySqlCommandBuilder Dim data As MySqlDataAdapter …

Member Avatar for icebergman
0
2K
Member Avatar for Biz_1

1. Given the following code: String string = "0"; int x = Integer.parseInt (string); Which of these statements is correct and why? A) The code goes in error because the variable string is not an integer B) The code does not in error because the string "0" converts to the …

Member Avatar for Biz_1
-1
266
Member Avatar for androidexampl

In this example opening url in webview and showing progress Dialog for page. Show file chooser option on clicking file option for web form . Open new link from webview to external ............................ Read More

Member Avatar for happygeek
-2
183
Member Avatar for kayleigh0411

I am trying to use a hash set to do a Monte Carlo analysis of the Birthday Paradox. Here is my pseudo code: Set number of collisions to zero Loop (10 to100 by 10) Loop: Generate a birthday. (use 1-365) See if it is already in the set. If it …

Member Avatar for JamesCherrill
0
2K
Member Avatar for BrickZ28

Hello, I am a little stumped here. I have a few tables I am trying to display data with. The first is tbl_pilot which holds data such as ID numbers that come from other tables. So my issue is tbl_pilot there are 3 airframe choices tblPilotAirframeChoiceID1FK,tblPilotAirframeChoiceID2FK,tblPilotAirframeChoiceID3FK. I am trying to …

Member Avatar for BrickZ28
0
194
Member Avatar for arindam31

Here is a weird regular expression for emails . We can have various kind of email addresses [email]string1@somemail.com[/email] [email]string1@somemail.co.in[/email] [email]string1.string2@somemail.com[/email] [email]string1.string2@somemail.co.in[/email] The following regular expression can find any of the mails above email2="santa.banta@gmail.co.in" email1="arindam31@yahoo.co.in'" email="bogusemail123@sillymail.com" email3="santa.banta.manta@gmail.co.in" email4="santa.banta.manta@gmail.co.in.xv.fg.gh" email5="abc.dcf@ghj.org" email6="santa.banta.manta@gmail.co.in.org" [CODE]re.search('\w+[.|\w]\w+@\w+[.]\w+[.|\w+]\w+',email) >>> x=re.search('\w+[.|\w]\w+@\w+[.]\w+[.|\w+]\w+',email2) >>> x.group() 'santa.banta@gmail.co.in' >>> x=re.search('\w+[.|\w]\w+@\w+[.]\w+[.|\w+]\w+',email1) >>> x.group() 'arindam31@yahoo.co.in' …

Member Avatar for Syed Sulaiman
3
10K

The End.