Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir,

" class="label label-success">Edit ( ! ) Notice: Undefined index: city_id in C:\wamp\www\admin\city-list.php on line 78 Call Stack #TimeMemoryFunctionLocation 10.0017252736{main}( )..\city-list.php:0 " class="label label-danger">Delete 2 jaipur active ( ! ) Notice: Undefined index: city_id in C:\wamp\www\admin\city-list.php on line 78 Call Stack #TimeMemoryFunctionLocation 10.0017252736{main}( )..\city-list.php:0 " class="label label-success">Edit ( ! ) Notice: Undefined index: city_id in C:\wamp\www\admin\city-list.php on line 78 Call Stack #TimeMemoryFunctionLocation 10.0017252736{main}( )..\city-list.php:0 " class="label label-danger">Delete

2) (!)undefined index:country_name in c\wamp\www\admin\state-add.php on line94call stack#timememoryfunction{main}()...\state-add.php:()0 "selected>(!)

these two error show in my project so, plz help me.

code is here,
1st error on this line,
Edit Delete
2nd error on this line,
HTML
<option value="<?php echo $rws1['country_id']; ?>" <?php echo $select; ?>><?php echo $rws1['country_name']; ?></option>


What I have tried:

i tierd bcz already insert the data in sql but not show the country name and not work the action button in action minus edit/delete the country.
Posted

1 solution

Look at the errors:
Undefined index: city_id in C:\wamp\www\admin\city-list.php

undefined index:country_name in c\wamp\www\admin\state-add.php

Now look at your code:
PHP
php echo $rws['city_id'];

And
PHP
php echo $rws1['country_id'];

You need to look at what the indexes should be...we can't do that for you...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900