Hi guys, how to reuse variables php when i close and reopen tag php?

|
akshaykumar51 2020-09-16 11:13:29
How to display mobile no vertically.

Insert 98961237890

Display like beloy
9
8
9
6
1
2
3
7
8
9
0

akshaykumar51 2020-09-16 11:13:34
In php
rohit267 2020-09-16 11:29:28
akshaykumar51 2020-09-16 11:13:29
How to display mobile no vertically.

Insert 98961237890

Display like beloy
9
8
9
6
1
2
3
7
8
9
0

learn programming

akshaykumar51 2020-09-16 11:43:40
rohit267 2020-09-16 11:29:28
learn programming

That i know better then u.

rohit267 2020-09-16 11:52:05
akshaykumar51 2020-09-16 11:43:40
That i know better then u.

if you know then you might not have asked

akshaykumar51 2020-09-16 11:57:35
I asked help in resolving the issue that belongs to logic.
Learn to read issue then respond with manner.
P 2020-09-16 12:00:49
rohit267 2020-09-16 06:15:03
look for profiles in fivver and freelancer, go according to it

OK. Ty

rohit267 2020-09-16 12:09:50
akshaykumar51 2020-09-16 11:57:35
I asked help in resolving the issue that belongs to logic.
Learn to read issue then respond with manner.

it’s you who need manners

Harikrishnan5494 2020-09-16 12:32:40
akshaykumar51 2020-09-16 11:13:29
How to display mobile no vertically.

Insert 98961237890

Display like beloy
9
8
9
6
1
2
3
7
8
9
0

<?php

$str = str_split(“98961237890″);
foreach($str as $a => $b){
echo $str[$a].”<br>”;
}

?>

kameshindore 2020-09-16 13:25:37
P 2020-09-15 20:58:18
Hii guyzz.. Can anybody guide me.. For freelancing how much standard charges for per page ..for beginners level

its 500 to 800 per page

Vinod Kumar 2020-09-16 13:28:48
Normal html pages ?
Vinod Kumar 2020-09-16 13:29:12
Or coding also?
CambridgeAcademyofEnglish 2020-09-16 14:26:37
luv_php-23747.jpg
SEND YOU RESUME at derek@cambridgeinfotech.in
CambridgeAcademyofEnglish 2020-09-16 14:28:36
thankyou
button_idli 2020-09-16 14:35:09
CambridgeAcademyofEnglish 2020-09-16 14:26:37
SEND YOU RESUME at derek@cambridgeinfotech.in

Location?

CambridgeAcademyofEnglish 2020-09-16 14:35:18
Bangalore
button_idli 2020-09-16 14:35:42
akshaykumar51 2020-09-16 11:13:29
How to display mobile no vertically.

Insert 98961237890

Display like beloy
9
8
9
6
1
2
3
7
8
9
0

Simple bro if you can create a logic.

button_idli 2020-09-16 14:35:50
Harikrishnan5494 2020-09-16 12:32:40
<?php

$str = str_split(“98961237890″);
foreach($str as $a => $b){
echo $str[$a].”<br>”;
}

?>

Like this

button_idli 2020-09-16 14:35:57
CambridgeAcademyofEnglish 2020-09-16 14:35:18
Bangalore

Okie

Vineet492 2020-09-16 16:35:53
luv_php-23756.jpg

Vineet492 2020-09-16 16:36:11
luv_php-23757.jpg

rohit267 2020-09-16 18:12:09
Vineet492 2020-09-16 16:36:11

i think it’s jobs routes but you are opening jobs-posting

altomi93 2020-09-17 11:30:22
hi guys, how to reuse variables php when i close and reopen tag php?
kazeem449 2020-09-17 12:13:51
Can anyone pls give suggestions and improvements to be made on my new app https://bit.ly/3c7RNo5
sonu mas 2020-09-17 15:43:12
Looking for php developer in location kalyan
ipsita11 2020-09-17 18:27:10
Somebody can help to get subcategories from db of a particular catagory. ?
rohit267 2020-09-17 18:44:06
ipsita11 2020-09-17 18:27:10
Somebody can help to get subcategories from db of a particular catagory. ?

table structure

rohit267 2020-09-17 18:44:10
use sql
ipsita11 2020-09-17 19:00:47
rohit267 2020-09-17 18:44:06
table structure

No. I have the table structure , i know the logic but i lil confuse about syntax

ipsita11 2020-09-17 19:01:36
luv_php-23781.jpg

ipsita11 2020-09-17 19:02:16
Is it right way of writing the code??
rohit267 2020-09-17 20:11:54
ipsita11 2020-09-17 19:01:36

use fetch assoc for associative array

ipsita11 2020-09-17 21:01:49
I used but not getting the output.
Harikrishnan5494 2020-09-18 05:54:07
ipsita11 2020-09-17 19:02:16
Is it right way of writing the code??

Just try with session..it may works

ipsita11 2020-09-18 05:55:59
Harikrishnan5494 2020-09-18 05:54:07
Just try with session..it may works

That’s working. But not i m not getting subcategories according to category

Harikrishnan5494 2020-09-18 05:56:54
Oh then you need to Modify that code
ipsita11 2020-09-18 05:58:44
Where??
ipsita11 2020-09-18 05:58:54
Kindly check nd tell me
Harikrishnan5494 2020-09-18 05:59:11
luv_php-23800.jpg

Harikrishnan5494 2020-09-18 05:59:22
It’s simple
Harikrishnan5494 2020-09-18 05:59:34
Wait I will tell you
ipsita11 2020-09-18 06:00:21
luv_php-23803.jpg
this is my code
Harikrishnan5494 2020-09-18 06:00:31
Can you share me that code
ipsita11 2020-09-18 06:00:56
<?php
include ‘dbcon.php’;
?>
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Document</title>
</head>
<body>
<?php
$query=”SELECT * FROM categories”;
$result= mysqli_query($conn,$query);
$row= mysqli_fetch_assoc($result);
$catimg = $row[‘id’];
// $catname = $row[‘category_name’];
?>
<table>
<tr>
<td><b>Sr.No.</b></td>
<td><b>Name</b></td>
<td><b>Images</b></td>
</tr>
<?php
$records = mysqli_query($conn,”SELECT * FROM sub_categories”);
$data = mysqli_fetch_assoc($records);
$subcatimg = $data[‘category_id’];
if ($catimg == $subcatimg ){

while($data = mysqli_fetch_assoc($records)){

?>
<tr>
<td><?php echo $data[‘id’]; ?></td>
<td><a href=””><?php echo $data[‘subcategory_name’]; ?></a></td>
<td><img src=”images/<?php echo $data[‘subcategory_img’]; ?>” width=”100″ height=”100″></td>
</tr>
</table>
<?php
}
}
?>
</body>
</html>

Harikrishnan5494 2020-09-18 06:01:42
I will share it shortly
ipsita11 2020-09-18 06:02:09
Harikrishnan5494 2020-09-18 06:01:42
I will share it shortly

sure ,

Harikrishnan5494 2020-09-18 06:09:25
<?php
include ‘dbcon.php’;
?>
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Document</title>
</head>
<body>
<table>
<tr>
<td><b>Sr.No.</b></td>
<td><b>Name</b></td>
<td><b>Images</b></td>
</tr>
<?php
$query=”SELECT * FROM categories”;
$result= mysqli_query($conn,$query);
While ($row= mysqli_fetch_assoc($result)){
$catimg = $row[‘id’];
$records = mysqli_query($conn,”SELECT * FROM sub_categories where category_id=’$row[id]’ “);
$data = mysqli_fetch_assoc($records);
$subcatimg = $data[‘category_id’];
?>
<tr>
<td><?php echo $data[‘id’]; ?></td>
<td><a href=””><?php echo $data[‘subcategory_name’]; ?></a></td>
<td><img src=”images/<?php echo $data[‘subcategory_img’]; ?>” width=”100″ height=”100″></td>
</tr>
</table>
<?php
}

?>
</body>
</html>

ipsita11 2020-09-18 06:11:56
Harikrishnan5494 2020-09-18 06:09:25
<?php
include ‘dbcon.php’;
?>
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Document</title>
</head>
<body>
<table>
<tr>
<td><b>Sr.No.</b></td>
<td><b>Name</b></td>
<td><b>Images</b></td>
</tr>
<?php
$query=”SELECT * FROM categories”;
$result= mysqli_query($conn,$query);
While ($row= mysqli_fetch_assoc($result)){
$catimg = $row[‘id’];
$records = mysqli_query($conn,”SELECT * FROM sub_categories where category_id=’$row[id]’ “);
$data = mysqli_fetch_assoc($records);
$subcatimg = $data[‘category_id’];
?>
<tr>
<td><?php echo $data[‘id’]; ?></td>
<td><a href=””><?php echo $data[‘subcategory_name’]; ?></a></td>
<td><img src=”images/<?php echo $data[‘subcategory_img’]; ?>” width=”100″ height=”100″></td>
</tr>
</table>
<?php
}

?>
</body>
</html>

Did u modify??

Harikrishnan5494 2020-09-18 06:12:08
Yup
ipsita11 2020-09-18 06:12:26
Let me check
|