905 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Cindy_11

I have a database which contains authors and books. Some of those authors and books contain slashes in the name or title fields. When I query the database for authors, it matches just fine, with or without slashes. When I query books, however, it only finds books without slashes in …

Web Development database mysql php
Member Avatar for Dani
1
113
Member Avatar for borobhaisab

Helle Fellow Programmers! Unlike last time where I was checking for matching rows count using mysqli_stmt_rows_count(): https://www.daniweb.com/programming/web-development/threads/539306/login-with-prepared-statements-mysqli-stmt-num-rows-function On this thread, I am checking for matching rows count using Sql's COUNT function. This means, both threads are not same so mods do not close them. Issue is, on both threads, no …

Web Development count mysql php
Member Avatar for borobhaisab
0
126
Member Avatar for borobhaisab

This fails: ```` $password_hashed = password_hash(trim($_POST['password'],PASSWORD_DEFAULT); ```` This also fails: ```` $password_hashed = password_hash(trim($_POST['password'],PASSWORD_DEFAULT)); ```` This works: ```` $password_hashed = password_hash(trim($_POST['password']),PASSWORD_DEFAULT); ```` But I thought trim( did not have the closing bracket. Manual shows it does. So this is why above 3rd sample working ?

Web Development php trim
Member Avatar for Dani
0
75
Member Avatar for borobhaisab

I need to check db for matching user credential on login script. There must be atleast one matching row. Else, script should alert user not registered. Need to check the db using the function ````mysqli_stmt_num_rows()````. Assignment is to list all the various valid ways this function can be used to …

Web Development mysql mysqli php
Member Avatar for Dani
0
42
Member Avatar for borobhaisab

Hi, I got this long version code: ```` if(ISSET($_GET['limit'])) { $limit = intval($_GET['limit']); } else { $limit = intval(1); } ```` I can shorten it, like this and it works: ```` $limit = ISSET($_GET['limit'])?intval($_GET['limit']):1; ```` Now add an echo and try shortening it. And I get error. I got this …

Web Development condition php statement
Member Avatar for Dani
0
33
Member Avatar for Stefce

I want to count and show live users counter on my page. My url structure looks like this `domain.com/miningbot?id=pool-v9w1x2y` The users which are inside the parameter should be counted, updated and displayed to the user. Also, the parameter can be changed. I have asked ChatGPT to write me some starting …

Web Development php
Member Avatar for Dani
0
579
Member Avatar for mizmy

I added checkbox in my webpage using: <asp:TemplateField> <ItemTemplate> <asp:CheckBox ID="chkRow" runat="server" /> </ItemTemplate> </asp:TemplateField> But then my calculation of price*quantity having error where it display the total in another column and row. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript"> function CalculateTotals() { var gv = document.getElementById("<%= GridView1.ClientID %>"); var …

Web Development javascript
Member Avatar for pritaeas
0
75
Member Avatar for borobhaisab

Hiya, Which of these IF CONDITION codes are valid ? And can you rank the valid ones according to your choice by giving reasons to your choices ? Thanks! 1. ```` $conn = mysqli_connect("localhost","root","","buzz"); $sql = "INSERT into users (username,email) VALUES (?,?)"; if($stmt = mysqli_prepare($conn,$sql)) { mysqli_stmt_bind_param($stmt,"ss",$_POST[username'],$_POST['email']); if(!mysqli_stmt_execute($stmt)) //FIRST CHOICE …

Web Development mysqli php
Member Avatar for Dani
0
73
Member Avatar for borobhaisab

Hiya, Is this: ```` function unset_sessions() { //All Sessions on the script .... UNSET($_SESSION['registration_form_display']); UNSET($_SESSION['registration_form_button_clicked']); UNSET($_SESSION['domain']); //Form Input UNSET($_SESSION['domain_email_account']); //Form Input UNSET($_SESSION['domain_email']); //Form Input UNSET($_SESSION['password']); //Form Input UNSET($_SESSION['errors']); Displays errors underneath the form. echo __LINE__; echo '<br>';//DELETE } unset_sessions(); ```` the exact same as this: ```` session_destroy(); ```` I ask, …

Web Development form php submit
Member Avatar for Dani
0
53
Member Avatar for gr8fuldaniel

Hi, I'm looking for a replacement for FREE web hosting, since Vista Print bought Webs.com and ruined it for everyone. I cant find a place to transfer my HTML code without monthly Domain and hosting fees. I started this website back in the old Geocities days, then Yahoo bought the …

Web Development images javascript upload
Member Avatar for john_111
1
74
Member Avatar for bprosic

Hi all, I'm having difficulties to pass Props (Label text) to Combobox component. I usually use same forms for adding and editing Data. When it comes to editing, If I use lot of arrays to iterate first and then pass right information, I get stucked for hours like here. I'm …

Web Development javascript react-js
Member Avatar for Dakota_2
1
59
Member Avatar for Adolfo_1

Hi.. I would like to send an order confirmation email with the cart details. But it doesn't show the string in php, only html. My script: $to = 'adolph@site.it'; $subject = 'New Order'; $from = 'info@newsite.it'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // …

Web Development html php phpmailer
Member Avatar for Adolfo_1
1
45
Member Avatar for mizmy

I have 5 textboxes. How to calculate the total of price entered by users? Users need to enter quantity in each textbox and then it will calculate with price that already display or show in label (quantity*price). The result will be showed in textbox readonly. How to make it? <pre …

Web Development asp.net
Member Avatar for john_111
0
106
Member Avatar for jmconsultants

I want to populate report in browser, i prepare this report in i-net clear report, and report file having extension of rpt. I also want to pass parameter

Web Development javascript mysql php
Member Avatar for rproffitt
0
56
Member Avatar for farman786

What are some essential skills every web developer should have?

Web Development asp.net javascript mysql
Member Avatar for Dani
0
51
Member Avatar for davit_91

<!DOCTYPE html PUBLIC > <html> <head> <title></title> <link rel="stylesheet" type="text/css" href="css/main.css" /> <script src="js/jsimageslider.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href= "css/generic.css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> </head> <body> <div id="dm1"> <div id="dm1Inner"> <h1 class="first">hello people</h1> <div id="sliderFrame"> <div id="ribbon"></div> <div id="slider"> <img src="images/sl-1.jpg" alt="Welcome to Design3d.nl" /> <img src="images/sl-2.jpg" alt="Customizable Transition Effects" /> …

Web Development javascript
Member Avatar for Dani
0
3K
Member Avatar for increase

I want to pass two variables in a php url at present I have $line = "<a href=\"$click?$namehref\"><font color='red'>$name</font> </a>"; When I click the link it displays the $click variable, but does not then pass to $namehref which is an mp3 link, what would the syntax be to achieve this.

Web Development php
Member Avatar for Dani
0
250
Member Avatar for Maycon_1

Hello guys, how are you all doing ? Guys there someone there, who is interested in building a project together ? to connect exchange ideas and knowledge

Web Development javascript jquery php
Member Avatar for john_111
0
88
Member Avatar for Stelian_1

Is there a way to get the data from an registration form by counting the inputs and textfields but excluding the submit and hidden ones? Lets say I have a form with 5 input fields that contains the data for registration can I make an array for all so when …

Web Development php
Member Avatar for Dani
0
63
Member Avatar for borobhaisab

Howdy once more, Just got another question on Sql and Php Prepared Statement. How would you confirm a successful row insertion to a mysql table ? Which one of the following lines would you add the IF condition to in order to check insertion successful or not ? 1). mysqli_stmt_execute() …

Web Development mysql php
Member Avatar for borobhaisab
0
96
Member Avatar for sam023

i want to know is there any inbuild function to add spaces in javascript after particular interval..!!? there is string '00009999' i want to add blank space 0000 9999 after every 4 digits.?

Web Development javascript
Member Avatar for Dani
1
33K
Member Avatar for Stefce

I am having a problem passing a `$_POST[]` parameter to another file via the URL. Look at the line 34 and 138. The line 34 is getting the URL parameter in a POST and line 138 should pass that same parameter value to the other file, but i get an …

Web Development php
Member Avatar for Stefce
0
99
Member Avatar for Stefce

I have this code <?php // Connect to the database $servername = "localhost"; $username = ""; $password = ""; $dbname = ""; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } // Get the user's IP address $user_r_ip …

Web Development php
Member Avatar for Dani
0
57
Member Avatar for David_140

I am not that much of an expert in PHP as it has been few months since I started playing with it. Currently I am working on creating a basic CRUD operation in PHP. I follow this tutorial on CRUD in PHP (https://www.cloudways.com/blog/execute-crud-in-mysql-php/ ) to create it on a local …

Web Development mysql php
Member Avatar for Rose_17
0
482
Member Avatar for Krisha03

Hello There, I am looking for MUI React-based admin template in the TypeScript version for my project. Can you guys suggest some React Admin templates that are comprehensive and easy to use? I really appreciate any help you can provide.!

Web Development javascript table
Member Avatar for anandpatel04
0
201
Member Avatar for Abhinesh_1

I am making a edit blog option for a website. I am done with the code. Whenever i click the edit button it redirects to the form action file and shows a blank page. Here are my codes. # edit-blog.php # <?php include_once('header.php'); include_once('sidebar.php'); include_once('controller/BlogController.php'); $_SESSION['ap-old']['title'] = $_POST['title']; $_SESSION['ap-old']['short_description'] = …

Web Development php sql
Member Avatar for Stelian_1
0
104
Member Avatar for borobhaisab

Hi, Seem to be having problem with the password_hash() as it keeps changing the hash value of the same password. Why ? When each time I refresh the page, the $password_hashed value changes! Why ? The $password is still the same who's value is: '123'. And password_verify($password,$db_password) always echoes '1' …

Web Development hash password php
Member Avatar for Biiim
0
236
Member Avatar for sheeview

im trying to get PHP operate well with javascript. I have looked on internet and put all the solution inside at once but none work. I want to create a cross-site AJAX request but i cant seem to be able to have session_start() stick. I have this PHP code on …

Web Development ajax javascript php
Member Avatar for Stelian_1
1
304
Member Avatar for sinil.jacob

Looking for a web application development company for an enterprise-based web app project. Can anyone suggest me an experienced web app development organization?

Web Development javascript
Member Avatar for Alenk
1
205
Member Avatar for Christopher_45

According to me, some important elements in HTML5 that support media are <video>, <embed>, and <source>. I would like to know something more about it from you guys.

Web Development html
Member Avatar for Dani
0
92

The End.