52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for brianbabu

my controller function public function destroy($id){ /* Deleting a product */ Product::destroy($id); // 1 way return redirect()->route('product.index'); } I tried using both the methods for deleting but it isn't deleting the records in MySQL although it does return with "true" Is there any configuration am missing? This is the form …

Web Development mysql php
Member Avatar for cereal
1
190
Member Avatar for Sonu_8

if user select on first select menu then it display a table if user select second select menu then it display paragraph both are show on same page so any one suggest me some jquery code .

Web Development display java-jsp javascript
Member Avatar for diafol
1
83
Member Avatar for PsychicTide

Hey guys, been a while since I've been here, but still the best source for help. Hoping you guys can help me with a checkbox/radio button scenario. HTML... <div style='margin-bottom:5px;'> <div style='float:left;width:49%;text-align:left;'><input class='toppingChecked' type='checkbox' id='top-".$row['id']."' value='".$row['topping']."' /> ".$row['topping']."</div> <div style='float:left;width:7%' class='lblLeft'> <input type='radio' class='css-checkboxLeft countToppingSelect' name='top-".$row['id']."' id='top-left-".$row['id']."' value='Cheese' /> <label …

Web Development javascript javascript-jquery
Member Avatar for PsychicTide
1
291
Member Avatar for trektrak

Is it possible to update "only the markers" instead of updating the whole map and markers... as the long lat updated in mysql database. Anything that I need to modified on the script below. <? $dbname =''; //Name of the database $dbuser =''; //Username for the db $dbpass =''; //Password …

Web Development api google-api html-css javascript
Member Avatar for Moein_2
1
333
Member Avatar for jaime.bentez

I received a database I need to restore on my local machine. The database is MySQL off a Linux box, is it possible to mount these files similar to how you would a .mdb file on a MSSQL Server? I am looking to mount them on my Windows based version …

Web Development mssql mysql
Member Avatar for jaime.bentez
1
1K
Member Avatar for aditd

I'm going to receive some info via email ( like: name, address, job, email, etc ). I want to make from each email I receive a post. So I need to make a standard template for the description area so that I could enter only the data that is new …

Web Development first-post wordpress
Member Avatar for Mohini_1
1
149
Member Avatar for london-G

We have a site which unfortuntely is not responsive. I was asked to make it responsive, however I am faced with a few options 1. Develop/design a new site espacially for mobile use and redirect it when needed 2. It seems that I can use CSS to make the website …

Web Development
Member Avatar for gentlemedia
1
185
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 …

Web Development php
Member Avatar for rubberman
1
1K
Member Avatar for Aeonix

`$allowedForUniversalUsage = htmlEntities($_GET["potentially_super_malicious_code"], ENT_QUOTES);` Does script above help me against XSS and MySQLi injection? My thoughts would be: **Protection against XSS: Yes** I mean. XSS means that someone would be able to input code, which will be shown publicly and will be executed, the `htmlEntities()`. It converts actual code into …

Web Development html-css
Member Avatar for diafol
1
275
Member Avatar for Stefce

Hello everyone, first of all i like to say that the new daniweb webdesign is AMAZING i really like it and hope this site it will become number one for programming and if it does please never BAN its users like stackowerflow do but thats other theme.. :D I have …

Web Development php
Member Avatar for Stefce
1
443
Member Avatar for jkon

Hello, I am writing this to warn you and because I haven't selected yet witch solution to choose , so your opinion is more than welcomed. The problem: in some version of iPhone / iPad software the cookies aren't separated by “;” but by comma and doubled. The first fatal …

Web Development ipad iphone php web-browser
Member Avatar for jkon
1
1K
Member Avatar for Jiby_1

how to do explode function in php after every 2nd commas question jiby, t, joby, p, expected answer jiby,t joby,p

Web Development php
Member Avatar for jkon
1
169
Member Avatar for vizz

How to flip multiple div when clicked on menus? Current code is working for only last two div's. [code in work on jsfiddle](http://jsfiddle.net/Lucdd/) **HTML** <ul class="nav"> <li><a href="#home">home</a></li> <li><a href="#about">about</a></li> <li><a href="#work">work</a></li> <li><a href="#contact">contact</a></li> </ul> <section class="container"> <div id="card"> <div class="front flipper" id="home">home</div> <div class="back flipper" id="about">about</div> <div class="front flipper" …

Web Development html-css javascript
Member Avatar for Jad4
1
985
Member Avatar for lewcris-17

I am using the ShieldUI jQuery grid component for a project of mine and wanted to apply some additional calculations on the data and display these results in the grid. Is there an easy way to do this with the component or is there something that I am missing?

Web Development javascript javascript-jquery
Member Avatar for baker-thomas
1
59
Member Avatar for OsaMasw

hello guys, I know you may heard about Telegram bot API, and I want to use their API to send texts and photos, telegram API differs from bots API here is the full document about API https://core.telegram.org/bots/api I want to send photo using curl but its fail always, sending text …

Web Development api php
Member Avatar for cereal
1
7K
Member Avatar for martin-nelson

I am using the ShieldUI jQuery chart plugin and have the following issue. I went through the basics of binding the control to static data and all works well. However, I would like to load live or dynamic data to the chart.

Web Development javascript javascript-jquery
Member Avatar for baker-thomas
1
142
Member Avatar for ravi142

Hello, I am used Wordpress-seo plugin by Yoast. When i share [article](http://gititsolution.com/angularjs-development) on facebook not allow me to share feature image. also check in [facebook degub](https://developers.facebook.com/tools/debug/) but not given solution. also ![attach](/attachments/large/4/19c2d2575845be8c218402bed55c6612.png "align-center") screenshot Suggest me solution. Thanks.

Web Development api php social-media wordpress
1
204
Member Avatar for grakovski

Hello, I search wysiwyg editor with fully support of HTML and PHP. I dont want extra <p> and <b> tags after <?php and before ?>. I prefer to work with PHP to get the content with $_POST. I dont want ajax methods. I test some editors all morning and cannot …

Web Development html-css javascript php ui-ux
Member Avatar for Gideon_1
1
699
Member Avatar for UK-1991

Hello I have created an attendance system but client requested to include a new fucntion iin it. Like there if employe comes and time in after the set time its should count late for that day means on a table if it is late so it will show 1 and …

Web Development php
Member Avatar for UK-1991
1
745
Member Avatar for Violet_82

Guys, I am a little confused with the usage of the keyword model/Model in MVC, so I was hoping somebody could clarify a few aspects of it (needless to say internet searches didn't really help that much). Given this model: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Ebuy.Website.Tests.Models …

Web Development asp.net
Member Avatar for Vijay_18
1
170
Member Avatar for ravi142

Hello, I am use this plugin https://wordpress.org/plugins/new-user-approve/ But in that there is no email notification given to admin when user approved. Is any solution for that. Thanks

Web Development email php wordpress
Member Avatar for ravi142
1
388
Member Avatar for Dipanjana

Hi . I have an employee table with fields Employee Id, Employee Name, Address,Salary , Department ID and department table with fields DeptID,DeptName. I have added a data grid control with the columns showing Empname , address , salary,DeptName and Edit and Delete columns . I have inserted image using …

Web Development asp asp.net
Member Avatar for AleMonteiro
1
1K
Member Avatar for anandatheerthan

I wanted to chain 3 selects and I got it working using this code. http://jsfiddle.net/FJFFJ/1/ The issue I now have is, how do I fetch the selected values from each dropdown in PHP? For example, the above creates 3 select boxes when the page is opened. When I click on …

Web Development html-css javascript-jquery php
Member Avatar for phpcake
1
4K
Member Avatar for Niloofar24

Hi. In my CMS, when i type a content for a new post in the textarea, like this: one two three four five six and then click the submit button, it will save in the db table like the way i have typed, every word in a separate line. But …

Web Development cms php
Member Avatar for Niloofar24
1
1K
Member Avatar for happygeek

It all started pretty well, with the announcement by Mozilla at the end of last month that the Firefox web browser would make the Internet a safer place by encrypting everything. That's everything, even those connections where the servers don't even support the HTTPS protocol. Developers of the Firefox browser …

1
451
Member Avatar for shashigowda

<?php session_start(); <?php session_start(); require('connect.php'); if(isset($_SESSION['username'])) { $dir="image/"; $file_name=$dir.basename($_FILES['uploads']['name']); $fileUpload=1; $imageType=pathinfo($file_name,PATHINFO_EXTENSION); $image= addslashes(file_get_contents($_FILES['uploads']['tmp_name'])); $image_name = addslashes($_FILES['uploads']['name']); $image_size = getimagesize($_FILES['uploads']['tmp_name']); if(move_uploaded_file($_FILES['uploads']['tmp_name'], $file_name)) { echo "uploaded succesfully" ; echo "<img src='$file_name' width='50px' height='50px'>"; $querry="SELECT image FROM users WHERE username='$username'" or die(mysql_error()); $result=mysql_query($querry) or die(mysql_error()); $row=mysql_fetch_assoc($result) or die(mysql_error()); $oldimage=$row['image']; unlink('directory/image/'.$oldimage); /* $deleter = …

Web Development image php
Member Avatar for shashigowda
1
9K
Member Avatar for Heanre

how to check if the database is empty? my point is that the first person will be the administrator. here is my code $query="SELECT staffID,name,surname,email FROM stafftable"; $do=$con->prepare($query); $do->execute(); $record=$do->rowCount(); if($record>0): is there a much better option for this?. thanks

Web Development php
Member Avatar for almostbob
1
154
Member Avatar for Mike Askew

Hi All We are having an issue where a WSDL is loading another WSDL into it when we call it. This call takes a while on the first call which normally causes failures across the application during testing. One option we are looking into is pre-caching the WSDL in IIS …

Web Development asp.net caching xml
1
311
Member Avatar for padma525

Hello Sir I want the php code to import the excel data into mysql . pls hel me Thanks

Web Development microsoft-office mysql php
Member Avatar for sankartomogo
1
3K
Member Avatar for terryds

What does PDO::query actually do ? Does it query the SQL ? If it queries the SQL, I think the data must be in the PDOStatement object as the result of the query.. But, what I find is just the SQL statement itself. So, I think it does nothing but …

Web Development php sql web-design
Member Avatar for cereal
1
236
Member Avatar for happygeek

Spring has been getting rather unseasonably hot for Apache users as far as security flaws go. First there was news of how the FREAK (Factoring Attack on RSA-EXPORT Keys) vulnerability could impact Apache. For more on FREAK see this [excellent analysis](http://blog.cryptographyengineering.com/2015/03/attack-of-week-freak-or-factoring-nsa.html) by Matthew Green, a cryptographer and research professor at …

1
312
Member Avatar for jonow

I know i just posted below, but i have another question. Is it dangerous to have the <head> tag be included using PHP include? Is it dangerous to have the <body> tag or <html> tag or doctype to be included using PHP?

Web Development php
Member Avatar for Squiva
1
2K
Member Avatar for WilliamJCook

Hi, I have a website, i need free web hosting service. i dont want to spend more money on web hosting. Give me some website which would of providing web hosting service for free.

Web Development
Member Avatar for cool0
1
391
Member Avatar for Violet_82

I just wanted to share this with the community, in case anybody finds it useful. I'm learning ASP.NET and started with Web Forms and now I'm moving slowly to MVC. As I have just started with MVC - which is significantly different from Web Form - I've been looking for …

Web Development asp.net pdf visual-studio
Member Avatar for pritaeas
1
266
Member Avatar for johnmartin.sanchez_1

Hello guys a newbie here! Kindly please someone clarify to me what I did wrong or did I miss something? 1st. I'm pretty sure my ISP provided me a static ip address. 2nd. My website is running fine within my home network even on different platforms though by visiting the …

Web Development php smartphone
Member Avatar for johnmartin.sanchez_1
1
1K
Member Avatar for McLaren

Hello, I don't understand why when clicking on map icons, sometimes the infowindow is blinking on firefox. It blinks when we use images on it. I tested on other browsers - opera, chrome, IE, even IE7 and it works well. Is this a firefox bug or what? You can see …

Web Development google javascript
Member Avatar for Jayen
1
491
Member Avatar for rpv_sen

Hi I am having two textbox, textbox1 is having autosuggest feature. i want to display related value based on textbox1 value. can any one pls help me. i collected the code from internet **Output Example** Report Name : PHP Report Version: It has to display the Verison from the database. …

Web Development javascript-jquery mssql php
Member Avatar for rpv_sen
1
463
Member Avatar for rajabhaskar525

hi all, i want to send sms to mobile phones from web site . is there any solution for this ....... give me idea!!!!!!!!.......

Web Development php
Member Avatar for Bishnoi_1
1
2K
Member Avatar for brianbabu

Hey guys, I'm having the most toughest time of my life to figure out a way to upload video files using PHP. I am able to upload images but not video files or zip files. I haven't put any file extension check right now. Here is my code, will you …

Member Avatar for hiren2927
1
389
Member Avatar for zebnoon1

Dear friends I am developing a php online registration form.I created login form which is without database becz admin user in only one to check enquiries.But some thing is wrrong here ..my login.php page code is below. <!DOCTYPE html> <html> <head> <title>Login page</title> </head> <center><h1>Admin Login</h1></center> <center> <fieldset style="width: 30%; …

Web Development php
Member Avatar for zebnoon1
1
223
Member Avatar for logonchristy

[CODE]How to echo html code in php echo not for email... <?php echo '<a href="http://digg.com/submit?phase=2&amp;url='. $_POST["url"] .'&amp;title='.echo $_POST["title"].'" target="_blank"><img src="http://www.virtualdolphintherapy.com/images/digg.png" alt="Digg" width="64" height="63" border="0" /></a>'; ?> how can i make this code to disply in browser page...[/CODE]

Web Development html-amp html-css php
Member Avatar for gptArun
1
1K
Member Avatar for nish123

jst a small Query..!! . . How to convert string to Date format.. So tht i can get result from database..!!! $date = "mm/dd/yy"; i want in yy-mm-dd format...!!! which function is used for it.!! . . waiting for positive reply..!!

Web Development php
Member Avatar for Aswad_1
1
8K
Member Avatar for s_shakib

Which platform you most prefer? I prefer wordpress. It's very easy to use and has many advantages.

Web Development wordpress
Member Avatar for brownskin7
1
224
Member Avatar for shammi.khan.73

I want to calculate EXACT past 30 days time period in php from now (for example 30 aug 14 23:06) to 30 days back (for example 1 aug 14 23:06). I wrote this where current datetime goes in $d1 and past 30 days datetime goes in $d2 but somehow i …

Web Development php
Member Avatar for kaleemullah360
1
4K
Member Avatar for shammi.khan.73

I want to insert a NULL value into my integer column. if ($startYear == "") { $startYear = NULL; } mysqli_query($con, "INSERT INTO Application (startYear) VALUES ('".$startYear."')"); Before you ask, I have checked if $startYear is ever empty, and it is, so this should work. When I run this query …

Web Development mysql php
Member Avatar for shammi.khan.73
1
6K
Member Avatar for nadiam

hi. i just want to know if that is possible. for example there are 5 blank textboxes with no specific id or class: <input type="text"> <input type="text"> <input type="text"> <input type="text"> <input type="text"> is there a way to loop through the textboxes and find the first blank textbox? say the …

Web Development javascript javascript-jquery
Member Avatar for Airshow
1
3K
Member Avatar for Violet_82

Hello guys, a while back I posted something about what was needed to build an overtime app that stored data permanently on the server (here is the post https://www.daniweb.com/web-development/php/threads/467433/change-content-of-html-page-with-php) and I was told to use PHP. I have to say I've never got around that, but now I'm looking into …

Member Avatar for Violet_82
1
890
Member Avatar for rafaelbelliard

This simple but extremely useful trick explains how to hande a radiobutton within an ASP.NET gridview, without having to fiddle around with the sometimes cumbersome beast that javascript is. To avoid postbacks, we'll be using ASP.NET AJAX's updatepanel. Basically, the logic is grabbing the sender (ie, the radiobutton checked), disabling …

Web Development asp.net
Member Avatar for h4ng4r18
1
591
Member Avatar for accra

Hey guys, i found this piece of code that is suppose to read a port on my server and write to a .txt file the gps data it get gets. am receiving nothing, am not not sure what the problem is, also am new to gps and php socket programming... …

Web Development mysql php socket-programming
Member Avatar for accra
1
915
Member Avatar for fariba123

i have a form with multiple checkbox. how to get the values that are checked. pls give a quick reaply. thanks

Web Development php
Member Avatar for bhagyashree.bhatt2
1
1K

The End.