39,320 Topics

Member Avatar for
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
148
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
275
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
210
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
354
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
46
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
100
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
98
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
189
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
228
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
410
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
353
Member Avatar for koneill

All, I have one question and one issue with my below php email script - the script currently has the two images side by side when displayed in the e-mail - I'd like the CSS z-index values as well as the transformation to be picked up in the HTML e-mail …

Member Avatar for koneill
0
299
Member Avatar for engrjd91

I am having the following errors after running this code for my login. **Notice: Undefined index: user_name in C:\xampp\htdocs\fyp\cms\cms.php on line 52 **Notice: Undefined index: user_id in C:\xampp\htdocs\fyp\cms\cms.php on line 54**\ login.php <?php session_start(); ?> <?php include_once("../includes/connection.php"); ?> <!DOCTYPE html> <html lang='en'> <head> <meta charset="UTF-8" /> <title> HTML Document Structure …

Member Avatar for darkagn
0
238
Member Avatar for adishardis

I need to get the earliest date and the latest date in the below query. Not sure if the while loop is necessary to achieve this though? I don't need min/max for every tbl_type but the lowest of them all and the highest of them all. // get min and …

Member Avatar for adishardis
0
5K
Member Avatar for Dieter_1

I have just installed xampp on a windows 7 os and downloaded my working web application into C:/xampp/htdocs/myweb calling the website with localhost/myweb brings up the home page try calling a specific page like localhost/myweb/about.html is redirected to localhost/xampp/ calling a specific page with localhost/myweb/index.php?include=about shows the correct page I …

Member Avatar for Dieter_1
0
9K
Member Avatar for Rokas.Rud

Hello. So I wrote A-star pathing algorith. It is working fine, however it is to slow, if distance between start and finish is big. This "big" isn't really that big. It may take even 30seconds in 11x11 grid... I am looking for some optimization ideas of proffesionals here. Code: <?php …

Member Avatar for lorenzoDAlipio
0
186
Member Avatar for Dani

Is the check: if (!isset($_SERVER['HTTPS']) OR empty($_SERVER['HTTPS'])) { // We are NOT using SSL } a fool-proof way of checking if we are NOT using SSL with PHP/Apache? I understand that IIS sets to 'on/off' but that's irrelevant for me. I am just wondering if I additionally need to check …

Member Avatar for lorenzoDAlipio
0
306
Member Avatar for phfilly

Hi all, I'm not too familiar with Ajax but I believe I grasp the basics. So I'm sending an id which I retrieve from an element to a php page but I can't seem to retrieve the id being send. My javascript: function ListPart(part) { var imgdata = part; $.ajax({ …

Member Avatar for jstfsklh211
0
288
Member Avatar for vani krishnan

The API was working fine for the past few months ago..But now I'm getting a notice in that output and message is not delivered. The notice is -" Undefined offset: 1 in C:\wamp\www\sms\sms trial.php on line 90" line 90 in my code is $userID = $match[1]; please help me to …

Member Avatar for pritaeas
0
1K
Member Avatar for Bensirpent07

I'm trying to make my button change from saying "Submit" to "Submitting" when it's clicked. But it's for a form so if something like e-mail validation fails I want it to change back to saying "Submit". Here is the code I already have if you would like to take a …

Member Avatar for Bensirpent07
0
381
Member Avatar for davy_yg

Hello, I am trying to create a table which has a sort feature. I mean whenever someone click the table header, the table content must be sorted based on the header. how to do so? Here is my table codes: index.php <!-- Insert New --> <br><br><br><br> <div id="inputberita"> <p>&nbsp;</p> <p>&nbsp;</p><center> …

Member Avatar for davy_yg
0
342
Member Avatar for sammry

Hi, I use the following code from phpmyadmin to reset one of my table's auto increment value from 1. SET @count = 0; UPDATE `mytable` SET `mytable`.`id` = @count:= @count + 1; ALTER TABLE `mytable` AUTO_INCREMENT = 1; But I want to run this query from PHP file and set …

Member Avatar for matrixdevuk
0
2K
Member Avatar for janicemurby

hya i have a website built in php html and javascript and at the moment when a couple registers they go straight to a single persons profile page and i want to going to a couples profile page where both there information is stored how can i do this any …

Member Avatar for veedeoo
0
104
Member Avatar for patk570

Hello, I have an array that returns city and state in this format: Detroit,MI I want it to be shown as Michigan/Detroit is there any way of doing this? Here is my foreach code: foreach ($i['popularCities'] as $a => $value) { echo '<li>' . $value . '</li>' . PHP_EOL; } …

Member Avatar for diafol
0
161
Member Avatar for zebnoon1

Dear friends, I have an other problem in login form...my code is below.. //********************************connect to database and check**************************************************** $username = "root"; $password = ""; $database = "mydatabase"; $server = "127.0.0.1"; $conn= new mysqli($server,$username,$password,$database); // checkintin connection if($conn->connect_error){ die("connection failed:".$conn->connect_error); } //****************fetch the information from database for match username and password …

Member Avatar for zebnoon1
0
238
Member Avatar for RonKevinT.Manuela

I am able to delete the file from the database but not the file found on a folder associated with it...is there somethign wrong? <?php include("../includes/mysqliconnect.php"); include("../includes/config.php"); if(isset($_GET['delpost'])){ $delpho = $mysqli->query("SELECT * FROM photos where imageID=$imageID"); $run=mysqli_fetch_array($delpho); $imageName=$run['imageName']; $dir = '/uploads'; unlink($dir.'/'.$imageName); $stmt = $db->prepare('DELETE FROM photos WHERE imageID = …

Member Avatar for mark.suner
0
339

The End.