• 0

Help integrating php/mysql with existing html page.


Question

<p>Hello, I know little about web design so I hope this makes sense.

I am trying to integrate a very basic php site into an existing html website to create a blog. I have one page where I can enter info which is then published onto a page called blogentries.php which works fine on it's own. I want the info to be published into the blogentries div on my website that says "I WANT BLOG ENTRIES HERE" close to the bottom.

I thought it would be a simple case of making the connection to the database in the header and put the rest of the php into the div, but obviously there is more to it than that.

I was wondering if someone could look at the code for the two pages and explain how it should be done?

Thank you

blogentries.php


<?php
mysql_connect("localhost:8889","root","root");
mysql_select_db("Alexweb");
echo "<html><head><link rel='stylesheet' href='style.css' type='text/css'></head><body>";
$query = "select * from content";
echo "<p>Query: ".$query;
$result = mysql_query($query);

$rows = mysql_num_rows($result);
for($i=0;$i<$rows;$i++) {
$row = mysql_fetch_array($result);
echo "<div class='".$row['class']."'>";
echo "<p> Date: ".$row['date']."</p>";
echo "<p><h3>".$row['title']."<?h3></p>";
echo "<p><img src='".$row['image']."'></p></div><p></p>";
echo "<p>".$row['text']."</p>";

}

echo "</body></html>";
?>
[/CODE]

[b]blogpage in html[/b]

[CODE]
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>AJWatson - Blog</title>
<meta name="keywords" content=" art design, digital media design, graphic design, logo design, ">
<link rel="shortcut icon" href="favicon.ico" />
<!-- Load CSS -->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<!-- Load Fonts -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,italic,bold,bolditalic" type="text/css" />
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold" type="text/css" />
</head>

<body>

<!--This is the START of the header-->
<div id="topcontrol" style="position: fixed; bottom: 5px; left: 960px; opacity: 1; cursor: pointer;" title="Go to Top"></div>
<div id="header-wrapper">
<div id="header">
<div id="logo"><a href="index.html"><img src="images/logo.png" width="100" height="80" alt="logo" /></a></div>
<div id="header-text">
<h4>Blog</h4>
<h6><a href="index.html">Home</a> ? Blog</h6>
</div>
</div>
</div>
<!--END of header-->


<!--This is the START of the menu-->
<div id="menu-wrapper">
<div id="main-menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a class="selected" href="blog.html">Blog</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>

<!--This is the START of the footer-->
<div id="footer">
<div id="social-box">
<ul>
<li>
<div class="facebook"><a href=""></a></div>
</li>
<li>
<div class="twitter"><a href=""></a></div>
</li>
<li>
<div class="linkedin"><a href=""></a></div>
</li>
</ul>
</div>
<h6></h6>
</div>
<!--END of footer-->

</div>
<!--END of menu-->

<!--This is the START of the content-->
<div id="content">

<!--This is the START of the blog-->

<div id="blogentries">


I WANT BLOG ENTRIES HERE


</div>
<!--END of blog-->

</div>
<!--END of content-->

</div>
</body>
</html>
[/CODE]

Recommended Posts

  • 0

You know....There was a time when people here would answer questions and help people out quite promptly. I don't know what the reasoning is, but it seems to me like that time has passed! I joined this site because the community was helpful honestly, but I certainly don't get the feeling that anybody wants to help anyone now! I apologize that I am unable to help Brodel. If I could remember how to do that, I would be glad to help out. I just wish someone else would at least acknowledge when people post asking for help. :( If anybody can clarify why that seems like it has changed, I would be grateful!

  • 0

My thread is only about 10 minutes old and people were very helpful the last time I made a post here. Thanks for taking the time to check it out too. :)

Yeah, I figured it wasn't very old. I was just saying that I have run across many instances where the post just sat and sat and sat with no response (including my own posts). That is what concerns me. There should at least be a response saying that someone doesn't know or something like that so people aren't left hanging. :) You are very welcome. Sorry that I couldn't be of more assistance.

EDIT: I am not saying that everyone that sees it should post that they don't know, but at least somebody should take the time to come in and reply is all.

  • 0

Change this:

for($i=0;$i<$rows;$i++) {
$row = mysql_fetch_array($result);[/CODE]

to

[CODE]
while($row = mysql_fetch_array($result)){

//whatever you want to echo from the array here

}
[/CODE]

See the PHP manual on mysql_fetch_array, it's very helpful. Basically, the while loop will run whenever $row evaluates to true, so as it iterates through the array that was returned, you can do whatever you want with each result. This is how most blog systems work. Also, you're going to have to include the blogentires.php code in the other file (either through include() or by pasting it in where you want it to appear).

It might help to download wordpress and take a look at how they do it. They use an object oriented approach, but it might help you understand where to make mysql connections, and where to call posts, etc.

Also, look into using mysqli, it can often be used in place of mysql, and is the newer/better implementation of it.

  • 0

Thanks guys, I managed to get it working with your help :) Just trying to figure the right way to set a maximum width for the images to be displayed at now. Seems trickier than I thought, as usual, lol.

  • 0

Yeah, I figured it wasn't very old. I was just saying that I have run across many instances where the post just sat and sat and sat with no response (including my own posts). That is what concerns me. There should at least be a response saying that someone doesn't know or something like that so people aren't left hanging. :) You are very welcome. Sorry that I couldn't be of more assistance.

EDIT: I am not saying that everyone that sees it should post that they don't know, but at least somebody should take the time to come in and reply is all.

The post was only 10 minutes old when you started posting this and what you are saying doesn't make sense because then someone would post "Nobody knows" after X amount of days (which in itself is a useless post) and then someone else who does know could then come later so how would anyone know that "Nobody knows" when they don't know who else could potentially see it.

  • 0

The post was only 10 minutes old when you started posting this and what you are saying doesn't make sense because then someone would post "Nobody knows" after X amount of days (which in itself is a useless post) and then someone else who does know could then come later so how would anyone know that "Nobody knows" when they don't know who else could potentially see it.

Alright, point taken. I guess it is just my frustration getting to me when it comes to trying to solve an urgent issue and not being able to find any help. I apologize.

Thanks guys, I managed to get it working with your help :) Just trying to figure the right way to set a maximum width for the images to be displayed at now. Seems trickier than I thought, as usual, lol.

No problem. I was glad to be able to help. :)

  • 0

You can set max-width with CSS. You can also set them to a % and set a max and min on the column that contains them.

Yea, I understand how it's done in CSS and tried that but couldn't get it to work. I'm still trying to get my head around integrating the html within the php properly. I'll take a look in the morning with fresh eyes.

  • 0

Yea, I understand how it's done in CSS and tried that but couldn't get it to work. I'm still trying to get my head around integrating the html within the php properly. I'll take a look in the morning with fresh eyes.

Just as a bit of help, I find it's much easier to look at php code with html mixed in when using alternative syntax. For example,


<?php
while($row = mysql_fetch_array($result)){
echo "<div class='".$row['class']."'>";
echo "<p> Date: ".$row['date']."</p>";
echo "<p><h3>".$row['title']."<?h3></p>";
echo "<p><img src='".$row['image']."'></p></div><p></p>";
echo "<p>".$row['text']."</p>"
}
?>
[/CODE]

can also be written as:

[CODE]
<?php while($row = mysql_fetch_array($result)) : ?>
<div class="<?php echo $row['class']; ?>">
// whatever else you want to call
}
<?php endwhile; ?>
[/CODE]

It's easier to figure out what's being generated by php, and what's in the html, and it becomes even easier to read if you ever switch over to object oriented php, as you can call things like:

[CODE] <?php $post::title(); ?> [/CODE]

  • 0

Thanks, I can see why that is probably easier. I'll take a look at it next time I work with php. I've actually changed it a bit and added an option to upload a photo rather than to use a URL so now I'm just trying to figure out how to set it to resize it once it reaches a maximum width.

  • 0

I feel totally lost now. I've been looking online and there are a lot of really long scripts for resizing images. I'm not fussed about actually resizing images and saving them to another folder, just limit the width so it doesn't mess up my page. Modifying this a bit was the closest I got, but it resized and then displayed the entire directory. The thing is I can't do it for a specific file name because obviously it'll change with each upload. This is what I have so far.

php for adding title, date, text and uploading image.


<?php

//This is the directory where images will be saved
$target = "blogimages/";
$target = $target . basename( $_FILES['photo']['name']);
//This gets all the other information from the form
$title=$_POST['title'];
$date= date("d F Y H:i:s");
$photo=($_FILES['photo']['name']);
$text=$_POST['text'];

//This keeps the formatting of text entered into the text area
$text=nl2br($text);
// Connects to your Database
mysql_connect("localhost:8888","root","root") or die(mysql_error()) ;
mysql_select_db("Alexweb") or die(mysql_error()) ;
//Writes the information to the database
mysql_query("INSERT INTO `blogentries` VALUES ('$title', '$date', '$photo', '$text')") ;

//Writes the photo to the server
if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))
{
//Tells you if its all ok
echo "The photo ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your entry has been added to the blog";
}
else {
//Gives an error if its not
echo "Sorry, there was a problem uploading your photo.";
}

?>
[/CODE]

php for pushing the posts to my blog

[CODE]
<?php

// Connects to your Database
mysql_connect("localhost:8888","root","root") or die(mysql_error()) ;
mysql_select_db("Alexweb") or die(mysql_error()) ;

echo "<html><head><link rel='stylesheet' href='style.css' type='text/css'></head><body>";

//Retrieves data from MySQL
$data = mysql_query("SELECT * FROM blogentries ORDER BY date DESC") or die(mysql_error());

//Puts it into an array
while($info = mysql_fetch_array( $data ))
{

//Outputs the image and other data
Echo "<h4></b> ".$info['title'] . "</h4>";
Echo "<b><h6></b> ".$info['date']."</h6><br>";
Echo "<p><img src=http://localhost:8888/uploadtest/blogimages/".$info['photo'] . "></p><br>";
Echo "<b><p></b> ".$info['text'] . "<p><br>";
Echo "<br>";

}

Echo "</body></html>";

?>
[/CODE]

  • 0

one last question...

I have the option to upload an image, however if nothing is uploaded I get a broken image icon in my post. Is there a way to echo the image if it's present but otherwise leave blank? This is what I have at the moment. I've looked at the !empty function but I'm not sure how to implement it or if it's the right way to do it in this case.


//Outputs the image and other data
echo "<h4></b> ".$info['title'] . "</h4>";
echo "<b><h6></b> ".$info['date']."</h6><br>";
echo "<p><img src=/blogimages/".$info['photo'] . "></p><br>";
echo "<b><p></b> ".$info['text'] . "<p><br>";
echo "<div class='blogspacer'></div>";
[/CODE]

  • 0

you could do something like

if(isset($info['photo']))
{
	echo "&lt;p&gt;&lt;img src='/blogimages/" . $info['photo'] . "' /&gt;&lt;/p&gt;&lt;br /&gt;";
}
else
{
	echo "&lt;p&gt;&lt;img src='/blogimages/noimage.png' /&gt;&lt;/p&gt;&lt;br /&gt;";
}

That would echo "noimage.png" instead if no image is there.

That's assuming the $info['photo'] var is empty when there's nothing uploaded.

Else you'll need a file_exists() call.

Also, some of your HTML in the post above is incorrect. You are closing the <b> before closing the tag inside, like here:

echo "&lt;b&gt;&lt;h6&gt;&lt;/b&gt;" . $info['date'] . "&lt;/h6&gt;&lt;br&gt;";

Should probably be this:

echo "&lt;b&gt;&lt;h6&gt;" . $info['date'] . "&lt;/h6&gt;&lt;/b&gt;&lt;br&gt;";

  • 0

Thanks, so I could just make a small noimage.png that is just the same colour as my background, right? Then there would technically be an image there, but it would look blank.

thanks for pointing out the mistake also :)

  • 0

Or you could just not write anything out, save loading a blank image from the server.

Edit: Also, the mysql_ API is deprecated (and for an old version of MySQL), if you're writing brand new code now either use the mysqli library, or PDO.

  • 0

I have added a transparent noimage.png to the blogimages folder and tried the above code as well as a blank div, but each time I make a post with no image there is still a broken image link. Am I adding it incorrectly or something?


//Puts it into an array
while($info = mysql_fetch_array( $data ))
{
//Outputs the image and other data
echo "<h4></b> ".$info['title'] . "</h4>";
echo "<b><h6>".$info['date']."</h6></b><br>";
if(isset($info['photo']))
{
echo "<p><img src=/blogimages/" . $info['photo'] . " /></p><br />";
}
else
{
echo "<p><img src='/blogimages/noimage.png' /></p><br />";
}
echo "<b><p></b> ".$info['text'] . "<p><br>";
echo "<div class='blogspacer'></div>";
}
[/CODE]

If it makes any difference, in chrome and ie the broken image icon shows. In firefox it doesn't.

Is it a change I need to make to my addblog.php also?

[CODE]
//This gets all the other information from the form
$title=$_POST['title'];
$date= date("d F Y H:i:s");
$photo=($_FILES['photo']['name']);
$text=$_POST['text'];


//This keeps the formatting of text entered into the text area
$text=nl2br($text);

// Connects to your Database
mysql_connect("localhost:8888","Alexweb","*****") or die(mysql_error()) ;
mysql_select_db("Alexweb") or die(mysql_error()) ;

//Writes the information to the database
mysql_query("INSERT INTO `blogentries` VALUES ('$title', '$date', '$photo', '$text')") ;


//Writes the photo to the server
if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))
{


//Tells you if its all ok
echo "<h4>The photo ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your entry has been added to the blog" ;
echo '<br><a href="http://www.mywebsite.com/blog2.php"> Click here to view</a>';
}
else {
//Gives an error if its not
echo "<h4>thanks for your entry .";
echo '<br><a href="http://www.mywebsite.com/blog2.php"> Click here to view</a>';
}
[/CODE]

  • 0

I assume it doesn't work if you post an image, either, as you've got quotes all over the place there. This line:


echo "<p><img src=/blogimages/" . $info['photo'] . " /></p><br />";
[/CODE]

Should be

[CODE]
echo '<p><img src="/blogimages/' . $info['photo'] . '"/></p><br />';
[/CODE]

To make things easier to read, you might want to use single quotes with PHP, double quotes with HTML.

Also, is the noimage.png in the correct place?

  • 0

if I include an image it does work and uploads it to blogimages. There is definitely a noimage in the correct place.

Yea, I really need to tidy things up. It's getting a bit of a mess, still getting he hang of integrating the html and php, as you can tell, lol.

  • 0

I suspect that $photo=($_FILES['photo']['name']); does not return FALSE if there is no image. You should check if $_FILES['photo'] is set, and then assign it to $photo, which should by default be set to FALSE.

i'm not entirely sure what you mean. i don't want to keep bugging people with basic questions though so i'll do a bit of googling. thanks again for your help :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Yes guys I know we have a memory and storage price gouging thanks to AI datacenters, so basically you are complaining when these crazy prices get discounts. It all starts to sound like the price of gas and a loaf of bread "was so much cheaper ten years ago!" Go wait until 2030 or whenever this BS ends and skip commenting then? Damned if ya do, damned if ya don't... 🙄
    • 7 Days: Windows 11 turns five, Ford made a mistake, and Starlink plans direct mobile service by Aditya Tiwari 7 Days is a weekly roundup of picks of what's been happening in the world of technology - written with a dash of humor, a hint of exasperation, and an endless supply of (black) coffee. This week's highlights include Apple's $4 billion class-action lawsuit, a smartphone with a 14,000 mAh battery, Google catching up with Anthropic, and the Steam Summer Sale 2026. Let's get started. You can check out the recent issues of the 7 Days weekly roundup. Windows 11 turns five Microsoft's Windows 11 operating system completed five years of existence on June 24 this week. According to the latest data, the controversial operating system now runs on almost 72% of Windows PCs worldwide. The launch of Windows 11 had several dramatic twists and an entire preview build leaked ahead of launch. Ford made a mistake Many would agree that one of the biggest mistakes the automobile industry made was surrendering to the giant touchscreens and removing physical buttons. However, Ford made even more. The company executives said they made a mistake by replacing human engineers with AI. Ford admitted that AI couldn't replace experienced engineers and the company is rehiring veterans to improve quality and cut recall costs. Starlink mobile service Elon Musk's SpaceX wants to use its massive constellation of satellites to power your phone's network. The company is reportedly considering building a terrestrial mobile network to complement Starlink’s satellite coverage and planning to sell mobile phone plans directly to customers in the US as part of a wider expansion of Starlink. Our Features Our coffee-powered team published a platter of editorials, opinion posts, hands-on experiences, and guides. Check them out: Hey Google, these are the Gemini features I want in 2026 You've tried DuckDuckGo and Brave Search, now get serious with SearXNG Why Delta Chat is the best decentralized messenger you have probably never tried We check out the SKG PS700 Neck Massager SKG Hand Massager with Heat OS500 hands on Hands-on with BOOX Tappy: cute little reading accessory Hands-on with the ProtoArc EM25: Affordable ergonomic mouse that focuses on the right things Hands-on with iFlyTek AINote 2 E-Ink tablet: insanely thin and smart This week in software news Catch up on some of the latest software news updates that arrived throughout the week: Firefox 152.02: The latest browser update brought fixes for performance, translation, and cloud storage services. It addressed problems with localization, playback issues with certain MP4 files, and performance issues on websites that perform multiple encryption operations simultaneously. Ubuntu Livepatch: Canonical's zero-downtime service Livepatch arrived on Arm64 devices running Ubuntu Core 26 and Ubuntu 26.04 LTS. Livepatch allows users to apply important kernel updates without any service interruption or rebooting. AMD 26.6.2 driver: The new driver version for Radeon hardware owners brought FSR 4.1 upscaling tech to an entire generation of its products: the RX 7000 series. However, the 26.6.2 FSR driver flew dark clouds over users, breaking many Windows PCs and causing a yellow bang or other launch failures on Windows 10. AMD later pushed the 26.6.3 Hotfix update to fix the issues. Goodbye Notion email: It's been a little over a year since the AI-powered email client launched. The company has announced its shutdown, which will take effect on September 22, and said it doesn't see the point in maintaining a frontend email client when people are moving towards automation. Ventoy version 1.1.14: The biggest change in the Rufus alternative is an updated Secure Boot shim file to resolve the UEFI CA 2023 issue, a compatibility problem that affected Secure Boot environments on some systems. This week in hardware news Image: Valve Catch up on some of the latest software news updates that arrived throughout the week: 14,000 mAh battery: Yes, that's something that iPhone users can only dream of. But a Chinese company is reportedly developing a smartphone with a 14,000mAh battery. If it ever sees daylight, it would be the largest battery ever on a smartphone, possibly offering a week of backup on a single charge. Steam Machine prices: Valve finally confirmed the Steam Machine's pricing. Starting at $1,049 for the 512GB option, storage and the included controller are the biggest differences among the four variants presented. Xbox just got more expensive: Rising costs of storage and memory prompted Microsoft to raise prices. Xbox Series X|S models wth 512GB storage will cost $100 extra, and 1TB models will cost $150 extra. However, the Redmond giant discounted the 2TB models. New NVIDIA supercomputers: The company announced plans to deploy 35 high-performance (HPC) AI supercomputers across Europe this year, primarily at national supercomputer centers, AI factories, and research institutes. Fast fast memory: Samsung built the UFS 5.0 storage solution, which pushes the data transfer speeds to 10.8 GB/s on mobile devices. It can open doors for faster local AI performance, which otherwise doesn't look promising under the current scenario. Custom chips for TikTok: Qualcomm is reportedly in talks with ByteDance to build custom video chips optimized for its massive data center workloads. ByteDance needs hardware that can help it ingest, process, and serve billions of short-form videos daily. OpenAI Jalapeño: The AI giant announced its first custom-designed AI chip developed in partnership with Broadcom. Jalapeño is designed specifically for large language model inference and is the first product from a multi-generation compute platform being developed by OpenAI. Galaxy A27 5G: The new mid-range smartphone from Samsung arrived with a platter of updates over A25 5G, including a 120Hz refresh rate, Infinity-O punch-hole camera design, expanded AI features, and more. Qualcomm takes on NVIDIA: The chipmaker baked the new Dragonfly CPU, High Bandwidth Compute technology, and AI chips to challenge NVIDIA in the AI data center market. Qualcomm said its new lineup improved per-watt performance, token throughput, and total cost of ownership for AI data centers. IBM goes sub-1nm: The company reached a semiconductor milestone by announcing the world's first sub-1-nanometer chip technology, based on a 0.7nm (7-angstrom) node. It can pack nearly 100 billion transistors onto a chip the size of a fingernail. This week in Google News Image: Google Catch up on some of the latest Google news updates that arrived throughout the week: What to expect from the Pixel 11 series: The upcoming lineup is expected to feature four different variants and a price hike due to the global memory shortage. Read our detailed coverage to know about the expected Pixel 11 specs. Stopping Google: The Free Software Foundation Europe urged the European Commission to stop Google from silently reinstalling AI models and requiring registration. Users should be able to fully uninstall AI-based features from Android devices and access interoperability features. Chasing Anthropic: The Claude-maker is making new strides every day in the AI world, but the search giant is struggling to catch up. Google is said to be reshuffling its AI coding "strike team" it created roughly about two months ago, turning it into a broader model-training group amid talent losses at DeepMind. New Google Play billing: Google has faced a long legal battle with Epic Games, and the search giant is rolling out a redesigned Play Store billing and fee structure. Available in the US, UK, and the European Economic Area, it will take effect on June 30. Error-free Sheets? A new feature in Google Sheets allows Gemini to inspect formula errors and apply corrections directly in the spreadsheet. Google said the new feature can handle pretty much everything from basic arithmetic to very complex calculations. Breeze through airports: Google Wallet became the first digital wallet to integrate with TSA PreCheck Touchless ID, a program that enables travelers to move through airport security checkpoints using facial recognition instead of a physical ID or boarding pass. Built-in computer control: Gemini 3.5 Flash got a built-in tool called Computer Use, which allows developers to build agents that navigate browsers, mobile interfaces, and desktop applications. Google Finance: The redesigned platform is now out of beta. Google has added several new features, including portfolio tracking, scheduled market briefings, and a dedicated Android app. An iOS app is planned for later in 2026. This week in Apple News Image: Apple Catch up on some of the latest Apple news updates that arrived throughout the week: Trade secrets reportedly exposed: Apple's manufacturing partner in India, Tata Electronics, confirmed a cybersecurity attack on its systems that may have exposed trade secrets of Apple and Tesla. Hackers reportedly stole up to 630 GB of data and posted up to 200,000 files on the dark web. Grab your payout: Apple is facing a class-action lawsuit in the UK and might end up paying $4 billion (£3 billion) if it loses. The iPhone-maker has been accused of trapping users in iCloud by restricting rivals from fully accessing iOS. The tribunal recently set a full trial date for October 2028. iOS 27 Beta 2: Apple's latest iPhone update is moving forward, and a new beta was pushed this week. While iOS 27 Beta 2 for developers pushed several bug fixes across the system, the AirPort Utility was deprecated; it's no longer available to new users. Price hike: Just like others, Apple has raised prices of several MacBook and iPad models, including the MacBook Neo, which now starts at $699. This comes after reports that this year's iPhone will also become expensive. Second-gen iPhone Fold: While the world is desperate to see Apple's foldable iPhone, leakers have started to talk about its second generation. Apple is expected to launch a successor in Fall 2027, featuring a wider folding display while reusing the same screen found in the first generation. The search for memory: Apple is reportedly looking at blacklisted Chinese companies amid rising memory chip prices. The company is seeking clearance from the Trump administration to purchase memory from ChangXin Memory Technologies (CXMT). This week in Meta news Image: Meta Catch up on some of the latest Meta, WhatsApp, and Instagram updates that arrived throughout the week: WhatsApp gets a new final boss: Mark Zuckerberg announced that CRED's Kunal Shah will become the next global head of WhatsApp, as Will Cathcart steps down and moves to a new role at Meta. The social media giant invested money in CRED through a Series H funding round. AI glasses in 26 styles: A new line of Meta Glasses launched in partnership with EssilorLuxottica. Starting at $299, it comes in more than two dozen styles across different colors, lenses, and frames. More ways to doomscroll: Instagram for TV is now available on Samsung smart TVs launched in 2020 and later years. The company also announced that it's testing several new features on Instagram for TV, bringing it closer to YouTube and Netflix. This week in AI news Image: Microsoft Catch up on the latest artificial intelligence news updates that arrived throughout the week: Water-saving data center: Microsoft is building a gas-powered AI data center with a capacity of 2 gigawatts. The company will deploy a closed-loop cooling system, saying that its total lifecycle water use will be "only a fraction of that consumed annually by a typical fast-food restaurant.” OpenAI beats Claude Mythos: GPT-5.5-Cyber got a limited release for verified defenders. It scored 85.6% on CyberGym, compared with 81.8% for GPT-5.5 and 83.8% for Claude Mythos 5. The AI giant also announced a limited preview of its new GPT-5.6 model series, whose flagship model, GPT-5.6 Sol, is targeted at demanding reasoning and agentic workloads. Proceed with caution: The Trump administration instructed OpenAI to limit the distribution of GPT-5.6 to a small group of government-approved partners rather than the general public, as has happened in the past. Claude Tag: Anthropic launched its new AI teammate for Slack, enabling teams to delegate tasks to Claude directly within Slack channels. What makes it different is that it's designed to operate as a shared assistant for an entire team rather than a single user. Challenging US dominance: The UK government has funded £60 million ($70 million) to Oxford and UCL to keep the country in the AI race by building open-source, low-hardware alternatives. The two organizations will share the money over six years. Paying for AI development: One cost is the loss of human jobs. Oracle laid off about 21,000 employees (13% of its workforce) amid increasing AI adoption. The software giant said that AI advancement and adoption "may continue to result in reductions to our workforce." GitHub strips features: It removed the ability to manually detect an AI model from its Copilot Free and Student plans. In other words, its automatic routing system is the only way to choose a model. Are you a copycat? Anthropic accused Alibaba of creating about 25,000 fraudulent accounts to copy Claude's capabilities at scale. It told US lawmakers that operators linked to Alibaba generated 28.8 million exchanges with Claude between April 22 and June 5, 2026. Reserve my memory: The semiconductor company Micron revealed that AI companies are spending billions to lock up its memory years in advance. Its customers have locked in $22 billion worth of memory supply commitments. Another AI battle: A publisher group that collectively owns 400 newspapers sued OpenAI and Microsoft for scraping their content to build AI chatbots such as ChatGPT and Copilot without compensation. Anthropic AI ban: The US government partially reversed the Anthropic AI ban, allowing it to restore Claude Mythos 5. However, it can only be deployed for a limited set of US organizations that operate and defend critical infrastructure. This week in Microsoft News In some of the hottest stories of the week: Windows 10 quietly gained a year of support and updates, Windows 11 KB5095093 released with a long list of features, and Windows 11 26H2 is finally getting the ability to disable web search results in Windows 11 Search. You can check out Taras's freshly baked Microsoft Weekly roundup to catch up on all the interesting stories this week. This week in science news Image by Pascal Küffer via Pexels Catch up on some of the latest science and out-of-this-world updates that arrived throughout the week: 13 billion-year-old secret: Scientists found that the universe's first molecule (helium hyride) reacted with hydrogen much faster in cold temperatures than previously believed. It's a new breakthrough that changes our understanding of early star formation. Cosmic Living Fossil: Astronomers found CR3, a surprisingly pristine 11.5-billion-year-old galaxy dubbed a "living fossil." It suggests the universe's first generation of stars formed much later than previously assumed. Einstein's 100-year-old theory: Thanks to relativity, researchers calculated that clocks on Mars tick 477 microseconds faster per day than on Earth. This minute gravitational difference is crucial for synchronizing future interplanetary space missions. Don't panic: NASA's James Webb Telescope finally eliminated the threat of asteroid 2024 YR4 striking the moon in 2032. The rocky giant will give us a safe fly-by without causing any harm. This week in gaming? The latest issue of Pulasthi's Weekend PC Game Deals curates several exciting games on sale this week. RollerCoaster Tycoon 3 Complete Edition and Voidwrought have replaced the old titles in this week's Epic Games Store giveaway. For Xbox Free Play Days, the new titles include House Flipper 2, Blades of Fire, and Assetto Corsa Competizione. Steam Summer Sale 2026 kicked off with discounts for everything from the newest games and retro gems to all sorts of DLC packs, until July 9. Meanwhile, NVIDIA GeForce NOW added support for several new titles, including Dark Scrolls, SAND: Raiders of Sophie, and EMPULSE. That said, here are some more stories from the gaming world: Age of Empires Mobile comes to PC, here's how to carry over progress from your phone Xbox Insiders get Xbox 360 achievements and Gamertag character upgrades Grand Theft Auto VI pricing revealed alongside Ultimate Edition and pre-loading details Sony announces Bungie layoffs that will affect "significant number of employees" From the review corner This week, Steven published a review of the TerraMaster F4-425 Pro AI-powered NAS, featuring an all-metal exterior on the lines of the four-bay F4-425 series. Powered by the octa-core Intel Core N350, the TerraMaster F4-425 Pro is highly energy-efficient, operates quietly, and offers three M.2 slots. On the flip side, OpenClaw support requires removing security hardening (SPC), AI requires a paid subscription, the software feels like a beta, and the rubber feet constantly come unstuck. ZimaBoard 2 1664 Starter Kit Another NAS setup reviewed this week is the ZimaBoard 2 by IceWhale Technology. It comes in a small footprint with great modern hardware through a combo of Intel N150 and DDR5 memory support. On the downside, the memory is not upgradeable, ZimaOS is a bit barebones, factory reset requires USB flashing, and there is no automatic backup via the mobile app. Synology's BeeCamera software Christopher wrote his review of the software that powers BeeCamera Plus and said "the BeeCamera app is a great way to add private home monitoring to your network but there are some limitations." It's free with an easy setup process, fast response time, and good AI and detection features. However, there is no desktop version; it only works with Synology cameras, some configurations are difficult to set up on a phone, and it lacks the features of the surveillance station. More price drops! We got you covered with some hot tech deals all week. For some reason, if you missed out on a great discount, here is a summary of some recent deals that are still alive: Onkyo Dolby Atmos AV receivers are really solid deals 4TB TEAMGROUP MP44Q, 2TB T-Force G50, and 2TB WD My Passport SSDs drop to great prices Edifier S3000MKII hi-fi audiophile grade bookshelf speaker is at its lowest price now The best controller for XBOX and PC is down to the lowest price Limited time Prime Day deal cuts price of this Hisense 65" 4K smart TV in half To view all of our recent deals, click here. So, these were some of the biggest tech news and other updates from this week. There will be more issues of our 7 Days series in the coming weeks and months, so stay tuned. You can also support Neowin by registering for a free member account or subscribing to extra member benefits, along with an ad-free tier option. Have a great weekend!
    • Zen Browser 1.21.4b by Razvan Serea Zen Browser is a privacy-focused, open-source web browser built on Mozilla Firefox, offering users a secure and customizable browsing experience. It emphasizes privacy by blocking trackers, ads, and ensuring your data isn't collected. With Zen Mods, users can enhance their browser experience with various customization options, including features like split views and vertical tabs. The browser is designed for efficiency, providing fast browsing speeds and a lightweight interface. Zen Browser prioritizes user control over the browsing experience, offering a minimal yet powerful alternative to traditional web browsers while keeping your online activity private. Zen Browser’s DRM limitation Zen Browser currently lacks support for DRM-protected content, meaning streaming services like Netflix and HBO Max are inaccessible. This is due to the absence of a Widevine license, which requires significant costs and is financially unfeasible for the developer. Additionally, applying for this license would require Zen to be part of a larger company, similar to Mozilla or Brave. Therefore, DRM-protected media won't be supported in Zen Browser for the foreseeable future. Zen Browser offers features that improve user experience, privacy, and customization: Privacy-Focused: Blocks trackers and minimizes data collection. Automatic Updates: Keeps the browser updated with security patches. Zen Mods: Customizable themes and layouts. Workspaces: Organize tabs into different workspaces. Compact Mode: Maximizes screen space by minimizing UI elements. Zen Glance: Quick website previews. Split Views: View multiple tabs in the same window. Sidebar: Access bookmarks and tools quickly. Vertical Tabs: Manage tabs vertically. Container Tabs: Separate browsing sessions. Fast Profile Switcher: Switch between profiles easily. Tab Folders: Organize tabs into folders. Customizable UI: Personalize browser interface. Security Features: Inherits Firefox’s robust security. Fast Performance: Lightweight and optimized for speed. Zen Mods Customization: Deep customization with mods. Quick Access: Easy access to favorite websites. Open Source: Built on Mozilla Firefox with community collaboration. Community-Driven: Active development and feedback from users. GitHub Repository: Contribute and review the source code. Zen Browser 1.21.4b changelog: New Features Updated to Firefox 152.0.2 and 152.0.3 Added 'Edit pinned tab' context menu item to manually set a pinned tab's URL Added 'Add Route for Domain' context menu item to quickly add a tab's domain to the Space Routing settings Fixes Prevent sidebar from flickering when moving a tab (#14131) Full-screening while on a glance tab will now expand the glance tab to a normal tab (#11766) Fixed space routing tabs opening in background when it should be in foreground (#14183) Other minor bug fixes and improvements. Download: Zen Browser | 90.2 MB (Open Source) Download: Zen Browser ARM64 | Other Operating Systems View: Zen Browser Home Page | Screenshots 1 | 2 | Reddit Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I was using searxng for about a year , self hosted, but results were starting to timeout and eventually it became unusable so I switched to degoog. Much better for my needs, more polished and add-ons like maps and calculations etc
  • Recent Achievements

    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
    • Week One Done
      Excellence2025 earned a badge
      Week One Done
    • Week One Done
      flexorcist earned a badge
      Week One Done
    • Week One Done
      Woland13 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      504
    2. 2
      +Edouard
      205
    3. 3
      PsYcHoKiLLa
      149
    4. 4
      Steven P.
      72
    5. 5
      FloatingFatMan
      69
  • Tell a friend

    Love Neowin? Tell a friend!