/    Sign up×
Community /Pin to ProfileBookmark

hide unhide table row

Hi below is code that I’m trying to use to add a table row based on some variables, for some reason its not working on my web site but it works on my testing server (XAMPP)

[code=php]
<?php
$first_name = $_SESSION[‘first_name’];
$last_name = $_SESSION[‘last_name’];
$name = $first_name.” “.$last_name;

if($row_get_gifts[‘giver_name’] == $name){
echo “<tr>”;
echo “<td class=’rowLeft’>Change Status </td>”;
echo “<td class=’rowRight’><a href=’deletegiver.php?wish_id=$wish_id&buddy_id=$buddy_id’>Delete</a></td>”;
echo “</tr>”;
}
?>
[/code]

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 13.2006 — I'd start by echo-ing out the values of [B]$row_get_gifts['giver_name'][/B] and [B]$name[/B] and find out if they're not equal (and if not, start digging deeper to find out why not).
Copy linkTweet thisAlerts:
@kprocauthorNov 13.2006 — I did this and they are equal. the only think that would be questionalbe is the the white spaces.

When I echo the variables everything looks equal. the test server shows it correctly but my webserver wich is through a webhosting company does not lshow correctly. both servers are pulling the data from the same mysql database
×

Success!

Help @kproc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...