Jump to content

rdub

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Everything posted by rdub

  1. Thank you. I'm not much of a coder yet but I will work on that.
  2. I have the product catalog/shopping cart. I need to modify the registration so that it allows the customer to complete the form but then takes him to a message telling him who to contact based on the country he enters during registration. Maybe an if country=A go to... If country=B go to... else go to...
  3. I need a shopping cart that will allow me to restrict access to customers from certain countries. If the customer is from certain other countries they will be directed to contact an office in that country. Any suggestions?
  4. I am using this code which works fine unless there is no entry in price. It then shows the $ and a zero. How can I change the code so than it shows nothing if there is no value? echo "<td width=150 valign=top>".$fetched['id']. ("<img . width=150 . src='" .$fetched['Image'] ."' /> ") . "<br />"."<span class=style1e>".$fetched['hi_lite']."</span>". "<br />".$fetched['Phone']. "<span class=style1d>".$fetched['Description']."</span>". "<br>"."<span class=style1d>"."<align=center>".$fetched['mls']."</span>". "<span class=style1e>"." "." "."$".number_format ($fetched['price'])."</span>".
  5. The background image has a stroke the is rounded in the corners. I need the image to resize so that the rounded corners of the image are always in the corners of the table background.
  6. Is it possible to resized the table background? The table will of course change height depending on images being pulled from mySQL. Hope the question makes sense.
  7. Got it. Thank you very much. ("<img . width=100 . src='" .$fetched['thumb'] ."' /> ") .
  8. This is a part of what is echoed (Thumb and text). I apologize if I am not answering your question. // put what you would like to display within each cell here "<tr>\n"; echo "<td width=378 valign=top>".$fetched['id']."<br />"."<span class=style1>"."<strong>".$fetched['Customer']."</strong>". ("<img src='" . $fetched['thumb'] . "' /> ") . "<br />"."<span class=style1e>".$fetched['hi_lite']."</span>". "<br />".$fetched['Phone']. [attachment deleted by admin]
  9. The path is designated within a field in the mySQL table.
  10. I had already tried variations on this "example" and am looking for a resolution to the problem.
  11. No. When I add that nothing displays.
  12. Not that easy so far. Sorry I didn't paste the entire code section. Maybe this will help. echo "<td width=378 valign=top>".$fetched['id']."<br />"."<span class=style1>"."<strong>".$fetched['Customer']."</strong>". ("<img src='" . $fetched['thumb'] . "' /> ") . I've tried adding the usual height and width.
  13. Using this code to display a thumbnail image. Would like to specify height and width so all are uniform but haven't come up with the additional code. Can anyone help? ("<img src='" . $fetched['thumb'] ."' /> ") .
  14. This code shows the contents of $fetched[agent_email] if the field contains info. If now, it leaves an empty linespace. I'd like it to not leave a space if the field is empty. Thank you. "<br /><a href='mailto:".$fetched['agent_email'] . "'>". $fetched['agent_email'] . "</a>";
  15. Got it. Thank you very much.
  16. Great. Almost there. Now shows decimal (don't need) but not the comma separating thousands. By the way, doesn't work at all without the quotes. Thank you.
  17. Here it is. Tried the working code without all of the quotes but received error. The code below shows the results as before I added the change. [code<?php $display = 2; $cols = 0; echo "<table class=sample width=556 align=left"; while($fetched = mysql_fetch_array($result)){ if($cols == 0){ echo "<tr>\n"; } // put what you would like to display within each cell here "<tr>\n"; echo "<td width=378 valign=top>".$fetched['id']."<br />"."<span class=style1>"."<strong>".$fetched['Customer']."</strong>". ("<img src='" . $fetched['thumb'] . "' /> ") . "<br />"."<span class=style1e>".$fetched['hi_lite']."</span>". "<br />".$fetched['Phone']. "<span class=style1d>".$fetched['Description']."</span>". "<br />"."<span class=style1d>"."<number_format ($fetched('price'), 2, '.', '')>"."<strong>"."$".$fetched['price']."</strong>"."</span>". "<br /><a href='mailto:".$fetched['email'] . "'>". $fetched['email'] . "</a>"; echo "<br /><a href='".$fetched['web'] . "' target='_blank'>". $fetched['web'] . "</a>"; "<br />". "</span>"."</td>\n"; ?> (edited by kenrbnsn to add tags)
  18. I'm way too new to this, sorry. Tried this but without results. <number_format ($fetched('price'), 2, '.', '')>"."<strong>"."$".$fetched['price']
  19. Thank you. I checked out the link. Not sure how I would include it in this code. Do you have a thought? "<br />"."<span class=style1d>"."<strong>"."$".$fetched['price']."</strong>"."</span>".
  20. I have a mysql field that contains numbers. When I display the info on my page it shows the numbers but not the comma such as in 245,100. Only shows 245100. no comma. I've tried different data types. Is this a database issue of php?
  21. Sorry, this is the code <?php $display = 2; $cols = 0; echo "<table class=sample width=556 align=left valign=top>"; while($fetched = mysql_fetch_array($result)){ if($cols == 0){ echo "<tr>\n"; } // put what you would like to display within each cell here "<tr>\n"; echo "<td width=370 valign=top>".$fetched['id']."<br />"."<span class=style1>"."<strong>".$fetched['Customer']."</strong>". ("<img src='" . $fetched['Image'] . "' />") . "<br />"."<span class=style1e>".$fetched['hi_lite']."</span>".
  22. This code works fine for showing the image through an image link. I'd like to include height and width for the image.
  23. rdub

    [SOLVED] columns

    Obviously I'm not being clear enough. As you can see from the code, the query results "print" within a table, one record below another. If there are 10 records in the database table then they print one below the other until all 10 are seen. I would like for the table containing the results to "print/echo" in two to three columns rather than one below the other. With two columns the same 10 records would print two across and 5 down. I apologize if I'm not explaining this correctly.
  24. rdub

    [SOLVED] columns

    I apologize as I haven't made myself clear Here is what I have now record 1 record 2 record 3 Here is what I need record record record record record record Thank you for your help.
  25. rdub

    [SOLVED] columns

    To be more specific, I'd like the records to display in at least 2 columns.
×
×
  • 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.