Jump to content

Recommended Posts

The file is uploading, and there are no errors, but I'm not seeing any updates to 'tblatheletepics'

 

can someone help me out?

also, if you have any ideas for how to accomplish this, i'm game for those too.  Thanks so much.

 

</head>
<body>
<?PHP
$ID = $_SESSION['SESS_MEMBER_ID'];
$conn = mysql_connect("host", "db", "pwd*"); 

if (!$conn)
{
  die('Could not connect: ' . mysql_error());
}

$select = mysql_select_db('sportstalkadmin', $conn);

if (!$select)
{
  die('could not select db: sportstalkadmin ' . mysql_error());
}

$result = mysql_query("SELECT strLastName FROM tblathletes WHERE intAthleteID='$ID'");


?>
<h1>Welcome <?php while($row = mysql_fetch_array($result)) echo $row['strLastName'];?></h1>
<?php

$displayimage = "SELECT strPicPath FROM tblathletepics WHERE intAtheleteID='$ID'";
$result1 = mysql_query($displayimage) or die('Error, query failed');
$row1 = mysql_fetch_assoc($result1);
$img = $row1['strPicPath'];

$displayvideo = "SELECT strVideoPath FROM tblathletevideos WHERE intAtheleteID='$ID'";
$result2 = mysql_query($displayvideo) or die('Error, query failed');


?>
<div align="left">
<p><img src="<?php echo $img;?>" height="200" width="200"/></p>

<a href="sports-memberprofile.php">Edit/Create Profile</a> | <a href="sports-logout.php">Logout</a>

<?php
$displayvideo1 = "SELECT strVideoPath FROM tblathletevideos WHERE intAtheleteID='$ID'";
$result4 = mysql_query($displayvideo1) or die('Error, query failed');
$row4 = mysql_fetch_assoc($result4);
$img4 = $row4['strVideoPath'];

?>


Highlight Reel1<a href="'pop2.php?url="<?php echo $img4;?>"</a>  

<p> </p>
<p>  <a href="index.htm">..Home</a>
</body>
</html>

 

Link to comment
https://forums.phpfreaks.com/topic/163361-insert-or-update/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.