1,003 Posted Topics
Re: show us the root of this, and we will tell you. [CODE] $custom[0]->value [/CODE] the root could be class or function.. | |
Re: Hi, Try searching it on google "image upload php script". If you find one, which I am 100% sure you will. Test the script within your server's environment. In case, you bump into to troubles, post the codes here and we will attempt to decipher the codes and will try … | |
Re: this code is already a loop over [CODE] $row = $rs->fetch(PDO::FETCH_OBJ); [/CODE] meaning, the objects can be called like this [CODE] echo $row->Name; and echo $row->Email;[/CODE] However, if those objects are needed to be called through the instantiation of the class without being printed or echoed within the class, it … | |
Re: Try changing [CODE] $query = "SELECT COUNT(*) as num FROM shopcatid = '" . $shopcatid . "' AND shopsubcatid = '" . $shopsubcatid . "'"; $total_pages = mysql_fetch_array(mysql_query($query)); $total_pages = $total_pages[num]; [/CODE] to this [CODE] $query = "SELECT COUNT(*) FROM shopcatid = '" . $shopcatid . "' AND shopsubcatid = … | |
![]() | Re: Hi, I am busy on my school homework right now, but I will attempt to post a solution sometime this weekend if you don't get a response until that time. Before making my promise a final one, can you please tell us how these information are used? [CODE] $method = … ![]() |
Re: If you did not do any filtering on the users input, they maybe able to pass[B] DROP upload --[/B] by way of looking at the source code of your form. My wannabie hack codes can easily drop all of your upload table, if they just know where to look for … | |
Re: @rse fix this first, and then repost your codes. Unless, you define it somewhere it would make sense, but right now, I don't see it making any sense at all. Can you please elaborate or shades some light on where this line of codes coming from?? [CODE] $HTML['country_options_escape']=$nt[country]; [/CODE] The … | |
Re: Hi, I found echoing $a and $b kind of boring, so I have to make something up to make it a little bit interesting. Here is the basic setup of what you are trying to achieved..not sure, but that's my only guess. you cannot get a result by doing return … | |
Re: have you tried doing it on .htaccess? [B]given:[/B] actualDirectory and dummyDirectory. If we provide a link in this form <a href="YourDomainDotCom/dummyDirectory/somevideo.wmv" target="_blank"/>Download Here</a>, then we can add a simple entry to our .htaccess like this; [CODE] Redirect /dummyDirectory/ http://YourDomainDotCom/actualDirectory/ [/CODE] If they view the source code of the page, they … | |
Re: You can also try [URL="http://www.daniweb.com/web-development/php/threads/256243/1700993#post1700993"]this[/URL]. | |
Re: Hi, Are there anymore codes above <item></item>? Can you give me the live url, so that I can take a look. | |
Re: @evanburry, Try changing this part of you codes [CODE] $src = 'images/outofstock.gif'; [/CODE] To this [CODE] echo 'images/outofstock.gif'; [/CODE] | |
Re: try replacing these lines [CODE] echo "<tr>"; echo "<td>"; echo $count."</td>"; [/CODE] With these [CODE] $sum_ofsalary += int_val($row['default_salary']); echo "<tr>"; echo "<td>"; echo $sum_ofsalary."</td>"; [/CODE] You can then use the $sum_ofsalary as the total of all salaries "default_salary" within the while loop.. ![]() | |
| |
Re: Hi, First we need to see if the ffmpeg is outputting an error. This is very important, because we don't know what are the missing parameters if there are any. 1. Make sure the directory is CHMOD to 0755 or 755 or 0777 or 777 depending on your server settings. … | |
Re: try taking this out of your do-while loops.. [CODE] <table border="0" id="dcmdRtlmp" style="display:none;"> <tr> <th></th> <th scope="col">baltimore_zone</th> <th scope="col">pepco_zone</th> <th scope="col">dominion_zone</th> <th scope="col">dominion_hub</th> </tr> [/CODE] something like this [CODE] <table border="0" id="dcmdRtlmp" style="display:none;"> <tr> <th></th> <th scope="col">baltimore_zone</th> <th scope="col">pepco_zone</th> <th scope="col">dominion_zone</th> <th scope="col">dominion_hub</th> </tr> <?php do{ //whatever here } while{ … | |
Re: Hi, Try this, modify your codes by adding the php closing tag just below line 47, and then in your php codes find [CODE]// Get the data: header('Location:welcome.php');[/CODE] change it to this [CODE] // Get the data: //header('Location:welcome.php'); $welcomepage = "welcome.php"; echo '<script language="javascript" type="text/javascript"> window.location.href="'.$welcomepage.'"; </script>'; [/CODE] As long … | |
Re: Hi, What he was referring you was these codes. [CODE] <?php define('YOUR_APP_ID', 'YOUR APP ID'); //uses the PHP SDK. Download from https://github.com/facebook/php-sdk require 'facebook.php'; $facebook = new Facebook(array( 'appId' => YOUR_APP_ID, 'secret' => 'YOUR APP SECRET', )); $userId = $facebook->getUser(); ?> <html> <body> <?php if ($userId) { $userInfo = $facebook->api('/' … | |
Re: you may also fix your comment tag on line 480 /* and on line 492 */. The first is within html tags, while the second is within the php tags. Another concern I have, what is the smarty version your script is currently using? The reason I am asking, because … | |
Re: This pretty much falls into the category of no can do, but you can try reading some trick on [url]http://klewos.wordpress.com/2010/04/16/using-php-to-fill-a-word-document-quick-tip/[/url] . Just ignore the codeigniter part, if it does not apply to your situation. The author's solution looks promising. | |
Re: Hi, I don't intend to sound like as if I am really dumb or stupid, I mean nothing like that :). You mean "print" as in "echo" in php? Or print as executing the viewer's printer attached to its desktop? | |
Re: and you expect this [B]echo "<a target='_blank' href=$dir>$name</a> <br>";[/B] to deliver your audience the video or the audio? Shouldn't it be like this? echo '<a target="_blank" href="'.$dir.$name.'">'.$name.'</a> <br>'; How about the file extension? Is it included in your $name? If not, it should be wiser to find the extension of … | |
Re: @nguoixanh, Don't be confused with it. It is just a comparison operator. What the thing meant is that IF total_pages is LESS THAN or EQUAL to scroll_pages, THEN do something. What you should have paid attention closely, is on how the script come up with this.. [B]$this->$total_pages[/B] and [B]$this -> … | |
Re: Hi, Wow, how old is your server? :). I am definitely sure, it must be older than me, because my dad was writing program in CGI because that's the only language of choice, before I was born :). Anyways, if that is what you want.. you can use microsoft frontpage. … | |
![]() | Re: Just a suggestion, not even sure if I am understanding your question pretty well. Make a language directory..and in this directory assigned the language files for pages..you can break them as many file as you want. Then this [CODE] $text='成人業余高中中国中成人玩具的人二千七百成人業余高中成人業余高中零一就像小炸弹,不二流子小心就会爆炸。 虽然他们的样子看起来很平和,但阿巴多是心里藏二流子着很大的攻击性。几十年二千七百零一前毛成人玩具泽东就利用了这一点去建立他心目中的中国,但也是因为这一点很多人在1949年至1977年间失去了生命。攻击性其实是一种很可怕的武器,没人控制得了。一旦失控就不容易停止,要等到人们的情绪慢慢平静下来 。'; [/CODE] assign to something related to the its … |
Re: Hi, Please hold on to this topic, and I will show how to scrape that thing down to its bone. I am in the middle of something really important. | |
Re: I spent a little more than 6 months on learning how to bake the Cake, because it was the hype in our family dining table. Four of my older brothers are all programmers working for the big Companies here in California the G, PP, and the eB. Then all of … | |
Re: @rajan, Make sure all of your form processors throughout your site is either $_POST or $_GET, and NOT $_REQUEST for any uploader script. You may want to check and make sure allow_url_include is not set to ON. If you set this to ON, because of any scrapers or any parser … | |
Re: Try searching for php Iteration or implementing IteratorAggregate in php. That should do it with switch function. | |
Re: I think this [CODE] $result = mysql_query("SELECT * FROM post_categories"); while ($row = mysql_fetch_array($result)){ echo $row['Name']; } [/CODE] Will not stop outputting, while [B]$row = mysql_fetch_array($result))[/B] if still equal to be true. And this one will only output one $result = mysql_query("SELECT * FROM post_categories"); $row = mysql_fetch_array($result) echo $row['Name']; … | |
Re: Hi, Just my humble opinion..If you want your formula to do the calculation, then don't treat them as a text string.. For example $x = 1; echo $x, will give us 1 which is treated as integer rather a text string, and so forth. Try this [CODE] <?php $x = … ![]() | |
Re: Hi, Here is the simple example for both of the responses above. [CODE] <?php $first_ar = array('one','two','three','four','five','six','seven'); $second_ar = array('two','ten','eleven','five','twelve','nine','three'); $result = array_intersect($first_ar, $second_ar); foreach($result as $something){ echo "Matched: ".$something."<br/>"; } ?> [/CODE] | |
Re: @ unknown_rocks, read my response on this thread [url]http://www.daniweb.com/web-development/php/threads/389852[/url] . That should give you some idea on how to store and retrieve images from database. | |
Re: Hi, Try this.. r.php [CODE] <?php $rule['ab'] = "afd"; $rule['vf'] = "ghe"; $rule['as'] = "rtg"; ## something has to carry the rule out of this $rules[] = $rule; ?> [/CODE] and on the other file [CODE] <?php include_once("r.php"); ## it is costly, memory wise, but this is the only thing … | |
Re: Hi, This maybe the simplest example I could ever think of.. Say, your above xml file is called test.xml, then you can easily parse the email XX and the name: XX from it by using these few lines of php codes. [CODE] <?php ## type in your xml file location … | |
Re: Hi, Since, you have not provided any codes to begin with, why not try the simulator first and then once you are familiar with how the things are processed, you can write similar script that applies to your situation. I am not sure if there is something you can learn … | |
Re: Hi, I can show you how to do a pseudostreaming for flv videos, and a quick start on MP4/h264 just like the one you see on youtube. However, before I can do that you need to change your player preferences . It has to be jwplayer or flowplayer. On top … | |
Re: Just a humble suggestion...for a tutorial such as this..The coding standard must follow the Zend Framework PHP Coding Standard. By doing so, the new learners or readers of the tutorial will be exposed to the proper coding standard and convention. Please allow me quote one of the best quote I … | |
Re: If my guess is right, we can use a [B]Dot notation array access[/B] class. In addition, an array can be nested within an array deeper than what we can normally do without the dot notation class. Then we can implement the loop the way twig and smarty implement their loops. | |
Re: Hi, Copy codes and read instructions below.. For security reason, [COLOR="red"]DO NOT post the url of your[B] AnyNameYouWant.php[/B][/COLOR] [CODE] <?php phpinfo(); ?> [/CODE] copy,paste on notepad, save as AnyNameYouWant.php, upload to your server, direct your browser to this file. e.g. YourDomainDotCom/AnyNameYouWant.php . After performing the above recommendations, please post the … | |
Re: Hi, Without any intend of disrespect, [B]session_register[/B] is deprecated in php version 5.3.x . Plus it is a dangerous thing to do security wise. [URL="http://php.net/manual/en/function.session-register.php"]http://php.net/manual/en/function.session-register.php[/URL] Just in case some people are trap into using this php function, because their sessions are stack within an array.. The simple solution is put … | |
Re: Hi martymaven, Can we please see at least a sample of the codes that you have.. e.g. $query =("SELECT * FROM employee WHERE id = '".$some_id."' LIMIT 1") ; Something like that or your employee table structure such as id | name | department | position | rate | supervisor … | |
Re: Hi, you can read more about session time out warning by way of jquery and php [URL="http://www.jensbits.com/2009/09/07/session-timeout-warning-php-example-with-jqueryjs/"]here[/URL]. I don't own the site NOR I have affiliation with them. I must clarify that, so that the link don't get snipped ..I learned a lot of things in this forum in a … | |
Re: Hi Matt, You may want to read this first [URL="http://php.net/manual/en/features.file-upload.php"]http://php.net/manual/en/features.file-upload.php[/URL]. The keywords for your question are [B]if (empty($_FILES) && empty($_POST) && isset($_SERVER['REQUEST_METHOD'])[/B] Please read the above link and try to integrate some of the methods they used. If still does not work for you, let us know and I will … | |
Re: I think you are missing the numerical rows.. Try this [CODE] ## we need to get the count of affected rows by your query ## putting a LIMIT will obviously limit your result and may not have anything left ## for the script to paginate. $sql = "SELECT COUNT(*) from … | |
Re: @khialbadshah You mean a BLOB? right? The cons outweighs the pros with this approach. Are sure you still want to go ahead? You will be exerting more memory than having the images stored in the directory (the conventional way). This method normally applies to images of high value copyrighted images. | |
Re: Hi, This may not be the direct answer to the question. However, this is how much you have to write just to send query to youtube using their API. I wrote different types and flavors of this. It is my day off today and I am just lazy to actually … | |
Re: ddymacek was right, and you can also do it like so.. [CODE] <input type="button" value="Edit" onClick="location = './product_edit.php?id=<?=$data['id_produk']?>&mode=edit'"> [/CODE] | |
Re: Hi, Not sure if this is what you want. My reading comprehension is off at times, and today is one of those times. It's probably due to long working hours with a minimum pay :). Codes below should give you the output "I made a program which prints [B]Hello World[/B]" … ![]() | |
Re: Hi, I just borrowed this from someone...please see the script's credit on top. This might be more than what you need..if it just table names that you want, then just remove the bottom part of the script. [CODE] <?php /**************** * File: displaytables.php * Date: 1.13.2009 * Author: design1online.com * … |
The End.