Member Avatar
Topic by Sumier in Web Development
Okay,

if the register request is sent to another script you have to redirect the client back to a page that can accept GET requests. Which can be the sign in page or the sign up in case the registration failed. So at the end of the script, right after … Reply by cereal
Member Avatar
Topic by Siberian in Microsoft Windows
In my experience, Microsoft has a poor record of cleaning up after itself when installing updates. I have never run into a problem deleting these leftover folders. Leaving them present but hidden just clutters things up. Reply by Reverend Jim
Member Avatar
Topic by Sumier in Web Development
The page now shows empty and in the app, I still get "<br/>" when I hit the register button.

<?php
if($_SERVER['REQUEST_METHOD']=='POST'){

include 'DatabaseConfig.php';

$con = mysqli_connect($localhost,$username,$password,$database);

$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];

$CheckSQL = "SELECT * FROM users WHERE email='$email'";

$check = mysqli_fetch_array(mysqli_query($con,$CheckSQL));

if(isset($check)){

echo 'Email Already … Reply by Sumier
Member Avatar
Topic by Sumier in Web Development
> When I remove the extra bracket, I get this "Parse error: syntax error, unexpected end of file".

I suggested you to move mysqli_close() inside the [statement](http://php.net/manual/en/control-structures.if.php), not to remove the extra bracket. Otherwise you get the syntax error. Reply by cereal
Member Avatar
Topic by Sumier in Web Development
When I remove the extra bracket, I get this "Parse error: syntax error, unexpected end of file". Here is what it looks like.

<?php
if($_SERVER['REQUEST_METHOD']=='POST'){

include 'DatabaseConfig.php';

$con = mysqli_connect($localhost,$username,$password,$database);

$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];

$CheckSQL = "SELECT * FROM users WHERE email='$email'";

$check = mysqli_fetch_array(mysqli_query($con,$CheckSQL)); … Reply by Sumier
Member Avatar
Featured Dani 1,570 Replied To a Post in Where are the format btns in reply or post went ?
Topic by jkon in Community Center
Hi Davey,

Unfortunately, the Markdown editor that we use (and which our toolbar is attached to) is not mobile-friendly. Therefore, we are unable to include our toolbar on mobile devices because it simply would be extremely, extremely buggy and not work correctly.

Keeping the editor clutter-free on mobile is also … Reply by Dani
pillsplus Joined the Community
Member Avatar
Featured diafol 3,343 Replied To a Post in Where are the format btns in reply or post went ?
Topic by jkon in Community Center
This happened to me yesterday on an old pc. Reply by diafol
Member Avatar
Topic by Siberian in Microsoft Windows
This folder may be part of an update installed by Windows or a software like .NET framework which creates this folder to create a temporary access for it's extracted files used during installation.

Best is to set it as "Hidden" and leave it alone.

If you really want to delete … Reply by Ritesh_4
Member Avatar
Topic by Sumier in Web Development
Just an observation. You are not sanitising your inputs. You can filter your inputs, sanitise or use a prepared statement. This means you are open to SQL injection. Reply by diafol
Member Avatar
lordrt Joined the Community
tarek_5 Replied To a Post in binary tree
Topic by Usman_9 in Computer Science

[B]whatsapp Plus is an application for exchanging messages between many types of telephone devices and operating systems that allows you to instant messaging without paying text messages. It is available for iPhone, Blackberry, Windows Phone, Android and Nokia. And yes, the application allows you to correspond between these phones whatever … Reply by tarek_5
tarek_5 Joined the Community
Member Avatar
ddanbe 2,541 Replied To a Post in Hello everyone
Topic by mandylopez in Community Center
@happygeek: AFAIKS no upvotes for me. So all is fixed I guess. Thanks for your interest. :) Reply by ddanbe
Member Avatar
Pamela_6 Replied To a Post in How to add Signature in forum?
Topic by stephen_21 in Search Engine Strategies
seo
Are you talking about Daniweb or another forum? Reply by Pamela_6
Member Avatar
happygeek 1,777 Replied To a Post in Hello everyone
Topic by mandylopez in Community Center
PS. ddanbe - sorry for the upvote and positive rep (why am I apologising) it was meant for Mandy, but you deserve it as well so will not try to fix it :-) Reply by happygeek
Member Avatar
happygeek 1,777 Gave Reputation to mandylopez in Hello everyone
I am new in this forum and would like to share my experience and knowledge here. Not only want to share my experience, but also want to get some good information, tricks and tips from the member of this forum. First Post in Topic by mandylopez in Community Center
Member Avatar
happygeek 1,777 Gave Reputation to ddanbe in Hello everyone
Topic by mandylopez in Community Center
Hi Mandy Lopez, welcome to DaniWeb! :) Reply by ddanbe
Member Avatar
happygeek 1,777 Replied To a Post in Hello everyone
Topic by mandylopez in Community Center
Hi Mandy, have another welcome from me - hope you find what you are looking for.

Thanks for your contributions so far, keep them coming... :-) Reply by happygeek
Member Avatar
Reverend Jim 1,623 Replied To a Post in Hello everyone
Topic by mandylopez in Community Center
Hello and welcome. Reply by Reverend Jim
Member Avatar
Topic by Wholesale Gemstone in Digital Media
seo
Check whether you can add open-cart realted content to your website, and use off page SEO techniques for advertising. Reply by Paul_49
Member Avatar
Topic by EX in Search Engine Strategies
I agree with @happygeek that this looks like a spam post or just promoting the tool. lets see if there is a reponse. Reply by Subhan_3
Member Avatar
Topic by Sumier in Web Development
At line 26 there is an extra `}`, but it does not raise a syntax error, so if on top you have a condition like:

if($_POST)
{
# open connection here
# other code ...
} # <-- line 26 in your code
# close connection here

then, when you … Reply by cereal
Member Avatar
Imalka Joined the Community
Member Avatar
Topic by Latrell_vie in Web Development
php
From the [documentation:](http://php.net/return)

> If called from within a function, the return statement immediately ends execution of the current function, and returns its argument as the value of the function call.

It is like doing:

echo 'hello';
exit;
echo 'world';

so in your function you can store the value that … Reply by cereal
Member Avatar
I get the error "Warning: mysqli_close() expects parameter 1 to be mysqli, null given in" and I can't find a problem. Can anyone help, here is my code.

$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];

$CheckSQL = "SELECT * FROM users WHERE email='$email'";

$check = mysqli_fetch_array(mysqli_query($con,$CheckSQL));

if(isset($check)){

echo … Topic by Sumier in Web Development
Member Avatar
Sumier Joined the Community
Member Avatar
vivek_22 Joined the Community
Member Avatar
ddanbe 2,541 Replied To a Post in Help With MIPS Assembly
Topic by Michael_69 in Software Development
Maybe [this](https://courses.cs.washington.edu/courses/cse378/03wi/lectures/mips-asm-examples.html) might help you out. Reply by ddanbe
ruby_3 Joined the Community