Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PHP Conditionals Formatter(Can find the option)
PHP Conditionals Formatter [message #1800696] Sat, 05 January 2019 19:28 Go to next message
JBW JBW is currently offline JBW JBWFriend
Messages: 1
Registered: January 2019
Junior Member
Hi,

I'm missing the settings for condtitionals new line formatting in Eclipse 4.9 PTD 6.2 (see attachement).

While reseachring this issue I found screenshot that show this setting - can't post the link here because its my first post.

  • Attachment: Unbenannt.PNG
    (Size: 28.19KB, Downloaded 159 times)

[Updated on: Wed, 09 January 2019 10:05]

Report message to a moderator

Re: PHP Conditionals Formatter [message #1802751 is a reply to message #1800696] Fri, 15 February 2019 07:47 Go to previous message
drobo roy is currently offline drobo royFriend
Messages: 1
Registered: February 2019
Junior Member
<?php
$username = filter_input(INPUT_POST , ' username ' ) ;
$password = filter_input(INPUT_POST , ' password ' ) ;
if (! empty( $username )) {
if (! empty( $password )) {
$host = "localhost" ;
$dbusername = "rooot" ;
$dbpassword = " " ;
$dbname = "youtub" ;
// Create connection
$conn = new mysqli ( $host, $dbusername, $dbpassword, $dbname) ;
if ( mysqli_connect_error ( )) {
die ( 'connect error( ' . mysqli_connect_errno( ) '. ) '
. mysqli_connect_error( )) ;
}

else{
$sql = "INSERT INTO account( username , password )
values( ' $username ' , ' $password ' ) " ;
if($conn->query($sql )){
echo "New record is inserted sucessfully" ;
}
else{
echo "Error : " . $sql . "<br>" . $conn->error ;
}
$conn->close( ) ;
}
}
else{
echo "password should not be empty ;
die( ) ;
}
}
else{
echo "username should not be empty ;
die( ) ;
}
?>
Previous Topic:Cannot connect to Debugger (i.e. SDM)
Next Topic:Validator not catching a variable via PHPDoc comment
Goto Forum:
  


Current Time: Wed Apr 21 19:48:02 GMT 2021

Powered by FUDForum. Page generated in 0.02248 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top