2,987 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Dani

I need some quick regex help with matching the same word twice in a pattern. For example, I'm trying to match on the PHP code: `if (isset($foo) AND $foo)` or `if (isset($bar) AND $bar)` where `$foo` and `$bar` are any valid variable name. However, I don't want to match on …

Member Avatar for Reverend Jim
0
348
Member Avatar for Nosipho_1

um i am so bored at school i hate my teachers , school, and all the subjects i want to make fast money so i think i have a solution for my problem since i am a trap music girl i am in love with cardi b i would love …

Member Avatar for John_165
0
70
Member Avatar for Aeonix

$stmt = $dbconn->prepare("SELECT * FROM `members` WHERE username=? AND password=?"); $stmt->bind_param("ss", $username, $password); Is what I have. Database is connected etc. How can I set variable called `$dbresult` with array of SQL result? I don't want to set individual variables. I really need an entire array as answer. There's couple …

Member Avatar for jkon
0
3K
Member Avatar for muhammadnasiri

two error come of (strcpy was not declare in this scope) would any one show me, hw to remove this error, ... plz Project Title: Student Record & Registration using Linked list Description: This project is a Linked List application. If you would like to refresh you knowledge about linked …

Member Avatar for J_7
0
22K
Member Avatar for anveshi

Hi friends. Please tell me how to display a image file on the screen in C? If u r kind to me, send the code snippet.

Member Avatar for rproffitt
0
14K
Member Avatar for lewashby

ERROR 1054 (42S22): Unknown column 'Firstname' in 'field list' I'M gettin the above error when I enter: mysql> insert into people (fname, lname) -> VALUES (Firstname, Lastname); Here's the table: mysql> desc people; +-------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-------------+------+-----+---------+-------+ | fname …

Member Avatar for Dani
0
13K
Member Avatar for mrcniceguy

Is there anyone with the knowledge on how to Show online users with php?? i have seen in many sites,now i need someone who can explain to do it. (if there are users who are online to be displayed) Please explain how to get started))))

Member Avatar for ashkan_3
0
9K
Member Avatar for Onion13

Trying to make a game where explosions randomly appear on the screen using visual studio. I figured out how to make a single picture change location on the screen. So, I wanted to make the illusion of an explosion using imagelist. When I try to do it I get an …

Programming c#
Member Avatar for pritaeas
0
439
Member Avatar for FoxyBit

Hi all, I have been confusing myself for days over this so bear with me if it gets a bit confusing. I have a table called tags with columns id, name which list all unique tags (linux, php, mysql, etc.). And I have an array that includes some tags that …

Member Avatar for pritaeas
0
122
Member Avatar for Naveed_786

Hi All, I havefollowing code and getting error "Parse error: syntax error, unexpected 'elseif' (T_ELSEIF) in C:\xampp\htdocs\SMR\index.php on line 13". Wehen i remove elseif and keep only if it just checks the first condition and ignor the second. When i put back elseif i get error. Please to fix this …

Member Avatar for pritaeas
0
71
Member Avatar for Dani

This question specifically relates to PHP's Memcached library when specifying a server key and adding multiple keys at once. **Question one**: Is it true that PHP's setMultiByKey() doesn't take advantage of the memcached server's native support for setting multiple keys at once, but that the logic is on PHP's side …

0
268
Member Avatar for mexabet

I have two MySQL tables, which I want to SELECT using a single PDO query and positional placeholders. I've been going through similar questions here to find a solution, but none seems to match the issues I'm having. The following code is the section of my script: <?php // query …

Member Avatar for mexabet
0
899
Member Avatar for bis student

Hi this is my question , and I have some error in my code ,and I cant correct them ,and I am asking if you could help me ? this is the question : Create a class called BloodDonor that maintains information about blood donors in a blood bank having …

Member Avatar for Alia_2
0
3K
Member Avatar for IndiaofCarl

I have three problems the first one is to count the letters in a string in Assambler in MIPS. the string that should be counted is "My bird is a happy bird and he like to sing" .data ANTAL_TAL: .word 11 TAL_ARRAY: .word 1, 3, 6, 9, 2, 4, 6, …

Member Avatar for stellaa9x
0
193
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
139
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
83
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 ajax jquery
Member Avatar for Dani
0
70
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
755
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
442
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 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
187
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
106
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
51
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
345
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
438
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
527

The End.