i recently posted but i do not think i explained it to well.
I have a page products page the url is for example http:.......rest_id=3/area='Enfield'. I have been using similar query throughout my website but this one is not working, even though it was working for about 2 minutes earlier.
I am using a GET statement to get the area name which is in the url, then from there i use the area name to get the correct data from the DB, such as phone number, twitter and Facebook handles. but nothing is showing.
I have error handlers, the only error i have is Notice: Undefined variable: twit in... For all 3 variables, even though they have been declared.
Any ideas why this may be happening.
if (isset($_GET['area'])) {
$franc_dets = $_GET['area'];
$get_franc_d = "SELECT * FROM Franc_dets WHERE Fran_City = '$franc_dets'";
mysqli_stmt_execute($run_get_franc_d);
$iii = 1;
while ($row_get_fram = mysqli_fetch_array($run_get_franc_d)) {
$fran_phone = $row_get_fram['Fran_Contact_Num'];
$twit = $row_get_fram['Twitter'];
$iii++;
HTML
......
<td class='phn_dets'>
<p id='phn_title'>Problems ordering?</p>
<p id='phn_numb'><?php echo $fran_phone ?></p>
</td>
<td class='collapse'>
<img src='./Images/franc_dets_twitter.png' height='50' width='50' alt='Twitter logo'>
</td>
<td class='twitter_dets'>
<p id='sm_title'>Social media</p>
<a id='sm_twit' href='https://twitter.com/<?php echo $twit ?>'>@<?php echo $twit ?></a>
</td>
<td class='collapse'>
<img src='./Images/franc_dets_fb.png' height='50' width='50' alt='Facebook logo' >
</td>
<td class='fb_dets'>
<a id='sm_fb' href='https://www.facebook.com/<?php echo $fb; ?>'><?php echo $fb; ?></a>
mysqli_fetch_associnstead ofmysqli_fetch_array?var_dump($twit);inside the while loop?