39,402 Topics

Member Avatar for
Member Avatar for softwaredeven

hello guys ... i have a problem regarding on this error 1. Undefined index: d1 in C:\xampp\htdocs\final year project 2\collection.php on line 104 2. Undefined index: d1 in C:\xampp\htdocs\final year project 2\collection.php on line 120 3.Notice: Undefined index: d1 in C:\xampp\htdocs\final year project 2\collection.php on line 163 4.Notice: Undefined index: …

Member Avatar for almostbob
0
629
Member Avatar for garyjohnson

Here is a link to a list of college names and their .edu email http://pastebin.com/LND21t5F I want to take those lines of code and put the .edu part into one coloumn of a database and the name of the college into another coloumn. My database is structure like this (id, …

Member Avatar for broj1
0
120
Member Avatar for Simon180

Am trying to make a simple categorys script but am not having much luck . CREATE TABLE `portraits` ( `n` INT(11) NOT NULL AUTO_INCREMENT, `category` VARCHAR(25) NOT NULL DEFAULT 'Main', `collection_id` VARCHAR(5) NOT NULL DEFAULT '00000', `collection_name` VARCHAR(55) NOT NULL DEFAULT 'Free Gallery 1', `permissions` INT(1) NOT NULL DEFAULT '0', …

Member Avatar for broj1
0
2K
Member Avatar for rjusman90

<ul class="sf-menu"> <?php $menu_query ="SELECT * "; $menu_query .="FROM `menu`"; $menu_query .="WHERE `Status` = 'Enabled'"; $menu_query .="AND `ParentMenuID` = '0'"; $menu_result = mysqli_query($connection,$menu_query); while($row = mysqli_fetch_array($menu_result,MYSQLI_ASSOC)){ $PageID=$row['PageID']; $ID=$row['ID']; $LW=$row["LinkWidth"]; $menu_qry_for_page ="SELECT * "; $menu_qry_for_page .="FROM `page`"; $menu_qry_for_page .="WHERE `ID` = '$PageID'"; $menu_qry_for_sub ="SELECT * "; $menu_qry_for_sub .="FROM `menu`"; $menu_qry_for_sub .="WHERE …

Member Avatar for rjusman90
0
238
Member Avatar for zeeshan009

Hi All, I want to do pagination in php can any one tell how to do this?

Member Avatar for veedeoo
0
102
Member Avatar for toxicandy

I have the code: $VolunS = array('aro','clergy','intskills','interpt','bus','child','law','cpr','cpryn','data','security','emergency','computer','mechanical','administration','firstaid','faid','translation','translate','construction','basicclean','foodprep','animalcare','heavy','other3'); foreach($VolunS as $skill){ if($person["$skill"] != ""){ echo $person["$skill"] . ", "; //this is the line where echo is replacing $row .= } } And my problem is that I am adding an extra comma at the end of the list. The purpose of …

Member Avatar for diafol
0
163
Member Avatar for ravi142

Hello, I want help for recursive in php which like structure is attachment file.. [1] **Sire (Parent)** > Sub1 ->nChild.. > Sub2 [2] **Dam (Parent)** > Sub1 ->nChild.. > Sub2 ->nChild.. Do you have some example of code so its better for me. Thank You.

Member Avatar for Taywin
0
222
Member Avatar for Tunnleram

Hi, I'm getting an error that I generally understand in a situation that makes no sense to me. I was hoping for some direction - to see if anyone had any ideas. I have a profile page users can edit. When they do it uses user_action.php to commit those changes …

Member Avatar for Tunnleram
0
230
Member Avatar for Jake.20

Greetings pros, Can someone give me an idea on how to create a notification like the comments on facebook? What i have in hand is; The Counter increases when the database updates. But the counter only updates when the user hovers it. So What i need to do is. When …

Member Avatar for Taywin
0
497
Member Avatar for Azii

Hi, The question is regarding PHP and Javascript/Jquery. I have a php page which process the form data and displays it on SUBMIT. I need to collect that data into javascript. how should I proceed? **//Php file** <?php @session_start(); $uname = $_SESSION['sessionVar']; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> …

Member Avatar for Taywin
0
248
Member Avatar for AdanPuente

Hi! I would like to send SMS messages from Sharepoint when a server goes down. I have found this website that explains how to integrate it with this Ozeki NG SMS gateway. The software is ok when trying to connect the JDBC with my database, and this whole configuration looks …

Member Avatar for stultuske
0
254
Member Avatar for Ashok_10

hii, i want to create groups in user account with facebook application (php api) and i want to add friends of particular user to newly created group... Thanx

0
64
Member Avatar for ravi142

Hello, In php code generate output completly but when user click on 'PDF' Button then Output generate in PDF file or Click in 'Excel' button then generate Excel file as download. Thank You

Member Avatar for diafol
0
163
Member Avatar for steven.gray.10236

I hope someone can help me. I have been working on this for several days and can not figure it out. I made a blog and I am trying to get SEO friendly URLs. I have tried the mod-rewrite and it seems to have no effect. is there something else …

Member Avatar for edbr
0
533
Member Avatar for Safer Heart

I need to pay someone for a live counter that adds one each 1.7 seconds. https://www.daniweb.com/web-development/php/threads/68355/live-web-counter-increment-a-number-by-x-every-x-seconds It is the real time count of Heart Failures worldwide. Gary@HealthyHeartTissue.com Gary

Member Avatar for veedeoo
0
188
Member Avatar for bro_1

Rewrite rule get variable problem This example code RewriteRule ^(.*)/(.*)$ /media.php?hal=$1&id_image=$2 [NC,L]

Member Avatar for bro_1
0
89
Member Avatar for davy_yg

Hello, I am looking for a way to place an automatic . (dot) or , (comma) for every multiple of 3. I only find the mask to do so but it requires the user to input the exact amount of numbers: <script type="text/javascript"> $(function() { $.mask.definitions['~'] = "[+-]"; $("#numbermask").mask("999,999,999",{completed:function(){alert("completed!");}}); $("input").blur(function() …

Member Avatar for matrixdevuk
0
240
Member Avatar for Jonathan_9

I just need help regarding my problem in editing an imploded input text from the database: I have a dynamic input text which means that you can add more input field if you click the add more button. My problem is that when tried to edit those text fields the …

Member Avatar for hericles
0
1K
Member Avatar for terryds

I have a custom error-handler class (actually it's an exception handler) So, when an exception is thrown, then it'll be caught and stored in the error-handler class.. After all the execution, All the errors will be shown by the class.. Is it a good or bad practice ? Does it …

Member Avatar for matrixdevuk
0
179
Member Avatar for Azii

Hi, I have php page, 2.php, which collects the data and dispalys it from previous page , 1.php. In 2.php, I also have html and javaScript, which contains a button, and cerresponding onclick script, which opens the OUTLOOk to send the E-mail with given sendername and subject. But for body …

Member Avatar for broj1
0
205
Member Avatar for zebnoon1

Dear friend, i have 2 tab 1) atab 2) qtab.. when i put question and options answers .. i use three forms qset.php, Ans.php and result.php here are code what i want that email of user updated after click button submit code is below ans.php <?PHP include "conn.php"; //session_start(); ?> …

Member Avatar for broj1
0
232
Member Avatar for tNicknames

How I can display elements of the following object ? e.g : data -> percent_off As I stored following like : $input = file_get_contents("php://input"); $retun_val = json_decode($input); stdClass Object ( [id] => evt_151H4qEfYJJpTpgqdg5eQvIK [created] => 1416575036 [livemode] => [type] => coupon.created [data] => stdClass Object ( [object] => stdClass Object …

Member Avatar for broj1
0
175
Member Avatar for prash21m

Hi guys ! I am using rewriting rules to redirect some URLs, but search engines crawling both URL (Rewritten and Real URLs). For example : **Real URL :** www.catchcoupons.in/storecoupon.php?cid=Flipkart **Rewritten URL :** www.catchcoupons.in/coupon/Flipkart.html Search Engines are crawling both URLs, even i want search engines to index only Rewritten URLs (http://www.catchcoupons.in/coupon/Flipkart.html) …

Member Avatar for prash21m
0
557
Member Avatar for davy_yg

Hello, In my index.php file front page at first, it has a xampp logo - then in order to erase it I have to place this code: <!-- Favicons --> <link rel="shortcut icon" href="img/icons/favicon_.ico"> <link rel="apple-touch-icon" sizes="114x114" href="img/icons/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="72x72" href="img/icons/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" href="img/icons/apple-touch-icon.png"> by miss leading the favicon …

Member Avatar for diafol
0
6K
Member Avatar for mak96

[CODE=php] <?php //get the variables $var = $_POST['query'] ; $trimmed = trim($var); $table = $_POST['table']; //make connection $conn = mysql_connect('localhost','root','123') or die("Error:".mysql_error()); mysql_select_db('sutilities',$conn) or die("Error:".mysql_error()); //delete temp search table $del_table = "drop table search"; #mysql_query($del_table) or die ("Error:".mysql_error()); // Create a MySQL table in the selected database #mysql_query("CREATE TABLE search( …

Member Avatar for honeymehta
0
871
Member Avatar for vaultdweller123

hello people daniweb....just want to ask honest oppinions from you guys, because this has been bugging me for years. I've been a PHP developer for 5 year using windows. So far so good. i am able to accomplish the task at hand. but there's always back of my head saying, …

Member Avatar for vaultdweller123
0
178
Member Avatar for saadi06

Hi, I have three folders in my project named as apache, php and mysql. I want to update my php,apache and mysql to latest version but I do not want to reinstall all the system again. My system works in this way that we copy all the folders and install …

Member Avatar for veedeoo
0
505
Member Avatar for Ali_41

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a5247065_funmaza'@'localhost' (using password: YES) in /home/a5247065/public_html/includes/connect.php on line 2 When I uploaded my website on web hosting that error occurs...plzz help me

Member Avatar for minitauros
0
149
Member Avatar for ceeandcee

I have two tables that I would like to work together (stories and events). Stories is a table that is used to produce articles on a website and events is a series of events put into a table. I would like to be able to add events to story based …

Member Avatar for ceeandcee
0
201
Member Avatar for krga86

My code on website is not validate on W3 Validator. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd"> <html> <head> <title> Contact </title> <meta name="description" content="Inzenjerski portal,baza znanja,vesti,seme,desavanja"/> <meta name="keywords" content="Automatika,PLC,frekventni regulatori,arduino"/> <meta name="author" content="Nikola Krga"/> <meta name="robots" content="noindex, nofollow"/> <link type="text/css" rel="stylesheet" href="about.css"/> </head> <body> <table …

Member Avatar for diafol
0
98
Member Avatar for stokie-rich

Hi people I need some advice off you please. I'm creating a quiz for the website that I'm creating for my portfolio to help me to get a graduate job. I want to get 20 questions (at random) I think I have got this sorted now. But when I try …

Member Avatar for stokie-rich
0
3K
Member Avatar for ToniSoft

I am using a Crud plugin and i am having some problems. After i modifie it for my needs i ma having a problems creating a records. Error code is in line 186. this is my code please help.. <?php require 'database.php'; if ( !empty($_POST)) { // keep track validation …

Member Avatar for ToniSoft
0
216
Member Avatar for davy_yg

Hello, I am trying to protect my xampp with password: by accessing this url: http://localhost/security/xamppsecurity.php This is the view : http://www.innovation.web.id/xampp-security.jpg I wonder why my xampp security view in localhost is different from my xampp security view in the server? I already re-install my xampp 4 times (these are the …

Member Avatar for veedeoo
0
991
Member Avatar for myfit

Hello all, I want to preview an image before it upload and it can remove preview (similar cancel select image). I only want to up 1 image, preview it and can remove it. I have code in that link and I don't know why it don't preview image, I can't …

Member Avatar for myfit
0
148
Member Avatar for Mario_4

Hi, This is is my php: <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { echo '<h1>' . $_POST['word'] . '</h1>'; echo '<p>' . $_POST['sentence'] . '</p>'; } else { echo 'Invalid request'; } ?> How can I get the echo displayed in a CSS box or Javascript popup window. Any help appreciated. Thanks

Member Avatar for diafol
0
165
Member Avatar for dominic.ceraso.9

<?php require_once 'app/init.php'; ?> <?php echo View::make('header')->render() ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1499626773621182&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <?php if (Auth::check()): ?> <div id="body"> <?php // Walid $facebook_user_id = false; $facebookConfig = …

0
86
Member Avatar for tarunap
Member Avatar for diafol
0
89
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the following prepared statement and I am having problems displaying data from my test db Can someone help me out please. $STM = $dbh->prepare('SELECT * FROM tbl WHERE var = :lsecure'); $STM->bindParam(':lsecure', $var); $STM->execute(); $count = $STM->rowCount(); $row = $STM -> fetch(); if($count > 0){ foreach($results …

Member Avatar for matrixdevuk
0
405
Member Avatar for terryds

Can you tell me what's the right way to benchmark script ? I've profilled it by using Xdebug, but the result always changes And, when i use memory_get_usage, it gives me a definite result.. But, is it right for me to say that the less memory it use, the faster …

0
71
Member Avatar for annya

Dear Friends iam facing a problem in the pagination. It was working fine in my offline wamp server when i moves it to the online it was showing Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in /home/pps/public_html/news_and_events.php on line 10 Please help me I have gone through …

Member Avatar for matrixdevuk
0
918
Member Avatar for myfit

Hello every one, I want to select a image and preview an image before I click button Upload, I can do it and it done but I want to have a event cancle select this file by click on <a></a> or click on button, it may be look like post …

0
72
Member Avatar for OtepTheThird

Im new to PHP, i just want to know if theres any rule in php in terms of single statement multiple lines. for example in VB.Net we uses "&_"(w/o the quote) to tell vb.net that it is a single statment and it has a continuation. is there any in php? …

Member Avatar for matrixdevuk
0
512
Member Avatar for zeeshan009

Hi All, When i am trying to open any php file by Macromedia Dreamweaver 8, i am getting an error. " Please reinstall your software" A problem was detected with your application. Please reinstall this software to correct the problem" I had reinstalled and installed it , but issue still …

Member Avatar for diafol
0
159
Member Avatar for zebnoon1

Dear firnds, I want to upload my php Forms and database...I am using godaddy.com i have my login and pwd.... I uploaded Survey project Php files and database.please,check my conn.php file code is below <?php $username="mydbphp@182.50.131.34"; $password=""; $server="166.62.8.51"; $db="mydbphp"; $conn=new mysqli($server,$username,$password,$db); if(!$conn){ echo "Connection not established"; } ?> please, suggest …

Member Avatar for zebnoon1
0
517
Member Avatar for myfit

Hi all, I want to make a Auto Complete Text Input like a list, it similar or the same as form post status of facebook in below picture, I known it can make by ajax and jQurey, so who know link demo, link guide, or example to make it, may …

Member Avatar for myfit
0
108
Member Avatar for lorenzoDAlipio

I need to know how many people are interested in learning how to write a desktop application using PHP? If I get enough interest on this topic, then I will write a simple tutorial on how its done. We (veedeoo and me) were experimenting on Desktop apps utilizing the [Daniweb …

Member Avatar for diafol
3
257
Member Avatar for OtepTheThird

Hi its me again =), See the code below: <style> td{ width:150px; } </style> . . . echo'<table> <tr> <td>TITLE</td> </tr> </table> . . . Im trying to style the <td> width in css but php doesnt recognize it. I've also tried this <td style="width:150px">TITLE</td>. Do you have any idea …

Member Avatar for OtepTheThird
0
116
Member Avatar for davy_yg

Hello, I am trying to control the table width for the form text and input box. I can't even control the main table width with this code: <table border="1" style="width: 10%;"> the width is still too large. I cannot make it smaller. Evenif I change the percentage or pixels into …

Member Avatar for hericles
0
155
Member Avatar for janicemurby

hya can someone take a look at this coding its for view profile and it has a on/offline on it when i log in it shows offline and nothing echos through see pic ![c6bd41d477df56cf7543dd36a623ada0](/attachments/large/4/c6bd41d477df56cf7543dd36a623ada0.png "c6bd41d477df56cf7543dd36a623ada0") <?php include("config/db_connect.php"); $profid = $_GET['profid']; // code for user details $query = mysql_query("select * from …

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

Hello guys does any one knows about the wordpress. I need to create a referal program in wordpress like someone wants to register on the website and been reffered by someone he or she would be required to provide a referall code so we would be able to see who …

Member Avatar for lorenzoDAlipio
0
139

The End.