Member Avatar
I'm hoping someone can help. For a long time I've been having the computer randomly restart or freeze; especially when backing up my computer to a network drive the computer freezes. I was informed it was the PSU; and so as of recently I replaced it with a brand new … Topic by Siberian in Hardware and Software
Member Avatar
Siberian 13 Created output code in VSC
Where or can someone help me on using Visual Studio Code; as I installed a Python extension and I can't get the console / debugger to show the results of the code ? Topic by Siberian in Programming
Member Avatar
COKEDUDE 13 Replied To a Post in c programming stop reading from stdin
Topic by COKEDUDE in Software Development
c
I thought newline is equivalent to hitting enter on the keyboard. Is that correct? With this while loop it does not stop when I hit enter. I have to hit Ctrl-D or fill up the buffer to make it stop reading.


while(fgets(line, sizeof line, stdin))
{
} Reply by COKEDUDE
Member Avatar
rproffitt 1,011 Replied To a Post in c programming stop reading from stdin
Topic by COKEDUDE in Software Development
c
From the docs:

> The C library function char *fgets(char *str, int n, FILE *stream) reads a line from the specified stream and stores it into the string pointed to by str. It stops when either (n-1) characters are read, the newline character is read, or the end-of-file is reached, … Reply by rproffitt
Member Avatar
When using fgets to read from stdin how do you stop reading from stdin? Topic by COKEDUDE in Software Development
c
Member Avatar
Eduardo Luis 14 Joined the Community
Member Avatar
Topic by ajit.nayak in Software Development
The output doesn't look like garbage to me, it looks like the input characters separated by a line feed character. Possible you have a '\n' in a loop. Reply by itnavigate
Member Avatar
itnavigate Replied To a Post in 8086 assembly
Topic by aya_5 in Programming
Hmmm... Last time I did any 8086 programming was..., Well, a long time ago.

Your error message seems to give it away though, forward reference. If I recall correctly, subroutines must be declared before they are called. Reply by itnavigate
Member Avatar
NetJunkie 29 Replied To a Post in need help with a signup
Topic by Trevor_4 in Web Development
I would recommend checking out [this](https://www.w3schools.com/howto/howto_css_signup_form.asp) documentation and see if that helps you in any way! Reply by NetJunkie
Member Avatar
Topic by vindyauwu in Web Development
sir i inserted the data in database then many rows fill with the same data how solve this problem tell me ??????? Reply by amit_48
Member Avatar
Topic by vindyauwu in Web Development
sir i inserted the data in database then many rows fill with the same data how to solve this problem tell me ???????hey anyone can tell me about this problems



<?php
session_start();
$f_name=mysql_real_escape_string($_POST['f_name']);
$l_name=mysql_real_escape_string($_POST['l_name']);
$email=mysql_real_escape_string($_POST['email']);
$city=mysql_real_escape_string($_POST['city']);
$country=mysql_real_escape_string($_POST['country']);
$phone_number=mysql_real_escape_string($_POST['phone_number']);
$password=mysql_real_escape_string($_POST['s_password']);

mysql_connect('localhost','root','');
mysql_select_db('college');
echo $insert="INSERT INTO college_info(`first_name`,`last_name`,`email`,`city`,`country`,`phone_number`) VALUES('$f_name','$l_name','$email','$city','$country','$phone_number')";
echo $sql=mysql_query($insert);


if($sql)
{ … Reply by amit_48
Member Avatar
benanamen 31 Gave Reputation to Imran_22 -3 in single login page for Admin and user
Topic by vindyauwu in Web Development
hi, plz help me. i create single login form. i want to login in this form (user and admin) both in one form. how to register admin and user. and then how data store in database in one table. plz tell me first how i insert data in to data … Reply by Imran_22
Member Avatar
benanamen 31 Replied To a Post in multiple mysql search options
Topic by wikit in Web Development
This is a very poorly written and insecure script that is vulnerable to SQL Injection. Before you start adding new features you need to fix the script. There are numerous problems with it.

You need to use Prepared Statements. I suggest you use [PDO](https://phpdelusions.net/pdo).

Do not output internal errors to … Reply by benanamen
Member Avatar
Kimleng Joined the Community
Member Avatar
annai_1 Joined the Community
Member Avatar
Michael_78 Joined the Community
Member Avatar
So I have website listing characters from a multi person RP I take part in
the site uses bootstrap as well as a mysql database. I have a working search script to search teh database for a query and echo the results. I'm trying to figure out how to make … Topic by wikit in Web Development
Member Avatar
Topic by SimonIoa in Mobile Development
Cannot find module, should i install something?

Severity Code Description Project File Line Suppression State
Error TS2307 Cannot find module '@angular/core'. ionic-restful-authentication-master (tsconfig project) C:\Users\Simon\Cookies\Desktop\Various Scripts\ioniclast\ionic-restful-authentication-master\src\pages\login\login.ts 1 Active
Error Error: Current working directory is not a Cordova-based project. ionicLast1 1
Error TS2307 Cannot find module 'ionic-angular'. ionic-restful-authentication-master (tsconfig project) C:\Users\Simon\Cookies\Desktop\Various … Reply by SimonIoa
Member Avatar
itks125 Joined the Community
Member Avatar
Mudassir_3 Joined the Community
Member Avatar
JamesCherrill 3,174 Gave Reputation to Imran_22 -3 in single login page for Admin and user
Topic by vindyauwu in Web Development
hi, plz help me. i create single login form. i want to login in this form (user and admin) both in one form. how to register admin and user. and then how data store in database in one table. plz tell me first how i insert data in to data … Reply by Imran_22
Member Avatar
JamesCherrill 3,174 Replied To a Post in single login page for Admin and user
Topic by vindyauwu in Web Development
> tell me how i insert data in to data base, how to select the data in the database

There are many many tutorials on the web that cover this very basic information. Nobody here is going to write a new one just for you. Do some research of your … Reply by JamesCherrill
xswtwn89 Joined the Community
Member Avatar
anwen Joined the Community
erinalis125 Joined the Community
Member Avatar
ddanbe 2,654 Gave Reputation to rproffitt in Site performance
Topic by Dawud_1 in Web Development
There's a problem with your request. You didn't define the parameters for performance so without that, what you think is best is not known.

If you just need a handle on performance testing you can research that with google. I like to check sites with the W3C checks.

Let's see … Reply by rproffitt
Member Avatar
rproffitt 1,011 Replied To a Post in Site performance
Topic by Dawud_1 in Web Development
There's a problem with your request. You didn't define the parameters for performance so without that, what you think is best is not known.

If you just need a handle on performance testing you can research that with google. I like to check sites with the W3C checks.

Let's see … Reply by rproffitt
jkjsqwn89 Joined the Community
Member Avatar
Hey guys what do you think is the best website performance analysing tool available? Where can I get it?
The site I'm looking to analyze : https://www.sellist.com Topic by Dawud_1 in Web Development
Member Avatar
Dawud_1 Joined the Community