39,395 Topics

Member Avatar for
Member Avatar for newbie14

Hi, Currently we have legacy system which is build purely using java and runs on jboss. We notice its using a lot of jms and also httpurl connectivity to pass on files. The system basically supports rossetta net framework where it allows file transfers between trading partners. We notice with …

Member Avatar for newbie14
0
165
Member Avatar for nufftalon

I am not sure what I am doing wrong but can't seem to recieve test email for this php form the form is at the bottom of this code snippet <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MIAPP</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <!-- FAVICON --> <link rel="shortcut …

Member Avatar for nufftalon
0
326
Member Avatar for Tinnin

Hi All, I'm having trouble understanding how the spl_autload (and namespaces) should be implemented. I have the following: namespace A\Core; class Controller { } extended by: class SiteController extends \A\Core\Controller { public function __construct() { echo 'Created SiteController!'; } } * I'm not sure if this is the correct/best way …

Member Avatar for Tinnin
0
282
Member Avatar for chaitu11
Member Avatar for smdjilani

i created a mailing option,when retriving messages it's taking lot of time and showing error of time delay.......can someone help??

Member Avatar for diafol
0
173
Member Avatar for CaffeineCoder

Hello to all: I've been banging my head against the proverbial wall on this (for a few days), and finally thought I'd seek thoughts on it. I have an existing submission form that has been getting hit by bots, so I'm adding a CAPTCHA to it. The entire solution is …

Member Avatar for mattster
0
321
Member Avatar for sonalchavda

Hi i m learning PHP.How can i insert a data in mysql by using onchange event in radio button, i m not used a submit button in my code can u help me by giving a solution of my prolblem by giving a little example. Thank you so much

Member Avatar for mmcdonald
0
439
Member Avatar for grant.baker

Ok, what I'm trying to do is have next and prev buttons to navigate through a mysql database sorted by date. Currently, the code I wrote does this, but gets stuck on duplicate dates. $Next = mysql_query("SELECT * FROM $logbook WHERE Date>='$Date' AND ID!='$ID' ORDER BY Date LIMIT 1"); $Prev …

Member Avatar for raybigto
0
3K
Member Avatar for lui.szeleong

Hi , I m new to codeigniter and i m trying to build a login system. However the logout system is not working well. After I click logout in /main/home it shows URL error. anyone know whats the problem ? <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); …

Member Avatar for veedeoo
0
253
Member Avatar for zebnoon

Dea Friends, it is superb serveice you are doing....lets please talk about SESSION in PHP.My code is below. <!DOCTYPE html> <?php session_start(); ?> <html> <head> <title>Login page</title> </head> <h1 style="width: 20%" >Login Page</h1> <fieldset style="width: 30%"> <legend style="background: #59CC57" >Login</legend> <body style="background: #B6ECEB"> <form method="post" > Username:<input type="text" name="username" placeholder="username" …

Member Avatar for broj1
0
469
Member Avatar for patk570

I have a code: $data=$_SESSION['title']; $view=$con->query("select flower.*, mystash.* from flower,mystash where mystash.name like '%$data%' OR flower.name like '%$data%' ORDER BY name ASC"); $check=$view; if($check!="") { while($descri=mysqli_fetch_object($view)) { I am trying to get the name from each table `flower` and `mystash` each have a column in there of `name` I am …

Member Avatar for kimhanu
0
247
Member Avatar for soomro_moon

hello everyone, im working on some php project for my masters thesis, i need a help. can any one guide me how can i insert data from mysql to excel file using php. i have some data in my phpmyadmin database suppose like book_store , table name books, i want …

Member Avatar for soomro_moon
0
123
Member Avatar for diafol

Hi all. Been playing with some autoloading but couldn't get it to work. I'm trying to implement the PSR-4 (project scope) approach, but documentation is sketchy and I'm a bit lost as to the issue. I've read the PHP-Fig docs: http://www.php-fig.org/psr/psr-4/ and an trying to implement a script from the …

Member Avatar for diafol
2
718
Member Avatar for veedeoo

and the new home for codeIgniter is (drumbeat please... and another drumbeat) ...The [British Columbia Institute of Technology (BCIT)](http://www.bcit.ca/) in Vancouver, Canada. Please read the official announcement from ellislab [here](https://ellislab.com/blog/entry/your-favorite-php-framework-codeigniter-has-a-new-home). IMHO, the decision made by the EllisLab is in the best interest of CodeIgniter. Although, I am not sure how …

Member Avatar for veedeoo
4
434
Member Avatar for Thobby

Hello, I'll like to use the uploads & rename scripts on a wordpress site, can u help with that. Has used in this website. www.Gidi360.com/vc

Member Avatar for Thobby
0
101
Member Avatar for johnef_sh

I am inserting answer of each of my questions I need to get the question id and inserted into the answer table see my code <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" id="quiz" class="container width_648"> <?php $getTheQuiz = $db->prepare("SELECT * FROM rec_employer_quiz WHERE ad_id=?"); $getTheQuiz->bind_param('i', $ad); if ($getTheQuiz->execute()) { $res = $getTheQuiz->get_result(); …

Member Avatar for johnef_sh
0
697
Member Avatar for zebnoon

dear friends, i allready written code for PHP registration and login forms . i am worried about attacks from user unwanted data entry.My code is below. <?php include"conn.php"; if(isset($_POST['login'])){ $uname= $_POST['username']; $pword= $_POST['password']; $uname =real_escape_string($uname); $pword= real_escape_string($pword); $sql="SELECT * FROM login1 WHERE L1='$uname' AND L2='$pword'"; $result=$conn->query($sql); if($result->num_rows>0){ echo("welcome"); } else …

Member Avatar for zebnoon
0
226
Member Avatar for garyjohnson

Okay I have a html upload form here, What is does is displays a browse button so users can upload files to my site, what I want them to be able to do is completly rename the file that they are uploading once they upload it to my site, but …

Member Avatar for Thobby
0
15K
Member Avatar for arafath077

book include --lib --db.php --input.php(static methods) --config --config.php --file.php index.php this my folder structure.THe config.php has spl_autoload_register. spl_autoload_register(function ($class) { if (file_exists("lib/{$class}.php")) { require_once "lib/{$class}.php"; }else{ require_once "include/lib/{$class}.php"; } }); i can access classes everywhere from project.but nont from book folder.I used namespace also.its not work for static method.

Member Avatar for veedeoo
0
187
Member Avatar for dwlamb

I have some experience when it comes to CodeIgniter. I am trying to figure out a method for determining the window size of a browser and assign it POST or $this or the user session (also part of $this). I need the variable to persist for the session. In my …

Member Avatar for veedeoo
0
652
Member Avatar for ronelo

good day to all, Sir/Madam my $_GET['criteria_id']; not working, cant display. ////// this is the code i use to display the data from table "criteria" and the colum are: [criteria_id, criteria] and the name of my database: autotab <?php require_once 'connect.php'; $idz=$_POST['criteria_id']; $wh=mysql_query("select * from criteria"); while($loop=mysql_fetch_array($wh)){ $ca=$loop['criteria_id']; echo '<div …

Member Avatar for gabrielcastillo
0
265
Member Avatar for potatopie

Here is my code: require_once("PHPMailer/class.phpmailer.php"); $mail = new PHPMailer(); // set authentication $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = "tls"; $mail->Host = "smtp.gmail.com"; $mail->Post = 587; $mail->Username = "myemail@gmail"; $mail->Password = "myemailpassword"; // set From: $mail->SetFrom("myemail@gmail.com", "First Last"); // set To: $mail->AddAddress("adifferentemail@yahoo.com", "First Last"); // set Subject: $mail->Subject = "Subject"; // …

Member Avatar for Pradeep_9
0
3K
Member Avatar for alina.nazchowdhury

Dear, All Viewers I need your help guys I need to convert the python Asterisk Gateway Interface (AGI) PHP or Java or Perl Asterisk Gateway Interface (AGI), Please if anyone know about it help me ASAP, I wait for your feedback guys. Thanks here is Code... asterisk.py code is below: …

0
200
Member Avatar for zebnoon

Dear friends, I am facining an other problem to in cloude a connetion file in PHP form.my code is below <?php include"conn.php"; if(isset($_POST['login'])){ $uname=$_post['username']; $uname=$_post['password']; $sql="SELECT * FROM login1 WHERE L1='$uname'"; $result=$conn->query("$sql"); if($result){ echo("welcome to new page"); } else { echo ("login problem"); } } ?> can not continue connectoin …

Member Avatar for cereal
0
430
Member Avatar for michael.sullivan.1422

What i need this to do is delete what is inside the div eliment already before it writes the the div again. If anyone can help me i give my thanks, :) <?php $file = "./test.html"; $imgs = glob("1/*.*"); $dom = new DOMDocument(); $dom->loadHTMLFile($file); $container = $dom->getElementByID("container"); if(count($imgs) == 0 …

Member Avatar for michael.sullivan.1422
0
162
Member Avatar for michael.sullivan.1422

Hi, I am just starting with php and i have been trying to get these two pieces of code to act right. Like they are shown everything works just fine. What i need this to do is find a certain html code on a page then write to the next …

Member Avatar for cereal
0
273
Member Avatar for best4earn

**I have open source PTC Script install. It was working f9 since last 3 months but yester day Its members login page shows a blank screen only while my all website is working properly. I can access to my admin panel without any restriction but members can't access . http://ptclicks.org …

Member Avatar for matrixdevuk
0
158
Member Avatar for RonKevinT.Manuela

I'm having a hard time thinking of a way to make a form for events.php(User adds an event by inputting Event Name and Event Date) I have made a table "Events"; with Fields 1. EventID int 2. EventName varchar 3. EventDate Date---->this is the problem mysql uses Year-Month-Day format. I …

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

Hello you all genius guyz once again i am in need of your help I am trying to create a page on admin to be able to see the profiles of all the users but filed to do that I have tried the while loop but still I am unsuccessfull …

Member Avatar for broj1
0
534
Member Avatar for Himesh_1

On a php page, main.php, I have an html form with post method. It starts out something like this: <form method="post" action="https://checkout.google.com/blah/blah/blah In addition to doing the post to checkout.google.com, I would also like to execute some php code on main.php. How do I code the form post action to …

Member Avatar for veedeoo
0
271
Member Avatar for RonKevinT.Manuela

I have here an integrated version of my code into a modal... This code gives undefined index id <!-- Edit-Page Modal --> <div class="modal fade" id="edit-pages" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> <h4 class="modal-title" id="myModalLabel">Edit Page</h4> </div> <div class="modal-body"> <?php …

Member Avatar for diafol
0
751
Member Avatar for zebnoon1

Dear friends, Please guide me I want to display data in PHP form from mysql database. my code is below <?PHP //connect to database $username = "root"; $password = ""; $database = "mydatabase"; $server = "127.0.0.1"; $conn= mysqli_connect($server,$username,$password,$database); // checkintin connection if($conn->connect_error){ die("".$conn->connect_error); } // select data $sql = "SELECT …

Member Avatar for zebnoon
0
4K
Member Avatar for Robin_4

Hi I am using opencart for my website...i am developing ecommerce website for online jewellery store...i want to know if its possible to change price of jewelery according to their actual daily market rates....automatically it should be....please help me

0
92
Member Avatar for rjusman90

<?php echo "<form action='' method=\"post\">"; echo "<table border='1'> <tr class='' > <th> P.Name </th> <th> P.Size </th> <th> P.Quantity </th> <th> P.Price </th> <th> P.Delete </th> </tr>"; $query ="SELECT * FROM `order_detail` WHERE `orderID` = $viewID "; $result=mysqli_query($connection,$query); while($row=mysqli_fetch_array($result,MYSQL_ASSOC)){ $Id=$row['ID']; echo "<tr>"; echo "<td> <input type=\"text\" name=product_name value=\"$row[prodName]\"> </td>"; echo …

Member Avatar for cereal
0
1K
Member Avatar for fireburner29
Member Avatar for rakibtg

I am using PHP Simple HTML DOM Parser to fetch urls, but i got an error while fetching links. Have a look at this script: $result = str_get_html($result); foreach($result->find('a') as $element) $result = str_get_html($result); $result = str_replace('http://', '', $result); foreach($result->find('a') as $elementa) echo $element->href; echo $elementa->href; Here I want to …

Member Avatar for sagar.shetty.946
0
2K
Member Avatar for Ripster

I am not new to programming, been doing it for years but I want to become pro at PHP so what are some good things to develop that will help me gain experience?

Member Avatar for veedeoo
0
150
Member Avatar for markii.borabon_1

I have simple php code here, where basically asking to display the value of query : <?php $table = "tbl_product"; /******************MULTIPLE QUERIES*******************/ if($tbl_code==999){$condition = " WHERE (category = 'wellington') OR (category = 'hivis') OR (category = 'tools') OR (category = 'waterproof') ";} else if($tbl_code==998){$condition = " WHERE category = 'wellington' …

Member Avatar for markii.borabon_1
0
277
Member Avatar for Sophia_1

Hi everyone,i have this mail notification whereby the receiver is selected from combobox. Upon combobox selection, the sender will click the submit button and the mail suppose to be sent to the receiver. But it seems that the combobox selection cannot be read.There is error message ie "Message could not …

Member Avatar for Sophia_1
0
213
Member Avatar for toxicandy

A while back [diafol](https://www.daniweb.com/members/120589/diafol) helped me get a searching script working. It works very well the only problem I am having now is getting it to return the searched values. Here's some context to walk you through the process. I have a search page, image attached as help1.png, which I …

Member Avatar for toxicandy
0
381
Member Avatar for janicemurby

hya all im after a wink or poke script for my site im wondering if someone has ever done one or know where can get one from it must be in php ty in advance jan x

Member Avatar for diafol
0
48
Member Avatar for Binty

**how to check data by multivalue of array checkbox in multi row one column. ** Hi, im need to checked data from database from checkbox multivalue of array, then insert into tabel in multirow one column. I try to insert same value (month) in student payment but the data still …

0
102
Member Avatar for RonKevinT.Manuela

This code works fine except for the fact that it doesn't display what I queried on posts tabs...only this part of the code with an id=pages displays my query..i checked if I have a wrong query but it works when I change the include("../includes/mainpanelpage.php") to include("../includes/mainpanelpost.php")...meaning only the code inside …

0
102
Member Avatar for kaprikorn07

Hi All, Please let me know the steps to install PHP, MySQL and PHPMyAdmin on RHEL machines.

Member Avatar for veedeoo
0
194
Member Avatar for engrjd91

Hello everyone! I have a problem in login system of my CMS. When I enter the correct Username and Password, the System is always showing Invalid Credentials, However I have checked in my Databse Tables that I am providing the correct username and password. I am not getting the problem …

Member Avatar for toxicandy
0
231
Member Avatar for annya

Iam creating a real estate website and I needed a search box on it. I don't know how to make it, I required users can search plot details by category example below Note: all the field's are using Drop down box to show the value 1st box : Location (India) …

Member Avatar for toxicandy
0
1K
Member Avatar for thirsty.soul

Hello DaniWeb, I want to develop PHP application, when there is Entry in specific table of database, it should send that information to subcribers on their emails, i am new to PHP. Suggest me solution to this problem. Thanks:

Member Avatar for diafol
0
150
Member Avatar for arafath077
Member Avatar for diafol
0
412
Member Avatar for Ventech_IT

Hi Guys i am currently building an app and using codeigniter as my framework and bootstrap to handle the Site so my question will be prashed in two parts. Im new to Codeigniter so please bear with me. Part One: Codeigniter Here is my current website header and i would …

Member Avatar for Ventech_IT
0
327
Member Avatar for davy_yg

Hello, I am trying to troubleshoot this problem using codeigniter. I am following a tutorial and getting this error after installing the ready-to-use-uncomplete-ci-script. Therefore, I still have to edit things out to make it work, which not all of them is being taught in the tutorial. ---------------------------- // all of …

Member Avatar for davy_yg
0
356

The End.