LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2004, 07:17 PM   #1
emilioestevezz
Member
 
Registered: Jul 2003
Posts: 38

Rep: Reputation: 15
PHP: changing row color showing mysql results


Hi, i have this little script that shows results from a mysql query, it works but i want to change something. i´ve got 4 records at the databse and i want to show results but one record with a white background color then the second with a black background color then the third again with white background color an so on how can i modify this script to show results in that way???

And here is the script:

// Muestra todos los apellidos encontrados en la tabla
if(mysql_num_rows($result)) {
$rank = 1;
while($row = mysql_fetch_row($result))



print("<td width=\"6%\" bgcolor=\"$color\"><small><HR>");
print("<font face=\"Arial\ size=\"2\"><strong>Id:</strong><a href=\"borra.php?id=$row[0]\"><img src=\"images/tacho.gif\" alt=\"Borrar\" width=\"15\" height=\"22\" border=\"0\" align=\"right\">$row[0]</a></font></small><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Apellido:</strong>$row[1]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Nombre:</strong>$row[2]</font><br>");
print("<font face=\"Arial\" color=\"#CC0000\ size=\"2\"><strong>Teléfono:</strong>$row[4]</font><br>");
print("<font face=\"Arial\" color=\"#CC6600\ size=\"2\"><strong>Dni:</strong>$row[9]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Fecha:</strong>$row[5]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Hora:</strong>$row[6]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Abodado:</strong>$row[7]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Asunto:</strong>$row[8]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Donde nos conoció:</strong>$row[3]</font><br>");
print("<HR></td>");



}else{
echo ("No hay registros para mostrar!");
}



Thanks.
Emilio
 
Old 09-08-2004, 07:55 PM   #2
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Rep: Reputation: 30
make a counter and do even odds?

if(counter==1)
make it white
counter--
else
make it black
counter++

or,

if white
make it black
else
make it white



lots of ways...
 
Old 09-08-2004, 08:11 PM   #3
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Code:
$colours = array( 0 => "#000000", 1 => "#ffffff" );
$rank = 1;
while($row = mysql_fetch_row($result)) {
    $color = $colours[ ($rank % 2) ];
    $rank++;
 
Old 09-08-2004, 08:12 PM   #4
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Rep: Reputation: 30
foolish mod
 
Old 09-09-2004, 12:57 PM   #5
emilioestevezz
Member
 
Registered: Jul 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by CroMagnon
Code:
$colours = array( 0 => "#000000", 1 => "#ffffff" );
$rank = 1;
while($row = mysql_fetch_row($result)) {
    $color = $colours[ ($rank % 2) ];
    $rank++;
Thanks CroMagnon, but maybe theres something wrong on the adaptation that i´ve made, cos it showes results as before all with white background.

I also would like to put a afunction that when there is no data to show tell the user that .


heres is how it is after modifications:

// Muestra todos los apellidos encontrados en la tabla
$colours = array( 0 => "#CCDFED", 1 => "#E1DDF3" );
$rank = 1;

while($row = mysql_fetch_row($result)) {
$color = $colours[ ($rank % 2) ];
$rank++;

print("</tr><tr>");


print("<td width=\"6%\" bgcolor=\"$color\"><small><HR>");
print("<font face=\"Arial\ size=\"2\"><strong>Id:</strong><a href=\"borra.php?id=$row[0]\"><img src=\"images/tacho.gif\" alt=\"Borrar\" width=\"15\" height=\"22\" border=\"0\" align=\"right\">$row[0]</a></font></small><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Apellido:</strong>$row[1]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Nombre:</strong>$row[2]</font><br>");
print("<font face=\"Arial\" color=\"#CC0000\ size=\"2\"><strong>Teléfono:</strong>$row[4]</font><br>");
print("<font face=\"Arial\" color=\"#CC6600\ size=\"2\"><strong>Dni:</strong>$row[9]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Fecha:</strong>$row[5]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Hora:</strong>$row[6]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Abodado:</strong>$row[7]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Asunto:</strong>$row[8]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Donde nos conoció:</strong>$row[3]</font><br>");
print("<HR></td>");
}


?>

Is this ok???
 
Old 09-09-2004, 05:41 PM   #6
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
The <TD> tag looks good, and the logic seems right (I have copied the top portion of your code and tried it out on my server, and it seems to work).

First step I would say is to check the source code of the page from your browser - see if the TD tags are getting the right colour values printed out.

If they are there, then this is very odd - perhaps you have some CSS being included that is overriding your specifications? If they are not, it should give you a hint as to what's really happening. If you'd like, you can paste the HTML here and I'll have a look too. Also, make sure your table is closed off properly - </tr> and </table>. I don't think this would affect the colours, but web browsers are strange beasts.

To tell the user when there is no data, simply put a check just after the while loop - if there is one row of data, $rank will be incremented:

[code]print("<HR></td>");
}
if ($rank == 1) {
print( "No data!" );
}
 
Old 09-10-2004, 01:12 PM   #7
emilioestevezz
Member
 
Registered: Jul 2003
Posts: 38

Original Poster
Rep: Reputation: 15
...

Quote:
Originally posted by CroMagnon
The <TD> tag looks good, and the logic seems right (I have copied the top portion of your code and tried it out on my server, and it seems to work).

First step I would say is to check the source code of the page from your browser - see if the TD tags are getting the right colour values printed out.

If they are there, then this is very odd - perhaps you have some CSS being included that is overriding your specifications? If they are not, it should give you a hint as to what's really happening. If you'd like, you can paste the HTML here and I'll have a look too. Also, make sure your table is closed off properly - </tr> and </table>. I don't think this would affect the colours, but web browsers are strange beasts.

To tell the user when there is no data, simply put a check just after the while loop - if there is one row of data, $rank will be incremented:

[code]print("<HR></td>");
}
if ($rank == 1) {
print( "No data!" );
}

Okay, here is the entire showdata.php:

<?php

$conn = @mysql_connect("localhost", "ssfceo101", "ssfceo23arm99");

if (!$conn) {
echo( "<P>No se pudo conectar " .
"al servidor MySQL.</P>" );
exit();
}

if (! @mysql_select_db("clientes") ) {
echo( "<P>No se puede encontrar " .
"la base de datos clientes!</P>" );
exit();
}

// Request all data
$result = mysql_query(
"SELECT * FROM newclients");
if (!$result) {
echo("<P>Error realizando el query: " .
mysql_error() . "</P>");
exit();
}

// Muestra todos los apellidos encontrados en la tabla
$colours = array( 0 => "#CCDFED", 1 => "#E1DDF3" );
$rank = 1;

[code]print("<HR></td>");
}
if ($rank == 1) {
print( "No data!" );
}

while($row = mysql_fetch_row($result)) {
$color = $colours[ ($rank % 2) ];
$rank++;

print("</tr><tr>");


print("<td width=\"6%\" bgcolor=\"$color\"><small><HR>");
print("<font face=\"Arial\ size=\"2\"><strong>Id:</strong><a href=\"borra.php?id=$row[0]\"><img src=\"images/tacho.gif\" alt=\"Borrar\" width=\"15\" height=\"22\" border=\"0\" align=\"right\">$row[0]</a></font></small><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Apellido:</strong>$row[1]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Nombre:</strong>$row[2]</font><br>");
print("<font face=\"Arial\" color=\"#CC0000\ size=\"2\"><strong>Teléfono:</strong>$row[4]</font><br>");
print("<font face=\"Arial\" color=\"#CC6600\ size=\"2\"><strong>Dni:</strong>$row[9]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Fecha:</strong>$row[5]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Hora:</strong>$row[6]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Abodado:</strong>$row[7]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Asunto:</strong>$row[8]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Donde nos conoció:</strong>$row[3]</font><br>");
print("<HR></td>");
}


?>

i also added the no data function but its complaining about some parse error. Checkit out.

Thanks.
 
Old 09-11-2004, 03:46 AM   #8
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Sorry, I forgot to close my code tag, so it appeared in the text. Also, you've pasted it in the wrong place - I put last two lines of your code so you could see where to paste it. The other problem was a missing <table> tag (!) - this is why you didn't see any colour changes... the browser wasn't rendering the data inside a table.
The whole codefile should read like this:

Code:
<?php

$conn = @mysql_connect("localhost", "ssfceo101", "ssfceo23arm99");

if (!$conn) {
echo( "<P>No se pudo conectar " .
"al servidor MySQL.</P>" );
exit();
}

if (! @mysql_select_db("clientes") ) {
echo( "<P>No se puede encontrar " .
"la base de datos clientes!</P>" );
exit();
}

// Request all data
$result = mysql_query(
"SELECT * FROM newclients");
if (!$result) {
echo("<P>Error realizando el query: " .
mysql_error() . "</P>");
exit();
}

// Muestra todos los apellidos encontrados en la tabla
$colours = array( 0 => "#CCDFED", 1 => "#E1DDF3" );
$rank = 1;
print("<table>")
while($row = mysql_fetch_row($result)) {
$color = $colours[ ($rank % 2) ];
$rank++;

print("</tr><tr>");

print("<td width=\"6%\" bgcolor=\"$color\"><small><HR>");
print("<font face=\"Arial\ size=\"2\"><strong>Id:</strong><a href=\"borra.php?id=$row[0]\"><img src=\"images/tacho.gif\" alt=\"Borrar\" width=\"15\" height=\"22\" border=\"0\" align=\"right\">$row[0]</a></font></small><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Apellido:</strong>$row[1]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Nombre:</strong>$row[2]</font><br>");
print("<font face=\"Arial\" color=\"#CC0000\ size=\"2\"><strong>Teléfono:</strong>$row[4]</font><br>");
print("<font face=\"Arial\" color=\"#CC6600\ size=\"2\"><strong>Dni:</strong>$row[9]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Fecha:</strong>$row[5]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Hora:</strong>$row[6]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Abodado:</strong>$row[7]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Asunto:</strong>$row[8]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Donde nos conoció:</strong>$row[3]</font><br>");
print("<HR></td>");
}

if ($rank == 1) {
print( "No data!" );
}

?>
 
Old 09-11-2004, 04:52 AM   #9
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Instead of :
PHP Code:
$colours = array( => "#CCDFED"=> "#E1DDF3" );
$rank 1;
print(
"<table>")
while(
$row mysql_fetch_row($result)) {
    
$color $colours[ ($rank 2) ];
    
$rank++; 
I would do :
PHP Code:
$rank 1;
$flag FALSE;
print(
"<table>")
while(
$row mysql_fetch_row($result)) {
    
$color = ($flag) ? "#E1DDF3" :  "#CCDFED";
    
$flag = !$flag;
    
$rank++; 

Last edited by Cedrik; 09-11-2004 at 05:04 AM.
 
Old 09-11-2004, 05:01 AM   #10
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Also instead of :
PHP Code:
print("</tr><tr>");

print(
"<td width=\"6%\" bgcolor=\"$color\"><small><HR>");
print(
"<font face=\"Arial\ size=\"2\"><strong>Id:</strong><a href=\"borra.php?id=$row[0]\"><img src=\"images/tacho.gif\" alt=\"Borrar\" width=\"15\" height=\"22\" border=\"0\" align=\"right\">$row[0]</a></font></small><br>");
print(
"<font face=\"Arial\ size=\"2\"><strong>Apellido:</strong>$row[1]</font><br>");
print(
"<font face=\"Arial\ size=\"2\"><strong>Nombre:</strong>$row[2]</font><br>");
print(
"<font face=\"Arial\" color=\"#CC0000\ size=\"2\"><strong>Teléfono:</strong>$row[4]</font><br>");
print(
"<font face=\"Arial\" color=\"#CC6600\ size=\"2\"><strong>Dni:</strong>$row[9]</font><br>");
print(
"<font face=\"Arial\ size=\"2\"><strong>Fecha:</strong>$row[5]</font><br>");
print(
"<font face=\"Arial\ size=\"2\"><strong>Hora:</strong>$row[6]</font><br>");
print(
"<font face=\"Arial\ size=\"2\"><strong>Abodado:</strong>$row[7]</font><br>");
print(
"<font face=\"Arial\ size=\"2\"><strong>Asunto:</strong>$row[8]</font><br>");
print(
"<font face=\"Arial\ size=\"2\"><strong>Donde nos conoció:</strong>$row[3]</font><br>");
print(
"<HR></td>"); 
I would prefer :
PHP Code:
echo <<<END
</tr><tr>
<td width="6%" bgcolor="
$color"><small><HR>
<font face="Arial" size="2"><strong>Id:</strong><a href="borra.php?id=
$row[0]">
<img src="images/tacho.gif" alt="Borrar" width="15" height="22" border="0" align="right">
</a></font></small><br>
<font face="Arial" size="2"><strong>Apellido:</strong>
$row[1]</font><br>
<font face="Arial" size="2"><strong>Nombre:</strong>
$row[2]</font><br>
<font face="Arial" color="#CC0000" size="2"><strong>Teléfono:</strong>
$row[4]</font><br>
<font face="Arial" color="#CC6600" size="2"><strong>Dni:</strong>
$row[9]</font><br>
<font face="Arial" size="2"><strong>Fecha:</strong>
$row[5]</font><br>
<font face="Arial" size="2"><strong>Hora:</strong>
$row[6]</font><br>
<font face="Arial" size="2"><strong>Abodado:</strong>
$row[7]</font>
<font face="Arial" size="2"><strong>Asunto:</strong>
$row[8]</font><br>
<font face="Arial" size="2"><strong>Donde nos conoció:</strong>
$row[3]</font><br>
<HR></td>
END; 
 
Old 09-11-2004, 05:17 AM   #11
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Heh, I didn't know PHP supported the ? operator.

In that case, you could just do:

Code:
 $color = ($rank % 2) ? "#E1DDF3" :  "#CCDFED";
and dispense with $flag altogether. Of course, it's just a matter of personal preference, since they all do the same thing.
 
Old 09-11-2004, 05:20 AM   #12
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
it's just a matter of personal preference
yep I dislike the % operator
 
Old 09-13-2004, 11:04 AM   #13
emilioestevezz
Member
 
Registered: Jul 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Parse error on line 30

Quote:
Originally posted by CroMagnon
Heh, I didn't know PHP supported the ? operator.

In that case, you could just do:

Code:
 $color = ($rank % 2) ? "#E1DDF3" :  "#CCDFED";
and dispense with $flag altogether. Of course, it's just a matter of personal preference, since they all do the same thing.

Ok i´ve modified the ode but the little bugger still complains : Parse error on line 30 (while section)

// Muestra todos los apellidos encontrados en la tabla
$color = ($rank % 2) ? "#E1DDF3" : "#CCDFED";
$rank = 1;
print("<table>")
while($row = mysql_fetch_row($result)) {
$color = $colours[ ($rank % 2) ];
$rank++;

print("</tr><tr>");

print("<td width=\"6%\" bgcolor=\"$color\"><small><HR>");
print("<font face=\"Arial\ size=\"2\"><strong>Id:</strong><a href=\"borra.php?id=$row[0]\"><img src=\"images/tacho.gif\" alt=\"Borrar\" width=\"15\" height=\"22\" border=\"0\" align=\"right\">$row[0]</a></font></small><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Apellido:</strong>$row[1]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Nombre:</strong>$row[2]</font><br>");
print("<font face=\"Arial\" color=\"#CC0000\ size=\"2\"><strong>Teléfono:</strong>$row[4]</font><br>");
print("<font face=\"Arial\" color=\"#CC6600\ size=\"2\"><strong>Dni:</strong>$row[9]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Fecha:</strong>$row[5]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Hora:</strong>$row[6]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Abodado:</strong>$row[7]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Asunto:</strong>$row[8]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Donde nos conoció:</strong>$row[3]</font><br>");
print("<HR></td>");
}

if ($rank == 1) {
print( "No data!" );
}

?>


this is supposed to e line 30:

while($row = mysql_fetch_row($result)) {


I don´t see any error here???

Thanks.
Emilio
 
Old 09-13-2004, 11:19 AM   #14
emilioestevezz
Member
 
Registered: Jul 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Re: Parse error on line 30

Quote:
Originally posted by emilioestevezz
Ok i´ve modified the ode but the little bugger still complains : Parse error on line 30 (while section)

// Muestra todos los apellidos encontrados en la tabla
$color = ($rank % 2) ? "#E1DDF3" : "#CCDFED";
$rank = 1;
print("<table>")
while($row = mysql_fetch_row($result)) {
$color = $colours[ ($rank % 2) ];
$rank++;

print("</tr><tr>");

print("<td width=\"6%\" bgcolor=\"$color\"><small><HR>");
print("<font face=\"Arial\ size=\"2\"><strong>Id:</strong><a href=\"borra.php?id=$row[0]\"><img src=\"images/tacho.gif\" alt=\"Borrar\" width=\"15\" height=\"22\" border=\"0\" align=\"right\">$row[0]</a></font></small><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Apellido:</strong>$row[1]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Nombre:</strong>$row[2]</font><br>");
print("<font face=\"Arial\" color=\"#CC0000\ size=\"2\"><strong>Teléfono:</strong>$row[4]</font><br>");
print("<font face=\"Arial\" color=\"#CC6600\ size=\"2\"><strong>Dni:</strong>$row[9]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Fecha:</strong>$row[5]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Hora:</strong>$row[6]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Abodado:</strong>$row[7]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Asunto:</strong>$row[8]</font><br>");
print("<font face=\"Arial\ size=\"2\"><strong>Donde nos conoció:</strong>$row[3]</font><br>");
print("<HR></td>");
}

if ($rank == 1) {
print( "No data!" );
}

?>


this is supposed to e line 30:

while($row = mysql_fetch_row($result)) {


I don´t see any error here???

Thanks.
Emilio
I´ve got it!!!!!!

gotta replace print("<table>") with print("<table>");

but i just have other detail to fix, i´ve recently changed the print part as Cedrik suggested it works ok, but it doesn´t show me the id number it shows an "_" instead of the id number any hints???


My boss like flash very much (darn!!!!!#%&$#%$"), so he ask me to convert this code so i could show data on a flash animation so if you can give me any pointers to do this. So far i´ve been reading some tuts but i can´t find a good one, i think its the reverse thing but i just can´t figure it out.

Emilio.

Last edited by emilioestevezz; 09-13-2004 at 12:56 PM.
 
Old 09-13-2004, 05:21 PM   #15
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Quote:
gotta replace print("<table>") with print("<table>");
Good catch. I've always hated that about PHP - it tells you there's a problem with line 30, and you look at line 30 until your eyes bleed, but you can't see any problem... then you realise you left the semicolon off line 29.

One other thing you might want to fix - you're assigning $color twice, but you don't need to. You do, however, need to do it inside the while loop or it will never change. Move line 28 to line 31, and remove the current line 31 (also remove the line that sets the $colours array since you won't need it with the new method).

If you copied Cedrik's code exactly as written, then you are missing the $row[0] part that needs to be after the <img> tag.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL results to html forms using PHP xemous Programming 3 08-15-2005 03:27 PM
Painting the row of a data grid a color in VB.net mrobertson Programming 1 07-30-2005 04:22 PM
MySQL - Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 9 jasontn Linux - Software 0 02-09-2005 12:17 PM
MySQL Row Limit agallant Programming 1 06-25-2004 11:16 AM
PHP & MySQL, working, and yet getting a blank results page linxtc Programming 5 08-24-2003 04:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration