2,720 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for sols4comp

I have created a php form that connects to a MySQL database. This is working fine however I have added validation and this doesn't appear to be working correctly and still posts to the results to the database regardless of if they are validated or not. Any ideas?

Member Avatar for Dani
0
150
Member Avatar for Hithendra_1

Mr.X owns a small business in a region with poor law-and-order. Recently his warehouse has been plagued by thieves. Gangs of thieves raid over his warehouse from time to time, stealing his raw material, affecting his business. He has studied the occurrences and noticed it that they are cyclical. Assuming …

Member Avatar for Dani
0
84
Member Avatar for Passy

function username_exists($username){ global $db; $sql = "SELECT 'username' FROM users WHERE 'username' = '$username'"; $result = mysqli_query($db, $sql); confirmquery( $result ); if (mysqli_num_rows($result) > 0) { return true; }else { return false; } } if(username_exists($username)){ $error['username'] = 'Username already exists'; }

Programming php
Member Avatar for Dani
0
76
Member Avatar for Eugene_15

I need to refresh my div tag (galleryadv) after ajax post submits to prepare for the next submit. But after submit successfully and refresh, my customized selection tag always changes to the default selection tag. would need some help to resolve my customized selection tag background color, it changes back …

Programming javascript jquery
Member Avatar for Dani
0
71
Member Avatar for Thanh Phong

My experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to help me out I would greatly appreciate it! class ByteReader(object): """ Reads bytes from …

Member Avatar for GooGooseGooey
0
36K
Member Avatar for Sahilsahni

please if anyone could tell me, how it would be possible, i want to save the content of a uploaded word document in database field with php, no problem with encrypted file like ( ´V z2Ö<Ö<ôÿÿÿÿÿÿ·üü?????ÿÿÿÿSSS8‹DÏLS¥9à1) as it shows if you open a word document in a browser. just want …

Member Avatar for ishu_1
0
4K
Member Avatar for davy_yg

Hello all, I am looking for a free vpn to view a laravel video tutorial in the forum. Any recommendation? Which is not a trial version? Is there any? As long as it works. Thanks in advance.

Member Avatar for scottoconnor956
0
758
Member Avatar for johnnysnowman38

Hi there, Not sure if I am in the right place, but I wanted to ask where I can access a csv file for all the streets in Belgium?

Member Avatar for rproffitt
0
443
Member Avatar for Gurbachan

'call it like List1.Clear List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 12) List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 2) List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 4) List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 1)

Member Avatar for rproffitt
0
192
Member Avatar for Passy

**my functions.php file** <?php function confirmquery( $result ){ global $db; if(!$result){ die("OUERY FAILED .".mysqli_error($db)); } } function redirect($location){ return header("Location:". $location); } function is_admin($username = ''){ global $db; $sql = "SELECT user_role FROM users WHERE username = '$username'"; $result = mysqli_query($db, $sql); confirmquery( $result ); $row = mysqli_fetch_array($result); if ($row['user_role'] …

Programming php
Member Avatar for rproffitt
0
189
Member Avatar for Abdul_68

Write a program to sort an array of integers in ascending order by using pointers Write a program to sort an array of integers in descending order by using pointers

Programming c++
Member Avatar for rproffitt
0
150
Member Avatar for swathi sajja

I am using windows media player 9 and set the stretchtofit property to true.I find black areas on left and right side of video.My system has windows 10 and is set to 1280X720 resolution. I am using vs 2013. ![Sample.jpg](https://static.daniweb.com/attachments/4/45c8397429d9a2648379e71e0fa77848.jpg)

Member Avatar for rproffitt
0
108
Member Avatar for Alex_112

I'm in the process of developing a free open source online platform/course for complete beginners to teach themselves coding in Python. See https://github.com/alexmojaki/futurecoder for more information or try out the demo at https://futurecoder.herokuapp.com/. It's completely interactive and has several awesome features, including three dedicated debuggers, gradual hinting and solution revelation, …

Member Avatar for rproffitt
0
52
Member Avatar for C_Oleyers

So im actually creating a fastfood menu in which save how many times a button been clicked as a variable. So I can multiply it to its value. For example if i click btnChicken a variable will count how many btnChicken been clicked then it will multplied on the amount …

Member Avatar for Mike_74
3
447
Member Avatar for Violet_82

Hi there, I've come across an issue while trying to get all the records from a SQL database in java. A bit of necessary introduction here. I'm not using any framework just JDBC and the getAllBooks method is part of a REST call. The failing method is essentially doing this: …

Member Avatar for Violet_82
1
540
Member Avatar for emin_2

public bool Kayit_Ekle() { sorgu = string.Format("Insert Into [{0}] ([SERVİS FORM NO],[ÇAĞRI NO]) Values ({1},{2})", sheet, formno,cagrino); cmd = new OleDbCommand(sorgu, Baglan()); cmd.Parameters.AddWithValue("@{2}",cagrino); int etkilenen = cmd.ExecuteNonQuery(); if (etkilenen == 0) { return false; } else { return true; } } Hello there, I am writing recording program with c …

Member Avatar for Jack Green
1
298
Member Avatar for Aarón_23

I am trying to use many employees, but I do not how I can use case in my arrays. Could you help me, please? ---- program StaffSal(input, output); uses Crt; const SalRate = 0.1; A = 150; B = 85; C = 95; D = 120; type Employee = record …

Programming pascal
Member Avatar for pritaeas
1
106
Member Avatar for stefh

Hi every1, can anyone lead me to the end of the tunnel in which Cordova had pushed me in? I just want to see the light, at the end of the tunnel. I've read ,re-read, and re-read again the doc, and I've explored dozens of pages according to what Google …

1
56
Member Avatar for Violet_82

Hi all, I have a question about updating two values in a sql table using a subquery. My database is called books and the below table books too: id title author location_id 11 Tera Netrear 4 14 Disser Bubu 1 15 Tenno Puoio 4 16 Oban Tyrone 5 18 Sisnobi …

Member Avatar for Violet_82
0
352
Member Avatar for student.09

Hi, I have a bit of a problem of understanding of what I need to do to write this program. Could someone please provide me basic steps of what I should do? Or an example, I"m good at relating and following examples. I believe this is my last assignment for …

Member Avatar for sahil_26
0
7K
Member Avatar for vlad44

hi everybody, I was trying to read a certain range from column in excel into an array in c# then to write it back in another column(as a matter of a simple trial), where the column is written into textbox3, the start of the range is written in texbox1 & …

Member Avatar for Jack Green
0
2K
Member Avatar for pearl.kumar1

Hi, I created an application in VS 2008,If i run my application in Client machine it shows an error like 'could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs Version 9.0.0.0''.Kindly refer any link which is easy to download and install.

Member Avatar for rproffitt
0
2K
Member Avatar for duptiagnas

hi teams, i trying to sum value from selected radio button, but it not working, can you help me out ? any help is appreciated <!DOCTYPE html> <html> <body> <h1>Display Radio Buttons</h1> <form action="/action_page.php"> <br> <label class="radio-inline"> <input class="r1" type="radio" name="a1" value="10">Option 1 </label> <label class="radio-inline"> <input class="r1" type="radio" name="a1" …

Programming java javascript
Member Avatar for Emmason
0
725
Member Avatar for nishita_1

Please Help me. I am coding PHP using below code but out put is not perfect. i am also attach output picture below. <?php require_once 'core.php'; include_once("../fpdf182/fpdf.php"); $pdf = new FPDF(); $pdf->AddPage(); $pdf->setFont("Arial","B",16); $orderId = $_POST['orderId']; $sql = "SELECT orders.order_id, orders.order_date, customer.customer_name, customer.customer_mobile, orders.sub_total, orders.vat, orders.total_amount, orders.discount, orders.grand_total, orders.paid, orders.due, …

Member Avatar for Dani
0
711
Member Avatar for Sananil

I want my users to be logged out automatically after30 minutes of inactivity. I also want to have all sessions destroyed. This is my login.php i have set cookies but does not work. if (isset($_POST['member_login'])) { $username = isset($_POST['username']) ? $_POST['username'] : ""; $password = md5(isset($_POST['password']) ? $_POST['password'] : ""); …

Member Avatar for Dani
0
649
Member Avatar for sasindu

After minimize the window disappear from taskbar and i can't set that again as it's looping...Is there any other way to minimize or fix that. watch inline code examples. from tkinter import * from PIL import Image, ImageTk import time from ctypes import windll GWL_EXSTYLE = -20 WS_EX_APPWINDOW = 0x00040000 …

0
544
Member Avatar for Sananil

I have set up for users online but some users showing always online . can you help anyone this my code ![zzz.png](https://static.daniweb.com/attachments/4/810ade1e5592a68b47aee955adb8de8f.png) <?php if ($Row->logged_in == '0') { if ($Row->last_login != '0000-00-00 00:00:00') { ?>Last Login : <?php echo date('d M Y ,H:i A', strtotime($Row->last_login)); } else { echo "<span …

Member Avatar for Emmason
0
431
Member Avatar for mikecole79

I have been having nothing but trouble trying to get C# to read excel. I haven't even gotten to the writing part, but I imagine it's going to be a challenge, too. FYI, I'm pretty new at this, and don't have a ton of experience, so I'm sure I'm missing …

Member Avatar for jackflint
0
431
Member Avatar for mexabet

I'm trying to redirect user to "**userinfo.php**" after successful registration, but the browser terminates the redirection because it goes into endless loops. Moreover, I need your insight on if the script is secure or not. I need your help, please. Thanks. The following is the "**register.php**" script: <?php // include …

Member Avatar for Dani
0
355
Member Avatar for C_Oleyers

Need help in getting the value inputed in the text box to work for if-else. I also program that the textbox will only alow numeric characters. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace OrderingSystem { public partial class …

Member Avatar for tinstaafl
0
241

The End.