But for some reason the values are not being added on the databse, can someone help me with that?

|
Om Kumar 1521 2022-06-09 21:13:25
Can anyone solve this
Om Kumar 1521 2022-06-09 21:13:28
Pls help
Eneshed 2022-06-09 21:47:17
I need a job
Some body help me
AnissIncsub 2022-06-09 21:49:25
Can someone reply to me please, can I post a job offer?
Eneshed 2022-06-09 21:50:56
AnissIncsub 2022-06-09 21:49:25
Can someone reply to me please, can I post a job offer?

Yes

Eneshed 2022-06-09 21:51:00
Please
AnissIncsub 2022-06-09 22:22:08
Support Superhero

Are you fed up with the same routine, day in, day out… wake up, work, eat, rinse, repeat… yawn… dreaming of making a change, making a difference, and doing something you enjoy from anywhere in the world you fancy?

Stop dreaming about tomorrow; start making a difference today. Join our team at WPMU DEV and be the hero you’ve always known yourself to be!

RESPONSIBILITIES
You’ll work on various WordPress projects across WPMU DEV, CampusPress, and Edublogs. We power and host websites used by millions of users every single day.

The role will involve:

– Supporting our awesome members and customers
– Hanging out in the WordPress forums – being massively friendly, helpful, and useful
– Assisting with and solving all manner of WordPress questions with style!
– Co-ordinating with developers over bugs, features, and cool new stuff
– Being an active part of the Incsub team
– Sharing cat photos, amusing videos, and animated gifs

Location is unimportant as long as you are available, enthusiastic, committed, passionate, and know your WordPress.

Reach for the skies; we have a heap of many challenges and opportunities for those who aspire to do more!

QUALIFICATIONS
– Love people and love yourself!
– Have a really good familiarity with WordPress
– Along with amazingly great communication skills, ideally, you’ll be a native English speaker, but we’re flexible on that
– Are a great team player, keen on working in an expanding, motivated, distributed support team
– Love impressive response times, typing speed (it matters), and the ability to really bang good stuff out
– Might even be able to code (PHP/MySQL and/or HTML/CSS) a bit, or a lot, even better

JOB BENEFITS
– You will be provided with all of the tools, support, and backing you need to get the job done
– Offer very attractive working conditions for the right candidate
– 28 days paid leave per annum (up to 35 days)
– Opportunities for paid travel to attend WordCamps and other industry conferences
– Long service leave (3 months off paid) after you’ve been with us for a while
– Up to 2 months salary bonus based on company growth targets
– Technology budgets every three years; the longer you serve, the higher the budget
– General expenses budget yearly; the longer you work, the more you get

If you are interested, please DM me as I do not want to post any links.

washaaaaaa 2022-06-10 00:17:12
Hi, Has anyone here used the Paypal api? It’s not working well for me and I don’t know what to do anymore
CHKDOG 2022-06-10 01:27:57
How use global flags in php

Example

This working
preg_match(‘/description/i’);

This not working
preg_match(‘/description/ig’)

preg_match_all(‘/description/i’)

g0neto 2022-06-10 03:36:18
Hello guys, I’m learning PHP, and as my first trying I have just a simple PHP + HTML code that should store some products in the MySQL database with a table called products, the products have an int column id (PK AI), another called name varchar (50), another called price decimal (10,2), another called width int (2), another called height int, (2), another called length int (2), dvd int (2), and another called book decimal (10,3);
my index.php is like that:
g0neto 2022-06-10 03:37:24
<?php
include ‘connection.php’;

$get_products = “SELECT * FROM tb_products “;
$query_products = mysqli_query($conx, $get_products);
?>

<!doctype html>
<html lang=”en”>
<head>
<title>Products</title>
<script src=”jquery-2.1.4.min.js”></script>
<script src=”javascript.js”></script>
<!– Required meta tags –>
<meta charset=”utf-8″>
<meta name=”viewport” content=”wpriceth=device-width, initial-scale=1, shrink-to-fit=no”>

<!– Bootstrap CSS –>
<link rel=”stylesheet” href=”https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css” integrity=”sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T” crossorigin=”anonymous”>
</head>
<body>
<!– getting products to be shown on the html page –>
<table class=”table”>
<thead>
<tr>
<th>SKU</th>
<th>name</th>
<th>price</th>
<th>dvd MB</th>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<th>book Kg</th>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<th>dimension height, width, and length</th>
</tr>
</tr>
</tr>
</thead>
<thead>
<form action=”delete.php” id=”del-form” method=”post”>
</thead>
<tbody>
<!– creating while instructions –>
<?php
while($getting_products = mysqli_fetch_array($query_products)) {
$id = $getting_products[‘id’];
$name = $getting_products[‘name’];
$price = ‘$: ‘ . $getting_products[‘price’];
$dvd = $getting_products[‘dvd’];
$book = $getting_products[‘book’];
$height = $getting_products[‘height’];
$width = $getting_products[‘width’];
$length = $getting_products[‘length’];
?>
<tr>
<td scope=”row”><?php echo $id?></td>
<td><?php echo $name?></td>
<td><?php echo $price?></td>
<td><?php echo $dvd?> MB</td>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td><?php echo $book?> kg</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td><?php echo $height?>cm</td>
<td><?php echo $width?>g</td>
<td><?php echo $length?>cm</td>
</tr>
</tr>

<?php }; ?> <!– closing while –>

<!– creating new values on the database –>
<hr>
<form action=”create.php” method=”POST”>
<td><p class=”position-absolute text-primary text-uppercase float-left”>
Add a products
</p>
</td>
<tr>
<td></td>
<td></td>
<th>name</th>
<th>price</th>
<th>type</th>
<tr>
<td></td>
<td></td>
<td><input type=”text” name=”name” placeholder=”Name”></td>
<td><input type=”real” name=”price” placeholder=”$.$$”></td>
<td><input type=”text” name=”dvd” placeholder=”DVD – MB”></td> (there’s more …)

g0neto 2022-06-10 03:37:51
continuing…
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td><input type=”text” name=”book” placeholder=”Book – Kg”></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td><input type=”text” name=”height” placeholder=”Dimentional – height”></td>
<td><input type=”text” name=”width” placeholder=”Dimentional – width”></td>
<td><input type=”text” name=”lenght” placeholder=”Dimentional – lenght”></td>
</tr>
</tr>
</tr>
<td><input class=”btn btn-primary” type=”submit” value=”Add Product”></td>
</form>
</tbody>
</table>

<!– Optional JavaScript –>
<!– jQuery first, then Popper.js, then Bootstrap JS –>
<script src=”https://code.jquery.com/jquery-3.3.1.slim.min.js” integrity=”sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo” crossorigin=”anonymous”></script>
<script src=”https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js” integrity=”sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1″ crossorigin=”anonymous”></script>
<script src=”https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js” integrity=”sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM” crossorigin=”anonymous”></script>
</body>
</html>

g0neto 2022-06-10 03:38:00
and the create.php is this one:
<?php

// open connection
include ‘connection.php’;

// receives typed data
$name = $_POST[‘name’];
$price = $_POST[‘price’];
$dvd = $_POST[‘dvd’];
$book = $_POST[‘book’];
$height = $_POST[‘height’];
$width = $_POST[‘width’];
$length = $_POST[‘length’];

// insert data on products table
$receives_products = “INSERT INTO
tb_products
VALUES (”,’$name’, ‘$price’, ‘$dvd’, ‘$book’, ‘$height’, ‘$width’, ‘$length’)”;

// validates connection
$query_products = mysqli_query($conx, $receives_products);

// goes back to previous page
header(‘location: index.php’);
?>
But for some reason the values are not being added on the databse, can someone help me with that?

Fox 2022-06-10 06:04:04
g0neto 2022-06-10 03:38:00
and the create.php is this one:
<?php

// open connection
include ‘connection.php’;

// receives typed data
$name = $_POST[‘name’];
$price = $_POST[‘price’];
$dvd = $_POST[‘dvd’];
$book = $_POST[‘book’];
$height = $_POST[‘height’];
$width = $_POST[‘width’];
$length = $_POST[‘length’];

// insert data on products table
$receives_products = “INSERT INTO
tb_products
VALUES (”,’$name’, ‘$price’, ‘$dvd’, ‘$book’, ‘$height’, ‘$width’, ‘$length’)”;

// validates connection
$query_products = mysqli_query($conx, $receives_products);

// goes back to previous page
header(‘location: index.php’);
?>
But for some reason the values are not being added on the databse, can someone help me with that?

is there a issue?

g0neto 2022-06-10 06:20:20
Yes, I’m trying to figure out what is wrong here, but as much as I try worse it gets
Fox 2022-06-10 06:29:27
g0neto 2022-06-10 06:20:20
Yes, I’m trying to figure out what is wrong here, but as much as I try worse it gets

Checking error logs saves you a lot of time

Fox 2022-06-10 06:30:12
g0neto 2022-06-10 03:38:00
and the create.php is this one:
<?php

// open connection
include ‘connection.php’;

// receives typed data
$name = $_POST[‘name’];
$price = $_POST[‘price’];
$dvd = $_POST[‘dvd’];
$book = $_POST[‘book’];
$height = $_POST[‘height’];
$width = $_POST[‘width’];
$length = $_POST[‘length’];

// insert data on products table
$receives_products = “INSERT INTO
tb_products
VALUES (”,’$name’, ‘$price’, ‘$dvd’, ‘$book’, ‘$height’, ‘$width’, ‘$length’)”;

// validates connection
$query_products = mysqli_query($conx, $receives_products);

// goes back to previous page
header(‘location: index.php’);
?>
But for some reason the values are not being added on the databse, can someone help me with that?

By the way you forgot names of colums here

$receives_products = “INSERT INTO
tb_products
VALUES (”,’$name’, ‘$price’, ‘$dvd’, ‘$book’, ‘$height’, ‘$width’, ‘$length’)”;

g0neto 2022-06-10 06:45:31
I tried changing it to $receives_products = “INSERT INTO
tb_products
VALUES (null, ‘$name’, ‘$price’, ‘$dvd’, ‘$book’, ‘$height’, ‘$width’, ‘$length’)”

This null refer to the id that should be auto incremented

Fox 2022-06-10 06:46:07
g0neto 2022-06-10 06:45:31
I tried changing it to $receives_products = “INSERT INTO
tb_products
VALUES (null, ‘$name’, ‘$price’, ‘$dvd’, ‘$book’, ‘$height’, ‘$width’, ‘$length’)”

This null refer to the id that should be auto incremented

you forgot column name

Fox 2022-06-10 06:46:42
g0neto 2022-06-10 06:45:31
I tried changing it to $receives_products = “INSERT INTO
tb_products
VALUES (null, ‘$name’, ‘$price’, ‘$dvd’, ‘$book’, ‘$height’, ‘$width’, ‘$length’)”

This null refer to the id that should be auto incremented

INSERT into tb_products (col1,col2,colN) VALUES($val1,$val2,$valN);

g0neto 2022-06-10 06:48:06
luv_php-51187.jpg
anyway, it’s happening any more, I’m facing another problem, my table on the database is this one
g0neto 2022-06-10 06:48:57
but if I don’t fill all fields I get an error saying i am sending a wrong value to the database
Fox 2022-06-10 06:49:45
g0neto 2022-06-10 06:48:57
but if I don’t fill all fields I get an error saying i am sending a wrong value to the database

bro did u read my previous message

g0neto 2022-06-10 06:50:08
about the name?
g0neto 2022-06-10 06:50:47
luv_php-51191.jpg
that’s the error now
Fox 2022-06-10 06:51:20
g0neto 2022-06-10 06:50:47
that’s the error now

your post request data doesnt have those values

g0neto 2022-06-10 06:52:10
Yes, let me see it again
Dhirendrra 2022-06-10 06:52:28
Urgently hiring for…

Position-Full-Stack Developers
Company-Briq
Job type- Fully remote(WFH)
Budge: 25-30 LPA
Notice period- Immediate joiner or 15 days.

Job Description:
We are looking for a Full Stack Developer to help build scalable software solutions. You’ll be part of a cross-functional team that’s responsible for the full software development life cycle, from conception to deployment. As a Full Stack Developer, you should be comfortable with both front-end and back-end coding languages, development frameworks, and third-party libraries. You should also be a team player with a knack for visual design and utility.

Responsibilities:
● Work with development teams and product managers to ideate software solutions
● Design client-side and server-side architecture
● Build the front-end of applications through appealing visual design
● Write and integrate APIs
● Build features and applications with a mobile responsive design

Requirements:
● Proven experience as a Full Stack Developer in full-time or internship in a similar role
● Knowledge of multiple front-end languages and libraries (e.g. HTML/ CSS, JavaScript, XML, jQuery)
● Knowledge and experience of popular JavaScript frameworks (e.g., Angular, React, Node.js)
● Familiarity with databases (e.g., MySQL, MongoDB), web servers (e.g., Apache), and UI/UX design
● Excellent communication and teamwork skills
● An analytical mind and great attention to detail

Expertise:
Angular.Js exp- 2+
CSS exp- 2+
JavaScript exp- 2+
React.Js exp- 2+
Node.Js exp- 2+
HTML exp- 2+

Interested candidates share your updated resume at ajdevi.k@optimhire.com

Dhirendrra 2022-06-10 06:53:19
[6/9, 15:09] Dhirendra Dhiru: Urgently hiring for..
Position:Android developer
Job location: Hyderabad (On-site)
Budget: 10 LPA
NOTICE PERIOD-Immediate or 20 days

Can you share few work
details below and also share your updated resume
Overall experience-
Mobile Application Development experience-
Android experience-
Kotleen experience-
SDK experience-
Data Base experience-
Web Application Understanding experience-
Scripting experience-
Current CTC-
Expected CTC-
N.P-
[6/9, 20:30] Dhirendra Dhiru: Urgently hiring for..
Position- Angular Developer
Budget: 9 LPA
Skills required:
Web application(all tools) exp-
Java script exp-
Type script exp-
Angular js exp-
Jira exp-

Interested candidates share your updated resume at ajdevi.k@optimhire.com
References will be highly appreciated.

g0neto 2022-06-10 06:54:20
Fox I was about to create, but tested it before… 😔
I’m creating to test it again
Fox 2022-06-10 06:54:39
g0neto 2022-06-10 06:54:20
Fox I was about to create, but tested it before… 😔
I’m creating to test it again

what

g0neto 2022-06-10 07:04:21
I fucked up all the code now…
Fox 2022-06-10 07:07:55
g0neto 2022-06-10 07:04:21
I fucked up all the code now…

bruh lmao

Fox 2022-06-10 07:07:58
send me your code
g0neto 2022-06-10 07:10:09
Okay, I had a backup with the first code where I had it almost working
|