3,061 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 …

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 …

Member Avatar for borobhaisab
0
126
Member Avatar for oussama_1

VB.Net never meant for games! it's more recommended for software developement, but hey why not have some fun. If anyone out there is looking to create an Angry Birds Game-like or a Simulator for throwing an object, you've come to the right place, this code will give you great start/push …

Member Avatar for joy_731
1
3K
Member Avatar for Reverend Jim

My older son and I are both working through online videos teaching machine learning with python. All of the materials we have seen use Jupyter Notebooks. For those of you unfamiliar with Jupyter Notebooks, they are freaking awesome. At least they are when they work. We were using two laptops …

Programming machine-learning python
Member Avatar for Reverend Jim
0
72
Member Avatar for Vawana

Write a program that gives and takes advice on program writing. The program starts by writing a piece of advice to the screen and asking the user to type in a different piece of advice. The program then ends. The next person to run the program receives the advice given …

Member Avatar for Wadoster
0
93
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 ?

Member Avatar for Dani
0
74
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 …

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 …

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 …

Member Avatar for Dani
0
560
Member Avatar for iyiolamicheal46

Write a pascal program that accept the name and date of your birth the program should then output your name and date of birth in the format “your name and your date of birth” e.g Pascal your date of birth is 20/10/2023

Programming pascal
Member Avatar for Dani
0
92
Member Avatar for Joy joyce

I'm trying to make the picturebox collide with the others. I tried to do several things but they don't work. I spoke to my teacher and he said I should do something like this: PictureBox1.Left + PictureBox1.Width >= PictureBox2.Left And PictureBox1.Top + PictureBox1.Height >= PictureBox2.Top And PictureBox1.Top <= PictureBox2.Top + …

Programming vb.net
Member Avatar for Joy joyce
0
141
Member Avatar for mmarkgilbert142

Hi all! If I want to get fast results on the project, what would be more efficient: getting only senior engineers, or considering those who are less senior but result-focused? Why?

Member Avatar for compshooter
0
170
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 …

Member Avatar for pritaeas
0
74
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 …

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, …

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 …

Member Avatar for john_111
1
74
Member Avatar for help distressed

Even after formatting cells as numbers their sum adds up to zero. How to correct this anomaly?

Programming excel
Member Avatar for help distressed
0
72
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 …

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"; // …

Member Avatar for Adolfo_1
1
41
Member Avatar for shmoop

I have this https://imgur.com/a/SMqlcgF multiplexer and I have to make a program to get the truth table. How would I do this? I honeslty am so lost.

Member Avatar for rproffitt
0
128
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 …

Member Avatar for john_111
0
97
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

Member Avatar for rproffitt
0
56
Member Avatar for farman786
Member Avatar for Dani
0
51
Member Avatar for Layla_4

An equipment company wishes to create a database to support the hiring of tools and machinery to clients. The company has three types of equipment: power tools, such as drills and vacuum cleaners, plants such as excavators and scaffolding. Each piece of equipment is identified by a number. Power tools …

Member Avatar for Dani
0
156
Member Avatar for tiffani

Hey, guys~~ I have some questions about CSP Is simple hill-climbing a complete algorithm for solving CSPs? and if a CSP is only with unary constraints, is it sure to be solved? Thank you^~^!

Member Avatar for Dani
0
112
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" /> …

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.

Member Avatar for Dani
0
249
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

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 …

Member Avatar for Dani
0
63
Member Avatar for vegaseat

Things don't have to be black and white all the time. Use a Windows API call to add some color to your text output.

Member Avatar for Dani
2
70K

The End.