473,388 Members | 1,215 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How do I change font color in php

1
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 1185
Dormilich
8,658 Expert Mod 8TB
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
by: Ahmad Hassan | last post by:
How do you change the foreground color and font on the console using Visual C++ 6.0
1
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...
0
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
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
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...
0
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...
2
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...
2
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.