39,393 Topics

Member Avatar for
Member Avatar for vijiglad

This is the code to delete image in a folder... [CODE]<?php $path = "uploads"; if(isset($_POST['file']) && is_array($_POST['file'])) { foreach($_POST['file'] as $file) { unlink($path . "/" . $file) or die("Failed to <strong class='highlight'>delete</strong> file"); } header("location: " . $_SERVER['REQUEST_URI']); //redirect after deleting files so the user can refresh without that resending …

Member Avatar for Sujeet_1
0
17K
Member Avatar for slrobinson1983

hello all. i have the following code... SELECT * FROM data WHERE no_2 = no_1 + 1 AND no_3 = no_2 + 1 AND no_4 = no_3 + 1 AND no_5 > no_4 + 1 UNION SELECT * FROM data WHERE no_2 > no_1 + 1 AND no_3 = no_2 …

Member Avatar for invisal
0
254
Member Avatar for best4earn

I have a software which demands this extensions on server , i tried by using xampp but failed. In the beginning it demands zend Guard Loader . I have tried to install on xampp but it can't be installed. I have already read this topic and follow and many topics …

Member Avatar for diafol
0
240
Member Avatar for richardelectrix

Hi there, I am currently building a website using Wordpress, Woocommerce, and Woocommerce's Tab Manager plugin. On the product pages, you can see a tab called "IP Ratings..." which should have a little symbol next to it (which we creat using the sup html tags). However, the tags themselves are …

Member Avatar for Taywin
0
205
Member Avatar for UK-1991

Hello recently I downloaded dropbox SDK and Ii's located in my downloads folder and it's dragging me to hell how do we install it no proper description provided nor a good details so we would be able to install it can anyone help me out there is no code to …

Member Avatar for cereal
0
293
Member Avatar for Jiby_1

while using below code the error is : Warning: Cannot modify header information - headers already sent by (output started at.......................) please help frnds.......................plz <?php header('Location:index.php?menu=18');?>

Member Avatar for diafol
0
106
Member Avatar for shashigowda

Hiiii,Good Evening I have a code that search for data in the database but I can search for only 1 keyword in a time,which is working fine for single keyword. if I type 2 keywords separated by a space or comma's which return blank page. I would like to modify …

Member Avatar for pritaeas
0
2K
Member Avatar for jeffersonalomia

I have problem with my PHP AJAX code for uploading file. At first, it works fine then after a few months and reinstallation of my wampp server the code produces an error Error: Undefine variable ls_no, ch_no, grp_co, browser Heres the code that I wrote // upload_file.php <?php include_once("db_connect.php"); $chars …

Member Avatar for diafol
0
319
Member Avatar for vinomashwin

I want to know how to create a registration page and login page ... any tutorials about this and i need some complete web templates too(not just home page)... can any one help me.....any ref plz

Member Avatar for diafol
-5
3K
Member Avatar for joshmac

I am hoping that someone can point me in the right direction for this. I have a system that has default .po/.mo files located here: *./app/lang/es_ES/LC_MESSAGES/default.mo/.po*. The system has a plugin system where the plugin's .po/.mo files could be loaded here as an example: *./app/plugins/helpdesk/languages/es_ES/LC_MESSAGES/helpdesk.mo/.po*. As you can see, they …

Member Avatar for joshmac
0
143
Member Avatar for Simon180

Hello am trying to encrypt my strings in delphi I already encrypted my needed strings in php but am having a little trouble getting the matching string from my delphi test application below is the php code am using to encrypt on website then following code is my delphi app …

Member Avatar for Simon180
0
1K
Member Avatar for jeffersonalomia

I am wondering if it is safe to debug a c++ code on my website? If theres an article that talk about that pls. post the link together with your reply. Thank you :)

0
104
Member Avatar for Testt

Hi all, I was trying to create a kill switch for hours but with no success i wasnt able i have tried css killswitch and ajax killswitch, this is the tutorial http://menacingcloud.com/?c=ajaxKillSwitch2 i tried but wasnt able to make it work i also researched and found csskillswitch.com but also that …

Member Avatar for gentlemedia
0
572
Member Avatar for phoenix254

Hi, I Have this php code: <?php //require('dbconnection.php'); $conn = mysqli_connect('localhost','root','','user_registration'); if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); }else{} ; function getUsers() { //return require('online-users.txt'); $getAllUsers = mysqli_query($conn,"SELECT * FROM login"); if($getAllUsers === FALSE) { die(mysqli_error()); // TODO: better error handling } while($rows=mysqli_fetch_array($getAllUsers)){ echo $rows["firstname"]; } …

Member Avatar for cereal
0
12K
Member Avatar for shashigowda

i have installed wordpress in localhost,till yesterday it was working properly.but now i have tried to login to admin panel using **localhost/destin/wp-admin**,it is simply redirecting to http://localhost/destin/login/?redirect=http%3A%2F%2Flocalhost%2Fdestin%2Fwp-admin%2F this url.i have also a tried **localhost/destin/wp-login.php** in this case also it is redirecting to some strange URL.pleasehelp me ASAP

Member Avatar for shashigowda
0
612
Member Avatar for LibraryCode

![NetbeansCI.png](/attachments/large/4/aad0aaa52fdee4151cdd4fc9b8eab22c.png "align-center") I have netbeans,xampp is running,database is ok.All functions running no problem,but this one,keep getting 404 error.Double checked the spelling and the code.Can not figure out the problem.

Member Avatar for cereal
0
170
Member Avatar for bLuEmEzzy

Hi Guys, I am inserting values in two tables. After the insert of values in the first table, I want to get the inserted ID(first table) because I need that value in my second table.This is my code but I think it will gives error when there are many values …

Member Avatar for bLuEmEzzy
0
154
Member Avatar for lukwagomedia

Hi everyone! I know this problem has already been discussed but I use MYSQLI so I have different issue here. My problem is: I have coded a login page (my testing page) för a forum that I am creating. But it doesn't work. I have spent 4 days going through …

Member Avatar for diafol
0
309
Member Avatar for UK-1991

I created a rating system where users can rate the posts, but I want to make it restrict like one user can only rate the post once I beleive my punctuation is better to be understandable like before as I got many negative feedbacks here but I am trying to …

Member Avatar for diafol
0
301
Member Avatar for Amaina

I'm trying to output/write mysql SELECT results to a text file. The SELECT statement results are three records but when i use fwrite to write these results to a textfile, only one record is written. What can i be possibly be doing wrong? Here is the code snippet <?php include …

Member Avatar for Amaina
0
3K
Member Avatar for jkon

Although objects collections have a place in the PHP world many years now , their use is now flourishing because more and more PHP programmers turn to OOP. This tutorial is a sequel of https://www.daniweb.com/programming/web-development/tutorials/500118/a-simple-data-layer-for-oop-php-applications (we will refer to it as “previous tutorial”) and https://www.daniweb.com/programming/web-development/tutorials/500118/a-simple-data-layer-for-oop-php-applications , in order to understand …

Member Avatar for jkon
2
842
Member Avatar for Mae_1

Hi, I'm working on a website for a school project and I'm stuck on setting up the login. The set-up I have for the login is when the user entered the wrong password five (5) times, they will then be redirected to the password reset page. My question is can …

Member Avatar for Testt
0
133
Member Avatar for cambraydesign

I'm trying to change this soap response into php variables and failing! I am trying this like: $return = $response->DownloadDataByUserStringResult->UserId; But this doesn't work $options = array( 'soap_version'=>SOAP_1_1, 'exceptions'=>true, 'trace'=>1, 'cache_wsdl'=>WSDL_CACHE_NONE ); $client = new SoapClient('http://client.Service.asmx?WSDL', $options); } catch (Exception $e) { echo "<h2>Exception Error!</h2>"; echo $e->getMessage(); } $params = …

Member Avatar for cambraydesign
0
2K
Member Avatar for Amaina

I have two mysql tables namely tableA and tableB. tableA +-----------+--------------+---------+ | tableA_id | title| month| +-----------+--------------+---------+ |1 | malaria| january | |2 | pneumonia| january | |3 | HIV| january | |4 | tuberculosis | january | |5 | dengue fever | january | +-----------+--------------+---------+ tableB +-----------+-----------+--------------------+---------------+-----------------+ | tableB_id …

Member Avatar for Amaina
0
300
Member Avatar for sumangola

http://www.xyz.com/detail.php?course=InDesign_CC i want url http://www.xyz.com/detail/InDesign_CC using htaccess ......help me i try a lot but not get success.

Member Avatar for diafol
0
332
Member Avatar for andrian.mutua.7

hello A newbie in database constuction, need help in adding automated sms functionality in mysql database. A user needs to sent a certain sms with certain keywords like 'location' to the system. the system refines a search according to the location content then sents back the data back to the …

Member Avatar for rproffitt
0
332
Member Avatar for SirMahlon

i am trying to loop rows from my database but i want to loop the first three rows and place an ad on the fouth row then i continue with my main loop.Aany help will be helpful. Thank you

Member Avatar for SirMahlon
0
217
Member Avatar for cwarn23

Don't you just get sick of hash algorithms constantly been brute forced or even cracked. Well here is an algorithm I have created in my spare time to help out the little guy who just wants a secure hash. This hashing algorithm uses many different techniques including ones used in …

Member Avatar for rubberman
1
1K
Member Avatar for SAMMY12345
Member Avatar for gogs85

Hi i get all information what i need but i dont know how to get facebook profile image and save to file and in mysql save path. Here is my code for call fb api : <?php session_start(); include_once("config.php"); // facebook id include_once("includes/functions.php"); //destroy facebook session if user clicks reset …

Member Avatar for cereal
0
362

The End.