I know some php basics what should i do?

|
rohit267 2021-11-28 20:33:03
only that can help
TerrenceNgari 2021-11-28 20:52:14
rohit267 2021-11-28 20:32:53
show error

and can you try to run it on your side.. i send you the whole codes since they system has interconnected errors

TerrenceNgari 2021-11-28 20:54:17
Fatal error: Uncaught Error: Call to undefined function mysql_query() in C:wamp64wwwamdprogramsamidprogramshospital.php on line 21
TerrenceNgari 2021-11-28 20:54:39
Error: Call to undefined function mysql_query() in C:wamp64wwwamdprogramsamidprogramshospital.php on line 21
TerrenceNgari 2021-11-28 20:54:59
TerrenceNgari 2021-11-28 20:54:17
Fatal error: Uncaught Error: Call to undefined function mysql_query() in C:wamp64wwwamdprogramsamidprogramshospital.php on line 21

it’s showing these errors

rohit267 2021-11-28 20:56:21
TerrenceNgari 2021-11-28 20:54:17
Fatal error: Uncaught Error: Call to undefined function mysql_query() in C:wamp64wwwamdprogramsamidprogramshospital.php on line 21

mysql_query is deprecated, use mysqli_query( $connection, $query);

rohit267 2021-11-28 20:58:37
TerrenceNgari 2021-11-28 20:52:14
and can you try to run it on your side.. i send you the whole codes since they system has interconnected errors

by the way you can use telegram desktop client on windows or telegram web, no need of BlueStacks

TerrenceNgari 2021-11-28 21:14:23
rohit267 2021-11-28 20:56:21
mysql_query is deprecated, use mysqli_query( $connection, $query);

thanks that error has disappeared

TerrenceNgari 2021-11-28 21:14:42
Parse error: syntax error, unexpected ‘$count’ (T_VARIABLE) in C:wamp64wwwamdprogramsamidprogramshospital.php on line 22
TerrenceNgari 2021-11-28 21:15:42
TerrenceNgari 2021-11-28 21:14:42
Parse error: syntax error, unexpected ‘$count’ (T_VARIABLE) in C:wamp64wwwamdprogramsamidprogramshospital.php on line 22

what about this error?? what should i do about it?

rohit267 2021-11-28 21:35:04
TerrenceNgari 2021-11-28 21:15:42
what about this error?? what should i do about it?

looks like you missed a semicolon ; after the mysqli_query

TerrenceNgari 2021-11-28 21:42:37
so if i may ask, should i place a semicolon after mysqli_query like this mysqli_query($connection,$query); or like this mysqli_query;($connection,$query) ?
de_velop_er 2021-11-28 22:00:22
I am getting “on” value from radio button, I give name=”role”
Then $input(‘role’) is giving value as “on”
de_velop_er 2021-11-28 22:00:26
Y?
de_velop_er 2021-11-28 22:00:49
I have two radio button
Jibran Lakdawala 2021-11-28 22:02:54
2021-10-26 20:11:32
Hi i want to learn php but i always quit because its hard its over a year now that i am doing this. I know some php basics what should i do?

Did you give any value in ‘value’ attribute of radio buttons?

Jibran Lakdawala 2021-11-28 22:03:27
By default it’s ‘on’ of the one’s that selected at run time.
TerrenceNgari 2021-11-28 22:04:53
TerrenceNgari 2021-11-28 20:10:59
<?php include ‘main.php’;?>
<?php include ‘inc/dbcon.php’;?>
<!DOCTYPE HTML>
<html>
<head>
<link rel=”stylesheet” type=”text/css” href=”inc/css/structure.css”>
<link rel=”stylesheet” type=”text/css” href=”inc/css/mystyles.css”>
</head
<body>
<section class=”HomeKisii”>
<img src=”img/1.jpg” alt=”Mountain View” style=”width:604px;height:470px”>
<section class=”Regions”>
<p>Parking Lots Status</p>
<p class=”status”>Red -> Reserved/Occupied , Yellow -> Available</p>
<!– Table goes in the document BODY –>
<table class=”gridtable”>
<?php $street =”OGEMBO STREET”; ?>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 001′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 001</td>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 010′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 010</td>
</tr>
<tr>
<td
<?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 002′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 002</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 011′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 011</td>
</tr>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 003′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 003</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 012′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 012</td>
</tr>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 004′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 004</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 013′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 013</td>
</tr>
<tr>
<td
<?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 005′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 005</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 014′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 014</td>
</tr>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 006′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 006</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 015′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 015</td>
</tr>
<tr>
<td
<?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 007′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 007</td
<?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 016′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>><td>PL 016</td>
</tr>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 008′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 008</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 017′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 018</td>
</tr>
</table>

</section>
</section>

anyone else is also free to correct the errors in my code

TerrenceNgari 2021-11-28 22:07:20
TerrenceNgari 2021-11-28 22:04:53
anyone else is also free to correct the errors in my code

since my work is due wednesday so i’ll appreciate if i get help from anyone

Ismart_akash 2021-11-28 22:08:28
TerrenceNgari 2021-11-28 22:07:20
since my work is due wednesday so i’ll appreciate if i get help from anyone

Set the value and name

Jibran Lakdawala 2021-11-28 22:08:32
TerrenceNgari 2021-11-28 20:10:59
<?php include ‘main.php’;?>
<?php include ‘inc/dbcon.php’;?>
<!DOCTYPE HTML>
<html>
<head>
<link rel=”stylesheet” type=”text/css” href=”inc/css/structure.css”>
<link rel=”stylesheet” type=”text/css” href=”inc/css/mystyles.css”>
</head
<body>
<section class=”HomeKisii”>
<img src=”img/1.jpg” alt=”Mountain View” style=”width:604px;height:470px”>
<section class=”Regions”>
<p>Parking Lots Status</p>
<p class=”status”>Red -> Reserved/Occupied , Yellow -> Available</p>
<!– Table goes in the document BODY –>
<table class=”gridtable”>
<?php $street =”OGEMBO STREET”; ?>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 001′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 001</td>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 010′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 010</td>
</tr>
<tr>
<td
<?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 002′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 002</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 011′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 011</td>
</tr>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 003′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 003</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 012′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 012</td>
</tr>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 004′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 004</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 013′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 013</td>
</tr>
<tr>
<td
<?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 005′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 005</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 014′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 014</td>
</tr>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 006′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 006</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 015′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 015</td>
</tr>
<tr>
<td
<?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 007′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 007</td
<?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 016′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>><td>PL 016</td>
</tr>
<tr>
<td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 008′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 008</td><td <?php
$sql=”SELECT * FROM zones WHERE street=’$street’ and plot=’PL 017′”;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo “style=”background: red;””;}
?>>PL 018</td>
</tr>
</table>

</section>
</section>

I don’t know if this’ll help but in your closing tag of ‘head’ right angular bracket at the end is missing.

TerrenceNgari 2021-11-28 22:10:07
Jibran Lakdawala 2021-11-28 22:08:32
I don’t know if this’ll help but in your closing tag of ‘head’ right angular bracket at the end is missing.

okay for that part i already corrected it though it does not make any difference but thank you for the correction

TerrenceNgari 2021-11-28 22:10:22
Ismart_akash 2021-11-28 22:08:28
Set the value and name

how?

Jibran Lakdawala 2021-11-28 22:10:29
TerrenceNgari 2021-11-28 22:10:07
okay for that part i already corrected it though it does not make any difference but thank you for the correction

Np

TerrenceNgari 2021-11-28 22:13:30
This is the error that iam currently getting

Parse error: syntax error, unexpected ‘,’ in C:wamp64wwwamdprogramsamidprogramshospital.php on line 21

Ismart_akash 2021-11-28 22:15:54
TerrenceNgari 2021-11-28 22:13:30
This is the error that iam currently getting

Parse error: syntax error, unexpected ‘,’ in C:wamp64wwwamdprogramsamidprogramshospital.php on line 21

looks like you missed a semicolon ;

Ismart_akash 2021-11-28 22:16:07
Line no 21
Ismart_akash 2021-11-28 22:16:33
Send photo line no 21
2021-11-28 22:31:10
I’m looking part time job on laravel and ci
TerrenceNgari 2021-11-28 22:40:23
Ismart_akash 2021-11-28 22:16:33
Send photo line no 21

ok..give me 5 minutes i’m sending it right now

TerrenceNgari 2021-11-28 22:44:48
ok..give me 5 minutes i’m sending it right now
TerrenceNgari 2021-11-28 22:48:03
luv_php-41387.jpg
it’s this one
2021-11-29 06:19:07
Greeting From Apps Business IT Solutions Pvt Ltd!!!

Hiring Freelancers for PHP Developer
Location: Remote
Experience: 3+ years
Project duration: 3 – 6 Months
Notice: Immediate – 15 days

If interested share your resume to vipin.c@ssinfrallp.com

iamghostman 2021-11-29 06:29:27
TerrenceNgari 2021-11-28 22:48:03
it’s this one

remove semicolon after mysqli_query;($con, query) to mysqli_query($con, query);

Dan Bilzerian 2021-11-29 07:27:34
Hello evey one i need help in wordpress
|