| |
thread by: Speed Ack |
last post Feb 25 '21 by: bakertaylor28
I am making a simple Point of Sale system for personal use and I have two table namely: sales and items. Items to be sold are based on the list of items in the items table. Below is the insert code to the sales table.
if(isset($_POST))
{
$id = $_SESSION;
$sql = " INSERT
INTO sales (uid, itemname, category, price,...
|
thread by: microphoneglobe |
last post Mar 1 '21 by: bakertaylor28
hey, I want to clone a website.
I want to make a website on PHP. tell me how can I copy the whole code of this website?
|
thread by: bakertaylor28 |
last post Feb 25 '21 by: bakertaylor28
I've tried using the following code to write a variable to a PDF file, but it only returns a blank PDF. How do you write a php variable to a library using the FPDF library?
<?php
session_start();
require('../fpdf.php');
if (isset ($_POST)) {
$_POST = $SESSION;
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
|
thread by: bakertaylor28 |
last post Feb 25 '21 by: bakertaylor28
Given that we use code like the following:
<?php
session_start();
$DATABASE_HOST = 'localhost';
$DATABASE_USER = 'user';
$DATABASE_PASS = 'password';
$DATABASE_NAME = 'library';
|
thread by: bakertaylor28 |
last post Feb 25 '21 by: bakertaylor28
What is Call to a member function bind_param() on bool in /file.php:60 n the context of the following code, and how do I fix it?
The Code:
<?php
// Start PHP Session, if not already started. Login verification script will be placed in this section later.
session_start();
// Connect to database. Change this to the proper SQL connection...
|
thread by: benchapli75 |
last post Feb 16 '21 by: Dormilich
What do you guys think about this? I use getters and setters in private methods inside a object instead of the property. I don't think it's useful in constructors but I use it always in private methods even though I have direct access, I just find it better due to setter | mutator validation. My professor thinks it's a bad pratice. What do you...
|
thread by: tarandoshi |
last post Feb 25 '21 by: bakertaylor28
I am using the fpdf php library to create a PDF file from php
<?php
require('lib/fpdf.php');
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Verdana','B',16);
|
| |
thread by: Firas Rihan |
last post Mar 2 '21 by: bakertaylor28
Hello, so I'm trying to update a column (carID) in a table called users
but I'm getting the following error:
"syntax error, unexpected double-quote mark, expecting "-" or identifier or variable or number"
Can you help me figure out what's the problem in the code?
if($_SERVER == "POST"){
$ID=mysqli_real_escape_string($con, $_GET);...
|
thread by: haidergohar |
last post Dec 30 '20 by: dev7060
Hey,
I want to integrate the zoom in a website where online classes would be conducted. There may be at least 8 classes/meetings at a time. It should be on my website interface and shouldn't redirect to the zoom website for meetings. I want these integration done by PHP because whole the website is developed on PHP and there would some data...
|
thread by: techysyska |
last post May 16 '21 by: bridgetb4045
I am new to programming and I've seen lots of posts making fun of PHP. Why does it gets so much hate? What language should I learn for web developing instead of it?
EDIT: Considering the fact that I already know JS.
PHP is incredibly popular. A lot of very useful things is written in PHP or what started as a dialect of PHP including...
|
thread by: marikelis47 |
last post Feb 21 '21 by: bakertaylor28
How to display the login form right on the home page with the url parameter but not to redirect that form to another page, it's just on the home page when clicked. I used mvc for my project. Thanks for Reading.
|
thread by: narutikli64 |
last post Feb 16 '23 by: Vanisha
Hi everyone,
I'm relatively new to web development. I know JavaScript and work primarily with JavaScript frameworks - Vue, Angular, Node/Express, and so forth.
I'm wondering if it would be worth it to learn PHP and at least one PHP framework like Laravel. Is there any advantage to using PHP? Any major differences in capabilities between PHP...
|
thread by: sbn111 |
last post Dec 2 '20 by: sbn111
Hi,
Please help me to how to integrate phpmailer with codeignitor 4.
Thank you
|
thread by: Jeff254 |
last post Oct 6 '20 by: dev7060
Hi, so basically I'm trying to add this table to my front end clients private pages so that I can key in information at the end of the day. They should be able to view a monthly record of the information dependent on the day selected but I cant figure out which way to go about this. All I'm asking for is some guidelines. Please Help
|
thread by: superjohnellee |
last post Sep 25 '20 by: superjohnellee
function create_time_range($start, $end, $interval='30 mins', $format='12'){
$startTime=strtotime($start);
$endTime=strtotime($end);
$returnTimeFormat=($format=='24')?'g:i':'G:i';
$current=time();
$addTime=strtotime('+'.$interval,$current);
$diff=$addTime-$current;
$times=array();
|
| |
thread by: superjohnellee |
last post Sep 25 '20 by: superjohnellee
This is the image
https://pasteboard.co/JsIOFTw.png
<div class="table-responsive">
<table class="table table-bordered table-hoverable table-striped" id="tblClassScheduler">
<thead>
<tr>
<?php
...
|
thread by: phpbeginner2020 |
last post Sep 14 '20 by: dev7060
I am fresher to PHP. A table with two columns. One contains id and other contains value. value is in button. Each button returns different pages. How the functions look like? Can anyone help me to sort out.
|
thread by: dada1 |
last post Aug 13 '20 by: vilkerduarte
This is my first time trying to build AI chat. I'm trying to create some kind of AI that will be able to chat with humans.
Let me give you an example. Person sends a question or any other sentence and then AI analyses it and responds.
I'm not talking about chatbot, I'm talking about using PHP to build my own chat system. How and where do I...
|
thread by: panha sim |
last post Mar 4 '21 by: bakertaylor28
Here is my code but it error
=====================================================
$this->Cell(
15,
15,
this->Image(
$row,
$this->GetX(),
$this->GetY(),
15,
|
thread by: umeshamin |
last post Jul 7 '20 by: dev7060
So, suppose you have a website using PHP running and everything is fine.
Later on. You want to automate some specific jobs and in order to so that you need to use web scraping techniques. (Say you can only use Python for the web. scr.)
How would you do it?
How would you execute those Python scripts? Through PHP or at specific times from...
|
thread by: Hamza1 |
last post Jul 10 '20 by: Ishan Shah
I want to use this form with multiple select box to put data to database. I can put all data, but I can't put selections. What I am missing?
HTML FORM:
<form action="insertcheckbox.php" method="POST">
<div class="modal-body">
<div class="form-group">
<label> Ime i Prezime </label>
|
thread by: 2020 |
last post Jul 2 '20 by: SioSio
Hiya,
Php gurus, can you tell me is this query ok to get row count ? It works here:
$query_2 = "SELECT * FROM users WHERE first_name = ? AND marital_status = ? LIMIT $offset,$last_row_on_page";
The rows_count() function uses the above query.
Then it forwards you to the fetch_rows() function that fetches the rows and displays them in...
|
thread by: 12pathak |
last post Mar 4 '21 by: bakertaylor28
like enter name to show username .
enter-----
hear show -- this data auto fatch
and then submit from
|
| |
thread by: karbotilne5 |
last post Jun 23 '20 by: dev7060
I need some help with my pagination. I connect to the database okay and it generates the page numbers I would expect from my query but each page only has one row when it should have 10 rows. From the id on the row I can tell that it is the 10th row returned by the query, it's just that rows 1-9 are missing. Appreciate any help I can get.
|
thread by: dada1 |
last post Jun 20 '20 by: Rabbit
I was crawling http://www.somesite.com and it was working. I used PHP Symfony crawler, I even used proxies. I was testing it locally so I tried without proxies.
I added 5 seconds of sleep time between each requests, I tried random sleep between requests, I tried 10 seconds. After only few requests it gave me this page...
|