Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Countdown using PHP or Jquery

<?php $time=time(); $time_out=$time-60*24; if($userInfo['deleteTime'] < $time_out){ $countTime=$userInfo['deleteTime'] - $time_out ?> ...

How to get difference between two or more arrays in PHP?

Hi everyone, I am a beginner and have been learning various programming languages like PHP, DotNet, Java etc. I faced an issue regarding php programming in which I wanted to learn how we can find out the difference between two or more arrays base...

How can i print values of array in this program? it is printing the key?

 In program below, I  want to print values of array but it is printing the key, can someone help. <?php $CHAMP = array("ESP"=>"BARCELONA", "GER"=>"BAYERN", "POR"=>"BENFICA","ENG"=>"CHELSIA"); $TEAM = array("ESP"=...

Which PHP Framework is easiest to learn?

Hello Readers,  I am Fresher in a company and working as a HTML Developer. Now a days, I am planning to learn PHP, So I want to know which PHP framework is easy to learn?

passing id from function to another in php?

I have PHP MySQL functions and I need to pass the id number from one function to another and each function are called in different page. I'm using the URL to pass the variable. I don't know if that is possible but can I use session to pas...

Explain like I'm 10, when and why should I move my site to https from http?

I am new in web development. I notice that in web url there are two typs url 'http' and 'https'. I dont know the deference of these two also when and why we should change it from http to https. Any can can help me to understand t...

How to Validate & Process Data Before Posting into Payment Processing Site?

Need to post data to a payment processing website - but need to validate and preprocess first Apologies if this is a dumb question. I am not an experienced web programmer. I am trying to integrate an online payment processing site with my o...

How to Instantiate Class Using Namespaces in PHP?

Trying to figure out how to instantiate class with name spaces. The library was built for Composer to manage dependencies, but we're using just the necessary classes for our project. We are using this library: https://github.com/thephpl...

How to generate report like pivot table from php 3d array on question_id base

Actually I am generating a report and print out answers under that question id. Like 13377 questiin id answered 3 times so i want to echo their answers underneath and the same for other question ids. All data is dynamic. Get unique questions id t...

Getting Foreign Key Constraint Fails Data Insertion Error in MySQL

I am trying to create to 2 tables and inserting data into them but I am getting this error Creating Athlete the table failed SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or update a parent row: a foreign key constraint fail...

How can I secure my APIs using O-Auth?

I wrote some APIs in PHP to expose my website to a greater no of audience. Now, can anyone help to know how I can secure them using O-Auth.

update multiple values using php and mysql?

i need to update multiple choices for question but every time i run the query it's only update the last choice only also i need to update the value of the correct answer which is (0 or 1 ) which the best using input text or radio button ...

set the correct answers equal to 1?

i'm working in query to insert answer into answers table and i need to set to correct answer equal to 1 and the incorrect answer equal to 0 for that i'm using radio buttons to assigned value into the answer but every time when i run the q...

how can i insert a value into foreign key in mysql table using php?

I am having a problem when I try to push value into a foreign key in MySQL table I don't know if it's correct but I have used the  GET method to pass the primary key through a link but it didn't work so how can I use the right wa...

send data into php using javascript and ajax

i need to send data into my database using ajax but i don't need to send duplicate data so how can i return false if the username or email already exist in my database or prevent submit also i need to prevent submit if the password fields are...

how to choose correct answers from multiple choices questions ?

how to choose correct answers from multiple choices questions using php and mysql i don't know if i'm doing in the right way because i'm still new in programming world  1- i'm using an array to store the questions  ...

Shopping cart quantity counter incrementer?

Hello all, I am creating my first shopping cart in cakephp but got stuck while updating the product quantity. I want to update the product quantity using a session variable. Problem here is that when ever I am adding the same product to the cart ...

how to avoid duplicate data in php mysql ?

i have this database which contain table for questions and other for answers how can i display each questions with the answers that belong to this question my problem is when i try to display the questions i get duplicated rows or all the answe...

countdown timer for online test

countdown timer for online test how can i add timer to my online test which allows me to -1 time your testing 2-if the countdown is finish the form will submit 3- after submit i need to give score the questions that he has already answered it...

convert letters to digits and get all combinations

I have letters in a string, I would like in result get all possible sets of those letters and convert them to numbers, each set should use all numbers, each number can occur only once in a set. numbers automatically should increment until 9. and ...

update data using get method

update and delete using get method i have this code to update data from my database i have no error reporting but he's not updating  any data can you help me with that   my database and my code -- -------------------...

Create a Login Form With Validation

Hi All My Question is as follows. Create a login page for your project. The login page must:  a. Accept a user’s name, surname, email address and password. b. The password must be compared to a, e.g. hash “29ef52e7563626a...

Create and Delete and Recreate Table

Hi i have been asked to the following task.   Your project must meet the following specifications: 1. Create a table tbl_User in MySQL using the console or phpMyAdmin, consisting of the following column names: a. The table struct...

PHP error after updating my php version to 5.4.0-3

Hello I'm get a strange PHP error after updating my php version to 5.4.0-3. I have this array: Array (     [host] => 127.0.0.1     [port] => 11211 ) When I try to access it like this I get strange warnings  prin...

PHP Objects

I am looking for a good approach to this problem. I wish to build a PHP/MySQL app that maintains configurations in MySQL.  Specifically, there will be projects that each contain a different web screen that includes a backgr...

Update Password

HI Can someone please take a look at my update password file? It won't report any errors and won't make change on database. The file connects with database but falls over somewhere.   Thanks

How to display result of php file in an html file

I need help please. I create html file with 2 tabs. The first tab contains form that takes user input and submit it to php file. I want the result of the php file to be displayed in the second tab. HTML file:   <ul class="nav">...

HTML/FPDF Table

I am trying to print this sample report in pdf so far this is what I have 1st Problem: the report should have another 2 cell (Ave and %) below the criteria which are (Exam, Progress Report, Quiz, Project) 2nd Problem: The records u...

Register form won't connect

Can some one please help with a register form for a website? I can't get it to load information to database. prepare($query); $statement->bind_param('ssssissiisss', $firstname, $lastname, $streetAddress, $suburb, $postcode, $state, ...

uploading file

when i execute this file.php only it will upload, when i run in Mainlayout.php its not uploading. Below file is File.php, its to upload csv file.. Canone help me plzzzzzzzz   <form name="import" method="post" enctype="multipart/fo...

how to get questions with jquery,ajax,php

have a quiz script. My script contains quiz.js, getquestions.php, insertresults.php. In quiz.js: var i = 1; var sec = 20; var timetaken = 0; var answer; var points; var result = .5; var score = 0; var f = new Date(); var duration; var...

I'm getting import CSV error while uploading files in php

Hi i'm developing the panel where admin can import the csv file directly to mysql database. But I'm getting the error. My code is <?php //ENTER THE RELEVANT INFO BELOW $mysqlDatabaseName ='bilmos'; $mysqlUserName ='root'; $mysqlPasswor...

how can I use php to display question

how can I use php to display question stored in mysql database and choose the right answer for it and give grade if the answer is right and store it back in mysql database (sorry I don't speak English very well )

Getting error for using the session variables used in PHP

<?php session_start(); include_once('config.php'); $user=htmlentities(stripslashes($_POST['username'])); $password=htmlentities(stripslashes($_POST['password'])); // Some query processing on database if(($id_user_fetched<=$id_...

I want to convert the query php code into the Prepare statement php code

Here is my query code, How can write same code in the prepare statement php. <?php header('Content-type : bitmap; charset=utf-8'); if($&#95;SERVER['REQUEST&#95;METHOD']=='POST'){ $encoded&#95;string = $&#...

how to stick posts to their respective posts in php&mysql

Guys im trying to join a comments table to posts table using the following query in a method. public function feedView($session,$friend,$updateid) { $sql2=" select u.update&#95;body,u.author,u.time,u.title,u.account&#95;na...

How to Select specific category by writing PHP code to show lat & lng location in google map using volley library

I want to display location (lat & lng) markers in Android google map using volley library by selecting the category. I am not able to get individual selected item locations but I am able to get all locations markers in map. Please help in ...

Uploading captured image into the specific folder server using volley library

This is one of the famous question which is unanswered clearly. I have posted it on stackoverflow link as follow: http://stackoverflow.com/questions/33341069/uploading-captured-image-into-the-specific-folder-server-using-volley-library I wa...

Google Map showing only one marker

Hi, I am using Google Map in my app. I have added treeid, and its lat and lng location. I want to retreive these location and show in google marker using volley library. But I am able to get only one marker location.Please help me where I a...

Wordpress plugin interfere with the template in wordpress

Hello, I have a problem my plugin which I build it changes the style of my template. I would like to know how to avoid a problem like this. My plugin should take the main style of the template and not modify it. Please take a look on my att...

I'm using the PHP curl and how can i make request by HTTP authentication?

Using PHP and using the curl as service I'm working on a REST website So, How can i make request by HTTP authentication? I need to know can i use the library functions ? I they exists for this way Please comment your answers.

How to write PHP code to select specific column and display rows respectfully??

I have wrote code for sqlite to select specific columns and display rows .. id condition lat long 1 Good 0.0 0.0 2 Poor 0.0 0.0 3 Good 0.0 0.0 When I select Good, It should display my lat & l...

android google map is showing only one marker using volley library

I am using Google Map inside the "Fragment" using sqlite database connection through volley library. I have 4 location, but my map is showing only one marker. I don't know where exactly getting wrong. Where do I need to change in my code to...

errror come on run time to connect my android app with mysql

my code this AllProductsActivity Class public class AllProductsActivity extends ListActivity { // Progress Dialog private ProgressDialog pDialog; // Creating JSON Parser object JSONParser jParser = new JSONParser(); ArrayList<H...

Android How to upload image into the server using Volley library

I want to upload my captured images from camera to my 000webhost.com server using the volley library. I want where I am getting wrong and suggest me full code solution. I have tried to write the code, But its not working. I am getti...

Php WP how to send a mail to the admin from a logged user

Hello, I would like to know if in WP PHP is possible to make something like that: I need for the logged user a form which when compiled and submitted, send a mail to the admin with the all data of the user from db and the message he/she write. ...

In Wordpress, How user can fill pdf forms online and after that do online signature and send?

Hi In Wordpress, How user can fill pdf forms online and after that do online signature and send? Thanks in Advance.

query regarding PHP

HI I got a reference of this forum from one of my friend .. i am new to PHP and i have made a clender in PHP and now i wanna display birthdays in the calender by changing th edate color and on tooltip wanna display name of student(s) of having...

Is there anyone who is expert in MasterCard Integration??

I have downloaded the Mastercard SDK for PHP but it's my first time to Mastercard Integration , I am confused about the Config.ini file gasp emoticon , how I change these values given in the picture
prev 1
Sign In
                           OR                           
                           OR                           
Register
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: