64,152 Solved Topics
Remove Filter ![]() | |
I have 4 textviews which take their values from dropdown list (spinner) selected at previous screen. There can be either 2 or 4 numbers/letters as result of this selection. The first position will always be a number and the second position will always be a letter. The third position can … | |
i am using password_hash() and password_verify() for hashing passwords but passwords_verify() returns false.This is my code <?php /** * . * * @author Anmol Raghuvanshi <ershadow786@gmail.com> * @license * @copyright */ class User_admin { private $db; function __construct($DB_con) { $this->db = $DB_con; } public function register($fname,$lname,$umail,$upass,$mobile,$address) { var_dump($upass); try { … | |
PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given on line 31 $insert = mysqli_query ($conn," insert into user set user_name = '".$_POST['uname']."' , age = '".$age."' , page = '".$page."' , user_password = '".$password."' , user_birthdate = '".$user_birthdate."' , puser_birthdate = '".$puser_birthdate."' , user_gender = '".$_POST['gender']."' , user_country = … | |
Hi, I'm new to perl and I'm stuck at regular expression on which to get the data of deck, super and trial from an array. I have an input file as the following : `deck { @STATE = "this is low"; @ACCESS = "RW"; } [6:0]; super { @STATE = … | |
I want to show all data of the page in pdf but i have no idea how to do this . I am using php .Please help me to solve that problem. | |
i have following code first insert is working properly and data in to database but second insert query which depends on last_insert_id() fails.I have tried to find out mistake but failed to do so? <?php namespace Solutions\File; class AddUserData { function __construct($DB_con) { $this->db = $DB_con; } public function insert_detail($productDetails){ … | |
Hi All, I have written a program which contains a class 'Numbers' which can hold a set five numbers. I then create 2 List<Numbers> instances which generate a random numbers. I then loop through one list and try to use linq to find if the list has an identical set … | |
I am having problems to figure out how to do arithmetic operations on positive integers represented as strings (addition, subtraction, multiplication, incrementing and decrementing). I did the addition as following: #include<stdio.h> #define MAX 100000 typedef struct { int arr[MAX]; }NUMBER; void read(NUMBER *add_num) { int i,digit=0; char ch[101]; scanf("%s",ch); while(ch[digit]) … | |
I need help with the following program: Define a structure **VEHICLE** which contains **producer, model and chassis number**. Store the content of a structure in binary search tree such that the **key** for storing contains all fields of a structure (**producer** has the highest priority, and **chassis number** has the … Programming c c# c++ data-structure | |
Please Help me out!! After many tries I'm unable to return a string from a function. Please reply with the corrected code! I want it for my High School. Thanks in advance! I've shortened the code here. #include<iostream> #include<iomanip> #include<conio.h> #include<cstdlib> #include<fstream> #include<string.h> #include<stdio.h> using namespace std; string logdisplay(int log) … | |
this is my code $sql = "SELECT * FROM `sale_history` WHERE `date` BETWEEN :fromdate AND :todate"; $stmt = $PDO->prepare($sql); $stmt->bindParam(':fromdate', $_POST['fromdate'], PDO::PARAM_STR); $stmt->bindParam(':todate', $_POST['todate'], PDO::PARAM_STR); $stmt->execute(); $total = $stmt->rowCount(); while ($row = $stmt->fetchObject()) { echo "$row->date"; echo "$row->product"; echo "$row->username"; echo "$row->quantity"; } but its not working, where is the … ![]() | |
I'm reading 'C++ For Dummies 7th Edu' and I'v ran into this little snipet that's confusing me. BOOK You can add const-ness, however, as in the following void fn(char* pName) { // declare following is allowed even though // declared Student(const char*) Student s(pName); // ...do whatever... } The function … | |
hi im following a tutorial and when i went to test the login i press login but nothing happens can anyone check the code as i cant se whats up with the form <?php session_start(); include("includes/database.php"); if(isset($_POST['login'])) { $email = mysqli_real_escape_string($con,$_POST['email']); $pass = mysqli_real_escape_string($con,$_POST['pass']); $get_user = "SELECT * FROM users … | |
hi everyone I have a question: how do you divide in java. by it being that the first number must be divisible by the second number. Programming java | |
hi everyone i am trying to do some subtraction in a java program . the rules stated that generated numbers from 1 to 9 and the first number must be greater than the second number. I try using the largest and smallest codes but the result i get is that … Programming java | |
This question is about querying an XML file. The file structure is below: Inline Code Example Here <?xml version="1.0" encoding="UTF-8"?> <descriptions> <image> <name>run.jpg</name> <text>Running around the lake</text> </image> <image> <name>sail.jpg</name> <text>Sailing around the lake</text> </image> <image> <name>track.jpg</name> <text>Tracking up the mountain</text> </image> ... <image> <name>Steven.jpg</name> <text>Steven Bullon is a photographer</text> … | |
HI im getting the following error Warning: Invalid argument supplied for foreach() in /home/jktempla/public_html/includes/class-query.php on line 106 in the following bit of coding can anyone see whats happening public function do_user_directory() { $users = $this->load_all_user_objects(); foreach ( $users as $user ) { ?> <div class="directory_item"> <h3><a href="/social/profile-view.php?uid=<?php echo $user->ID; ?>"><?php … | |
I have a strange problem here is code snippet for form having bootstrap tab when after filling all form fields i submit the form no error or form fileds are posted,there is something wrong with my html however my validations and other backend code is working for other form but … ![]() | |
**Please fix the errors in the code ! I've used Turbo C++. I need it for my High School Project ** #include<iostream.h> #include<iomanip.h> #include<conio.h> #include<process.h> #include<fstream.h> #include<string.h> #include<stdio.h> //logistics //site fees //transaction fee //packaging fee //FK //SD //AZ //PayTM //eBay //ShopClues char categdisplay(); char logdisplay(); char wbdisplay(); void display(); char … | |
Hi! I'm sitting with a gui bug that I have been stuck with for a while. When a "view" is changed from one "view" to another, the new "view" doesn't get painted properly. The previous view is visibile randomly in the background. I can't reproduce this in the dev environment … | |
Please, I need help to echo atable row and div tag within PHP code. The following is what I have unsuccessfully tried: echo '<tr>' '<td style="text-align:left">' . '<div class="describe">' . $row['im_description'] . '</div>' . '</td>' '</tr>'; I don't want it to appear in this format: <tr> <td style="text-align:left"><div class="describe"><?php echo … | |
Hi Guys, I've been playing around with Angular and Ionic tutorials and I'm attempting to put together things I've learnt from different tutorials to build a simple NPR audio player. I have a really really anoying issue with ng-show/ng-hide... Basically, in the bottom left hand corner of my application I … | |
Hi All, I have a sql query i am trying to get the count of how rows it returned. select a.field1, b.field2, c.field2 from table1 as a, table2 as b, table2 as c where a.field1=b.field1 Considered the above query return 9 rows. I want to get count of '9' in … | |
Hi all, I need to add a contact form to a site I'm working on. I'm just thinking whether it would be better to go with an online solution (grab a form from somewhere and use it on my site) or building my own thing (complete with captcha etc). I'm … | |
Fair warning - I'm still learning so this might be a very newb like question: What I'm trying to do: I'm trying to import a python file into a Tkinter window and run it when I press a button. Eventually I'd like to display the output of the imported script … | |
<?php if (isset ($_POST['submit'])) { try { $picture = "../images/default-picsss.png"; $sql = " INSERT INTO user (username, password, fullname, address, mobile, email, picture) VALUES (:username, :password, :fullname, :address, :mobile, :email, :picture ); INSERT INTO user_balance (username) VALUE (:username); "; $stmt = $PDO->prepare($sql); $stmt->bindParam(':username', $_POST['username'], PDO::PARAM_STR); $stmt->bindParam(':password', $_POST['password'], PDO::PARAM_STR); $stmt->bindParam(':fullname', $_POST['fullname'], … ![]() | |
In order to find the most occurent element I am using: int find( int* arr, int size ) { int count = 0, MostOc; for ( int i = 0; i < size; i++ ) { if ( count == 0 ) { MostOc = arr[i]; } if ( arr[i] … Programming c | |
Hi guys, Today I had a look at files and therefore I’d like to create a GUI application that allows me to type a sentence or a word and store it to a text file. The reason for this is that, when I come across an interesting word or sentence … | |
hi have been doing a bit more of the tutorial and im trying to show errors if someone doesnt fill in information but the required notice isnt showing all im getting is is required. is required. is required. is required. when it should show the following: username is required etc … | |
Can anyone give a clear,short and simple explanation about database indexes? | |
my insert statement seems to be ignoring my unique index and adding duplicates what'd i mess up? thanks in advance Table CREATE TABLE `address` ( `address_id` int(11) NOT NULL AUTO_INCREMENT, `address_street1` varchar(100) NOT NULL, `address_street2` varchar(100) DEFAULT NULL, `address_street3` varchar(100) DEFAULT NULL, `address_city` varchar(45) NOT NULL, `address_state` char(2) DEFAULT NULL, … | |
Write a function for swapping players in a team. New player (which is read) enters team and replacing the player which is also read. Prototype of function is void swap(TEAM *, PLAYER, int); First argument of a function is the pointer to team, second argument is the player that enters … | |
Write a program that reads data from binary file **EMPLOYEE.DAT** (employees are proffesors and teaching assistants, assume that the file exists). Split data about proffesors and teaching assistants in two separate text files and sort data by **ID** using insertion sort algorithm. Search and print data about employee which **ID** … | |
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 … | |
Write an iterative function **char* conversion(unsigned int num, int base)**, that converts an integer **num** into any **base** **(base <=10)**. How to transform the following recursive function conversion() into iterative: #include <stdio.h> void conversion(unsigned num, unsigned base) { if (num / base) conversion(num / base, base); printf("%u", num % base); … Programming c | |
* <?php mysql_connect("localhost","root","") or die ("could not connect"); mysql_select_db("search_test") or die ("could not find db!"); //collect if(isset($_POST['search'])){ $searchq = $_POST['search']; $searchq = preg_replace("#[^0-9a-z]#i","",$searchq); $query = mysql_query("SELECT * FROM members WHERE firstname LIKE '%$searchq%' OR lastname LIKE '%$searchq%'") or die ("could not search!"); $count = mysql_num_rows($query); if ($count == 0 ) … | |
here is my sample code: addqtr.php <?php $quarter=$_POST['quarter']; $sql="Select * from $quarter where id=?"; $res=$db->prepare($sql); $res->execute(array($pqid)); while($rowadd = $res->fetch(PDO::FETCH_ASSOC)){ $num=$rowadd['id']; $pushup=$rowadd['pushup']; $situp=$rowadd['situp']; } ?> <form method="post" name="frmQuarter" action="saveqtr.php"> <input type="hidden" name="qid" value="<?php echo $pqid; ?>"/> <table> <tr> <td>Select Quarter</td><td>:</td> <td> <select id="quarter" name="quarter"> <option selected></option> <option value="1qtr">1st</option> <option value="2qtr">2nd</option> <option … | |
hi im following a tutorial for a system running on PDO and i have encountered a error can anyone check this out Fatal error: Call to a member function count() on a non-object in /home/matureco/public_html/classes/User.php on line 21 user.php public function find($user = null) { if($user) { $field = (is_numeric($user)) … | |
I'm experiencing an issue deleting data via PHP/MySQL query. The following is the error message: Delete product category failed. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 This is … | |
If I wrote a program which would `Console.WriteLine()` a base64 code, like an easter egg ("a hidden secret" in gaming jargon) or something, for example string EasterEgg = "dGhlYmlnc2VjcmV0"; Console.WriteLine(b64d(EasterEgg)); And I would let a good obfuscator run through it. Now I know that crackers with enough time and knowledge … | |
LightGallery is counting wrong number of images.. here is [jsfiddle code..](http://jsfiddle.net/jetnku0x/3/). In this jsfiddle i am append dynamical element with a div that is in html file.. Please check manually ... Why lightgallery is count wrong images ? | |
Hi everyone i have this code setTimeout(function() { var hiddenimages = [],albumcover; albumcover = uploadSuccess.udest + imagesarray[0]; // for (var i = 0; i < imagesarray.length; i++) { imagepath = uploadSuccess.udest + imagesarray[i];// user image location.. //if(i != 0) hiddenimages += "<a class='dfed _p040red uid glryview501 _p44oid' href=" + imagepath … | |
Hello all, My chess piece images are being cropped from the bottom. There is a sense of a squeeze which seems to make the bottom parts of my images disappear. Can anyone tell me why this is happening? Thank you in advance... [Click Here](https://www.facebook.com/photo.php?fbid=10153417612584037&set=gm.937346006302419&type=3&theater) <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" … | |
i need help in adding a new record to the database using adodc in vb6.. i've a command button named add in my form... | |
Hello , I want to compare each element of an array with every other. For example, array[0] with array[1] , with array[2] ... Then , array[1] with array[2],with array[3] ... So , I thought something like this : for ( int i = 0; i < N; i ++ ) … | |
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 … | |
hi all, I am trying to make an array that looks like this: Array ( [status] => [MERGE0] => removed@email.address [merge_fields] => Array ( [MERGE1] => James [MERGE2] => doe ) ) In my code, there is an undefined number of [merge_fields], so I am using the code below to … ![]() | |
Hi guys. I have already installed fullcalendar successfully onto my webpage home.php <script type="text/javascript" src="js/fullcalendar.js"></script> <script type="text/javascript" src="js/fullcalendar.min.js"></script> <script> $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); $('#calendar').fullCalendar( { header: { left: 'prev,next today', center: 'title', right: 'month,basicWeek,basicDay' }, … | |
Hi i am trying to execute .java file through php. please any one help. |
The End.