kenrbnsn
Staff Alumni-
Posts
8,234 -
Joined
-
Last visited
Everything posted by kenrbnsn
-
Look at number_format Ken
-
php inside of div tag not passing value to parent page
kenrbnsn replied to CyberGuru's topic in Javascript Help
If you don't post your code between tags, nobody will be able to help you at all. Ken -
Take a look at simplexml Ken
-
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
-
[PHP + MYSQL] Selecting rows where column is blank
kenrbnsn replied to 3dhomejoe's topic in PHP Coding Help
Try this instead: <?php $result = mysql_query("SELECT * FROM Main WHERE SHA256 is NULL"); ?> Ken -
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
-
convert letter to number to another letter.
kenrbnsn replied to HDFilmMaker2112's topic in PHP Coding Help
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 -
CURL issue sucking the life out of me....
kenrbnsn replied to kiss-o-matic's topic in PHP Coding Help
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 -
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
-
In this forum, you post your code between tags. Ken
-
Does this have anything to do with PHP? Without seeing your code, it's pretty hard to tell you what's going wrong. Ken
-
Please post your code between tags. This sample code works for me: <?php for ($i=0;$i<10;++$i) { echo "<a href='page{$i}.php'>Page $i</a><br>\n"; } ?> Ken
-
This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=336158.0
-
Why do you have the '<?php start_session(); ?>' in the middle of your variable string? That won't do anything and will probably display on the screen. Please show how you're trying to display the variable -- full context, not just a snippet. Ken
-
What are you trying to do? Also, when posting code, please put your code between tags. Ken
-
That's done via Javascript. PHP has no concept of browser windows. Ken
-
php syntax help passing a variable and more
kenrbnsn replied to php_begins's topic in PHP Coding Help
Please post the exact code you've tried between tags. And and error messages you've gotten. Ken -
What does the content of your file look like? Ken
-
This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=335906.0
-
The OP's code shows that the target of the form is being created & populated via Javascript, so that the name attribute has no bearing in this case. Ken
-
Unless you're using frames, this idea will create an HTML file with improper markup, i.e. an HTML file can not have more than one <html></html>, <head></head>, and <body></body> section. Ken