473,609 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I change font color in php

1 New Member
I have never worked with php/mysql, my partner wrote the site, and have now asked me to change the font color on the following:

Expand|Select|Wrap|Line Numbers
  1. </table> <?php do { ?> <?php
  2.                                 $txt = "form";
  3.                                 $txt1 = $row_Result['date'];
  4.                                 $formname = $txt . $txt1;
  5.  
  6.                                 $clientid = $row_Result['id'];
  7.                               ?> <?php
  8.                               if(isset ($_SESSION['MM_Username'])=="")
  9.    {
  10. $categoryr = $row_Result['category'];     
  11. $descriptionr = "Please log in to view details.";
  12. $namer = "Please log in to view details.";
  13. $surnamer = "Please log in to view details.";
  14. if($totalRows_Result == 0) {
  15. $categoryr = "No results found under search paramaters.";
  16. $descriptionr = "";
  17. $namer = "";
  18. $surnamer = "";
  19.   }
  20.  
  21.    }
  22.    else
  23.    {
  24.    if($totalRows_Result > 0) {
  25.                                 mysql_select_db($database_lawyerme, $lawyerme);
  26. $query_Recordset1 = "SELECT * FROM responses WHERE firm_id = $firmid AND client_id = $clientid";
  27. $Recordset1 = mysql_query($query_Recordset1, $lawyerme) or die(mysql_error());
  28. $row_Recordset1 = mysql_fetch_assoc($Recordset1);
  29. $totalRows_Recordset1 = mysql_num_rows($Recordset1);
  30.  
  31. $theclass = "border:1px solid #FF0000;";
  32.  
  33.  if($totalRows_Recordset1 > 0) {
  34.  
  35.       $theclass = "";
  36.   }
  37.  $categoryr = $row_Result['category']; 
  38. $descriptionr = $row_Result['description'];
  39. $namer = $row_Result['name'];
  40. $surnamer = $row_Result['surname'];
  41. }
  42. else{
  43. $categoryr = "No results found under search paramaters.";
  44. $descriptionr = "";
  45. $namer = "";
  46. $surnamer = "";
  47. }
  48.    }
  49.  
  50. ?>
He wants the "Please log in to view details" to be red?
Apr 1 '16 #1
1 1195
Dormilich
8,658 Recognized Expert Moderator Expert
Font colour is a client-side CSS property. you would have to apply it to the HTML element (which is not part of this snippet) that bears the message.
Apr 2 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
9005
by: Ahmad Hassan | last post by:
How do you change the foreground color and font on the console using Visual C++ 6.0
1
5335
by: Ada | last post by:
i'm trying to use Regex to match a 4 number group pattern. once a match is found, write it to RichTextBox in red. test data: This is my 4567 test data. 1234this is another line of data. Here's two more 9876 5432. What a headache!!!
0
2695
by: Sreejumon[MVP] | last post by:
Hi, Here you go -> Right clikc the datagrid -> Property builder -> format-> header Then set the fontcolor and back color. regadrs
3
2026
by: Wes McCaslin | last post by:
I have create a MDI form and a child form.I have a menu with a option to change the font color to red,blue, or yellow. but for some reason i can't figure this out. thanks wes
7
20026
by: beetdocta | last post by:
hello i was wondering is it possible in visual basic .net to change the color of certain words or phrases without changing the color of all the text in the lable or without having to create a new lable specificly for that word or phrase thanx
0
1287
by: Meera | last post by:
How to write a macro for the following purpose. 1.Search the lines start with "//*"in CSharp file . 2.Change font color of that lines. I wrote the following code Sub ChangeFontColor() Dim props As EnvDTE.Properties props = DTE.Properties("FontsAndColors", "TextEditor") Dim prop As EnvDTE.FontsAndColorsItems = props.Item("FontsAndColorsItems").Object
2
5377
by: flash | last post by:
1-When the mouse is over the course title. Its description should appear. When it the mouse is out, the description should disappear. 2-when double click on a word, its color changes to (green) and gets larger. =================================== <head> <script type="text/javascript"> // i think this code need some modifying function mover(text){ var x=document.getElementById('desplay'); x.innerHTML=text; }
2
7972
by: nspader | last post by:
Hello All, I have a DB that shows information generated on a form setup to look like a calendar. I am working with Windows 2000 and Access 2000. Public Sub PutInData() On Error GoTo Err_PutIndata Dim sql As String Dim f As Form Dim db As DAO.Database
0
8065
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8563
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8524
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8210
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6990
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5507
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.