Jump to content

Question about a question mark


phpretard

Recommended Posts

I don't understand why the phone numbers echo with a ? at the end. (only some of them)

 

The database has the right number.

 

(850) 697-4576? <--why

 


<?
$result = mysql_query("SELECT * FROM maps WHERE city='$page'");
while($row = mysql_fetch_array($result))
  {
  $company=$row['company'];
  $phone=$row['phone'];
  $url=$row['url'];
  $street1=$row['street1'];
  $city1=$row['city1'];
  $zip=$row['zip'];
  $id=$row['id'];
  
echo"
<p class=\"sidebar-title-noshade\"><a target=_blank href=\"http://$url\">$company</a>
<div class=\"sidebar-txtbox-noshade\">
<table border=0 width=100% id=table1 cellspacing=0 cellpadding=0>

<tr>
	<td>
	$phone
	</td>
</tr>	
<tr>
	<td>
	$street1
	<br>
	$city1, FL $zip
	</td>
</tr>
</table>
</div>
";
}
?>

Link to comment
Share on other sites

rofl90,

 

$url is pulled from the database.  The value is something like "www.phpfreaks.com".  So it echos -http://www.phpfreaks.com-. Can you suggest a better way?  I am constantly learning.

 

Thank you,

 

Anthony

 

oh yeah...I have no clue what voip or skyoe is.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.