2,440 Recommended Topics

Remove Filter
Member Avatar for
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
192
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
152
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
109
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
53
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 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
448
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
545
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
302
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
109
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
57
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
354
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
734
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
713
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
656
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
564
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
443
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
433
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
358
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
243
Member Avatar for Alexis_fr

Hello, I'm a not a programmer at all and when I tried to build a LibraryBox for my school I didn't know it was a discontinued project. So I'm here with my MR3020 version 3 (the one that is not supported anymore by the project...) and I managed with my …

Member Avatar for Dani
0
153
Member Avatar for sasindu

Here is what i get when compiling py to exe using cx_Freeze... I used Admin cmd too... but it keep give me this error.. how can I make it right...please help me with this. C:\Windows\system32>"C:\\Program Files (x86)\\Python38-32\\python.exe" "E:\\New folder\\Python Player\\Setup.py" build running build running build_exe pygame 1.9.6 Hello from the …

0
133
Member Avatar for carla_3

I am currently working on a python program that takes the numbers from a large file and averages them. Currently I can't seem to find a way to add the numbers without using the sum function. I am a beginner and am just trying to grasp the basics of Python …

Programming assembly python
Member Avatar for Dani
0
95
Member Avatar for pandglobal

I want a secured and server side way of interacting with two different servers namely SERVER A and SERVER B and i want database details and queries done on server B without reveling this database details to server A but yet server A functions based on responses it got from …

Programming php
Member Avatar for Emmason
0
84
Member Avatar for C_Oleyers

I need a program that takes my btnChicken_Click event (when being clicked) and save it as a variable. I know my programs trash but really need it. 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 Fatfood { public partial …

Member Avatar for tinstaafl
0
82
Member Avatar for Syed_22

Hi guys can anyone help me i need to learn how to use OR and AND in loop conditions using javascript

Member Avatar for Emmason
0
63
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 falcon7
0
56
Member Avatar for anish.anick

Hi All, How can i set the session time out in PHP if the user stays inactive for a certain time in a web page.Please help me to solve this.. Thanks

Member Avatar for syaifulrijzal10
0
19K
Member Avatar for mweshk

Dear the gurus; I am a developing a small program for voting of about 5 candidates. The program should compute and return the candidates and their total tallied votes. If a voter enters a number outside 1-5 it should count it as faulty vote. I have the following program but …

Member Avatar for 4075/2019
0
13K

The End.