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

Converting code from C to PHP

Hi! I have a question about a small piece of code in C to make the same piece of code work in PHP, it has to do with a bit shift and I can't figure out what's wrong. C: unsigned u = 3910796769; u += u << 8; printf("%u\n&q...

Modal dialog getting closed on submit and without processing form

I have a modal that when opened through ajax displays a form with a submit button. The modal is getting opened successfully but when I am submitting the data in the form the modal disappears without doing the requisite function. I have tried m...

Want to develop a Book review iOS application using php,mysql and Xcode, please help

1 In this tutorial, I am using the same hosting service (bluehost) in combination with wordpress. Does anyone know why the page is showing an error message when I input the url... aside from this issue. I am following along in this tutorial an...

My datatable not showing in laravel project

I'm working on inventory management project in laravel but currently my datatable is not showing for sales order list SalesController.php <?php namespace App\Http\Controllers\Transaction; use App\Http\Controllers\Controller; ...

Displays Profiles with a Similar Job Title and Industry in php

What I want: When I click the First Name a profile.php will open and in one place of a profile.php displays Profiles with a Similar Job Title and Industry Example Click Steven and Neena, Lex, and Alexander's profile will display in p...

How do I get the selected ID for the second dropbox based on the first dropbox in PHP with a refresh?

I am building an editor for a blog. Each post will be categorised. When the user clicks on a post title from the first dropdown menu and presses Ga (go in Dutch), then the page reloads with the second category dropbox selected to the category ...

Can you Spot the Error in this PHP Code?

<?php class Post { private $user_obj; private $con; public function __construct($con, $user){ $this->con = $con; $this->user_obj = new User($con, $user); } public function submitPost($body, $user_to) { $body = strip_tags($...

How to Implement a Logic in PHP for Fight App?

Please take a look at the code below. We've got a class FightService, which implements a logic of a fight between two heroes. After the fight one of the hero may lose some health points.   Please implement a test for FightService::...

How to Check If Bootstrap Last Column is Even or Odd

Im new to this forum and new to php too… hope i get some help… I have bootstrap column in while loop, what i want is if bootstrap last column is odd then i want column to be 12 (col-12), i found the way to check number even or ...

Displaying Default Images When There's No Photo Displayed on Bootstrap Carousel

Hi there, I am having a problem here. Hope you can help me solve it.   Scope: I have this slider which display pictures from my SQL which status is 1. It does display those pictures, but when there's no picture with 1 status, it do...

How to Store and Update Multidimensional Array in PHP

I want to store and update multidimensional array data    The data is coming in this form    array:7 [ "address_heading" => array:2 [ 0 => "address_heading_1" 1 => "...

How to Convert SVG to Image (JPEG, PNG) in Browser & Save on Server

How to Convert SVG to Image (JPEG, PNG) in Browser & Save on Server for product preview to checkout   I'm converting svg using html2canvas to save on server side as png product preview before checkout with base64. The svg works...

Getting Error When Trying to Pass JSON PHP to JS with Ajax!

Hey, I'm in desperate need. I have made a JSON object with PHP named userAuth and I am trying to pass it to a JS file with Ajax, here is my PHP code (auth.php):   $userAuth->access = 1; json_encode($userAuth);   ...

How to Send Username Using Post Method in WordPress to Another Link

I would like to send the username of the user who is online in the WordPress system with a POST method to another link.  

How to Integrate Avantlink Order Teacking & Confirmation with Paid Membership Pro

I am having an issue integrating Avantlink Order Tracking and Order confirmation code with Paid membership pro WP. I was sent documents from avantlinks and paid membership pro to follow and implement the task but it did not work with me.  ...

How to Track Client IP Address Using PHP App?

Hi i'm using this below code for track the client address but this code is working fine on our local server but once i have hosted on live server they are returning hosted server IP not user IP address please if any one knows his solutio...

How to Send More Than One Data in PHP Ajax Form

<input type="file" name="file" id="file" /> <div style="background:url() no-repeat"> <span id="uploaded_image" ><img src=" '.$row["carimg"].' " height="150" width="225" class="img-thumbnail" /></span></div...

How to Auto-load Classes using spl_autoload_register and Namespaces in PHP App?

I have this simple project built by oop php but it seems that i cant make the autoload class working properly.   I keep getting this error unable to load class. So how can i make the autoloader working in the right way    ...

Why my If Statement not Working in While Loop in PHP Program?

I have searched and an IF statement seems to be the only way   The only thing is,when i put IF statement in - it doesn't seem to DO the INSERT statement at all, so nothing is being inserted, it's as if it's stopping before ...

How to Do 2 Steps Verification with Google Authentication in PHP App

Hi,   I wan to add google two step authentication process (http://findnerd.com/account#url=/list/view/How-to-Use-2fa-Google-Authentication-in-CakePHP-3-and-Above---8-Steps-Guide/33464/?utm_source=hashnode.com).   I have alre...

How to Solve PHP Connectivity Error with MySQL

<?php if(isset ($_POST['Signup'])) { $file_name = $_FILES['image']['name']; $file_tmp =$_FILES['image']['tmp_name']; $file_ext=strtolower(end(explode('.',$_FILES['image']['name...

How to Covert Function Query from Mysql to Mysqli

can you please help to convert the outdated function query into mysqli       function query($querystring)         {                 $this->q...

Convert flat multidimensional array into a hierarchical multidimensional array

I am trying to list photo albums where each album contains individual photos. This is similar to categories where each category cotains posts. I have two database tables, namely "albums" and "photos".  The albums table ...

While creating PHP login script using Javascript Ajax, Why I ain't getting response?

create php login script using javascript ajax ? i have this script for php login and i need to use ajax to login the users but i can not make it work i can't get response form processing page and i use alert function to alert response text...

Persistent Cookie Help Required!

This is a login.php.   The user is given a choice to either input his/her Username & Password or Email & Password. In short, either log-in inputting your Username or your Email.   It is written in mysqli procedural. ...

Why httpS Fails To Load on HTTP Request via Multiparameter in cURL in PHP Code?

Php Gurus! This is a php web proxy called Mini Proxy not written by me. Why do https pages show blank white when I visit any https pages with the proxy ?  I reckon the https pages are failing to load. Why do you think that is ? You c...

Finding Banned Words On A Page And Not Within Other Words!

Php Lovers! I am NOT searching for banned words within other words on a page but searching for banned words within a loaded page. I am not actually looking for banned words within other words but within the page (meta tags, content).  ...

Login With Username or Email And Password - Cleaning Up The Reg Page

Php Folks! You know others in other forums suggest I use regex but yet again they never provide sample or I reckon many don't know the regex. I will mention your sample on other forum and link back to this thread. Hopefully, a lot of newb...

How to Code cURL PHP Script to Auto Type In Search Box & Click Search Button?

Hi, I want to build a cURL script that auto searches a keyword on any site's search feature. In this example, imagine I want it to search ebay.com. How should I code it ? What is the code that: 1. Types a keyword in the search box; ...

Why password_verify Function Not Passing the Verification in PHP Application?

Php Programmers,   Why does the password_verify keep failing ? I checked the myql tbl column name (passwords) and there is no typo. The $query is able to get the $result querying the db ($result = true). The password_verify is in...

Why string_replace Fails On Arrays ?

Php Folks! I am trying to do the following with cURL: * Keyword Search on Google. So, basically, when you do a keyword search on Google, then cURL is supposed to fetch the Google Search Result Page (SERP) showing you the search results o...

CURL Fails To Load Page

Php Guys, Why does this cURL show complete blank page ?   <?php /* ERROR HANDLING */ declare(strict_types=1); ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); error_reporting(E_ALL); mysqli_rep...

How to Implement Registration Functionality in PHP?

Programmers, I wrote a registration.php (member reg) and it was working fine but the coding was not perfect (old version). Neated-up the new version but I see a complete blank page once I click "Register" button. I do not get this m...

How to create a feature similar to Sign in with Facebook using PHP?

How to implement a feature similar to sign in with facebook , I have a site B . com ,I want sign in to B.com using email and password registered in B.com from another website A.com . How can i implement it ?

How to Display Recent Article Title to Top New Bar of PHP WordPress Site from Specific ID

Hello I recently stumbled upon this site and was wondering if someone out there could provide help.   Currently there is an area in the top bar of my Wordpress site that has a section called "BREAKING" (this "BREAKING...

fPDF version issue

i have used fpdf to merge pdf but in fpdf there are some limitations it supports only 1.4 version compatibility level with pdf. so i used ghost script which converts pdf 1.4+ versions into 1.4 version and also i used same command in different ser...

How to Implement a PHP Class Containing 2 Methods?

Suppose that you have to implement a class named Dragonball. This class must have an attribute named ballCount (which starts from 0) and 2 methods iFoundaBall and iLostball. When iFoundaBall is called, ballCount is increased by one. When ilostbal...

Why str_replace Not Working Properly With CURL?

Php Buddies, Why do you reckon the following script is unable to replace the 'https://' or the 'http://'  words with 'http://mymydomain.com' ? It is able to replace the words 'www.' with 'http://my...

submit php form using xmlhttprequest ?

i have this code for submitting an online exam and i submit this page using javascript xmlhttprequest(pure javascript no Jquery) and i have three parameters the question id arrays and answers and the numbers of rows      ...

How to Resolve Index Page Calling Error in PHP Application?

I am getting an error warning when calling my index page for a PHP application. Below is the Error: Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\uni-saga\index.php i get th...

How To Precede A Tracking Url Onto A Url >

Fellow Php Programmers,   What does the following header mean (ebay.com): **HTTP/1.1 200 OK X-EBAY-C-REQUEST-ID: ri=N79YSYGvO9se,rci=qZJNjVUUeUF9xCaS RlogId: t6e%60cckjkb9%3Fvo%7Bccbgmijf%28vo%7B%287570577-15c59d3449c-0x129 X-Frame-...

Regex To Extract 2nd Level Domains From All TLDs ?

Good Day Folks! 1. Is the following regex ok to extract top level domains and 2nd level domains ? [^.]*\.[^.]{2,3}(?:\.[^.]{2,3})?$ How to write php code to use that regex ? Any sample code welcome.

using ajax to load content from php file without jquery ( TABS)

i want to make a tabs that generating content from database based on what users click. i want to have a script which uses PHP, ajax and JSON if needed. but i don't want to use jquery. Could you please Help me? here is what i hav...

Convert SQL Query into Laravel?

SELECT * FROM jobs WHERE published = 1 AND (created_at between '2017-05-12 00:00:00' and '2017-05-13 00:00:00' OR created_at between '2017-05-10 00:00:00' and '2017-05-12 00:00:00' OR created_at between '2017-05-05 00:00...

How to load Image from database on Zend

Hello, I'm trying to load the image from the database only by its name. I tried to pass the directory folder and the image name but it didnt work. Im new at zend. Thankz!  

Update closed column in database using button click?

I've been trying to do this multiple times but still didn't 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...

Member Reg & Login Script - mysqli_stmt_bind_param() Errors

Hello Everyone! What do you make out of my latest code update ? Member Reg & Login script config.php [php] <?php /* *    ERROR HANDLING *    ini_set('display_errors', 1); *  ...

Repeat form on add form button

Hello everyone when I click on button repeat, the form is repeating. In this form I am using bootstrap color picker but when form repeat color picker not works in repeated form. this is my form:   <div class="col-sm-12 "> <...

How To Record Urls Loading on iFrame Into MySql Db ?

Programmer Experts,   I'm embarking on an interesting project to gain work experience in php. Just stuck on one thing and wondering if you can help. You probably used Team Viewer. This is where I create a Team Viewer session and...

Php Sql Injection Secure Tags

New Friends! :) The following is my member registration code as of latest. ISSUE 1:  I get this error: Parse error: syntax error, unexpected '_' (T_STRING), expecting ',' or ')' in C:\xampp\htdocs\e_id\reg...
prev 1 3 4
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
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: