Jump to content

kenrbnsn

Staff Alumni
  • Posts

    8,234
  • Joined

  • Last visited

About kenrbnsn

  • Birthday 06/01/1951

Profile Information

  • Gender
    Male
  • Location
    Hillsborough, NJ, USA

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

kenrbnsn's Achievements

Regular Member

Regular Member (3/5)

2

Reputation

  1. Look at number_format Ken
  2. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=336874.0
  3. If you don't post your code between tags, nobody will be able to help you at all. Ken
  4. Actually, you can use print_r inside an echo. Like this: <?php echo '<pre>' .print_r($array, true) . '</pre>'; ?> You can do something similar in the mail function <?php mail($to,$subject,print_r($array,true),$headers); ?> Ken
  5. Code?
  6. Take a look at simplexml Ken
  7. What do you mean by " i am unable to read the the data using PHP"? What have you tried? Do you get errors? Please post your code between tags. Ken
  8. Try this instead: <?php $result = mysql_query("SELECT * FROM Main WHERE SHA256 is NULL"); ?> Ken
  9. This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=336674.0
  10. Change <?php echo "<tr class='odd'><td>...</td>"; ?> to <?php $class = ($class == 'odd')?'even':'odd'; echo "<tr class='$class'><td>...</td>"; ?> and put <?php $class = 'even'; ?> before the loop Or change <?php echo "<tr class='odd'><td>...</td>"; ?> to <?php $class = ($i%2 != 0)?'odd':'even'; echo "<tr class='$class'><td>...</td>"; ?> Ken
  11. How about <?php $letters_numbers = array('A'=>'05','P'=>'36','W'=>'23','E'=>'13'); $numbers_letters = array('05'=>'Y','36'=>'A','23'=>'e','13'=>'P'); $str = 'APWE'; $new_str = ''; foreach (str_split($str) as $char) { $new_str .= $numbers_letters[$letters_numbers[$char]]; } echo $new_str; ?> Ken
  12. Please don't double post. You can edit your original post for 10 minutes. After that just add additional information as a reply to the thread. Ken
  13. A more readable version would be to use "{ }" around the variables: <?php $with=array("<a href='index.html'>index</a>", "<a href='{$xmlcitydata->data->main_backlink_rt_1}/{$xmlcitydata->data->city_name}.html'>{$xmlcitydata->data->city_kw_1_rt_1}</a>"); ?> Ken
  14. In this forum, you post your code between tags. Ken
  15. Does this have anything to do with PHP? Without seeing your code, it's pretty hard to tell you what's going wrong. Ken
×
×
  • 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.