Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7761791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:13:38+00:00 2026-06-01T14:13:38+00:00

Here is my php that retrieves image from mysql database. I want to resize

  • 0

Here is my php that retrieves image from mysql database. I want to resize the image-

<?php
$con = mysql_connect('db', 'table', 'p/w');
if (!$con) { die('Could not connect: ' . mysql_error()); } 
mysql_select_db("db", $con); 
$result = mysql_query("SELECT * FROM computers WHERE KEYWORDS='Computers'");
echo "<table border='1' width='100%' >"; 
while($row = mysql_fetch_array($result)) { 
    echo "<tr>";
    echo "<td><img src='folder_name/".$row['image_name']."'></td>";
    echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>

Can anyone help ?
thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:13:39+00:00Added an answer on June 1, 2026 at 2:13 pm

    Do you just want the images to display at a certain size? Then enter that in the HTML:

    echo "<td><img src=\"folder_name/{$row['image_name']}\" width=\"100\" height=\"100\" /></td>";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have gallery.php that loads images with src path from a database. I also
I've got a jQuery function that retrieves a JSON response from a PHP page.
For example, my goal is to test the code given here: PHP script that
So I have some PHP code that looks like: $message = 'Here is the
i hope that everyone here know the php 'variable variable' syntax: $color = 'red';
Today I saw a post on php.net, that I'm quoting here: $Bar = a;
This only happens in some IE's. Here: http://animactions.ca/Animactions/volet_entreprise.php You may notice that when you
I have a script that polls a MySQL database (Nagios, specifically) for the date/time
I'm trying to retrieve data from a php file named return that just contains
Basically i want a form that retrieves the value 1 or 0 to see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.