1,003 Posted Topics

Member Avatar for vienem

show us the root of this, and we will tell you. [CODE] $custom[0]->value [/CODE] the root could be class or function..

Member Avatar for vienem
0
180
Member Avatar for njenge

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 …

Member Avatar for veedeoo
0
33
Member Avatar for extjac

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 …

Member Avatar for veedeoo
0
161
Member Avatar for gavin_am

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 = …

Member Avatar for gavin_am
0
121
Member Avatar for nova37

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 = …

Member Avatar for nova37
0
232
Member Avatar for RazorRamon

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 …

Member Avatar for minitauros
0
282
Member Avatar for akshit

@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 …

Member Avatar for jgilliam
0
2K
Member Avatar for arunpawar

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 …

Member Avatar for veedeoo
0
278
Member Avatar for jeevanism

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 …

Member Avatar for jeevanism
0
974
Member Avatar for degroundshaker

You can also try [URL="http://www.daniweb.com/web-development/php/threads/256243/1700993#post1700993"]this[/URL].

Member Avatar for mschroeder
0
154
Member Avatar for asif49

Hi, Are there anymore codes above <item></item>? Can you give me the live url, so that I can take a look.

Member Avatar for asif49
0
1K
Member Avatar for ebanbury

@evanburry, Try changing this part of you codes [CODE] $src = 'images/outofstock.gif'; [/CODE] To this [CODE] echo 'images/outofstock.gif'; [/CODE]

Member Avatar for simplypixie
0
660
Member Avatar for borgyborg

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..

Member Avatar for diafol
0
874
Member Avatar for aki2all
Member Avatar for gaurang24

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. …

Member Avatar for veedeoo
0
121
Member Avatar for tgr0ss83

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{ …

Member Avatar for veedeoo
0
196
Member Avatar for issaru07

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 …

Member Avatar for veedeoo
0
316
Member Avatar for nakresimin

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('/' …

Member Avatar for nakresimin
0
147
Member Avatar for ommannette

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 …

Member Avatar for veedeoo
0
741
Member Avatar for ashutoshhshukla

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.

Member Avatar for veedeoo
0
188
Member Avatar for fika

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?

Member Avatar for fika
0
109
Member Avatar for keroppi89

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 …

Member Avatar for veedeoo
0
1K
Member Avatar for nguoixanh

@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 -> …

Member Avatar for almostbob
0
149
Member Avatar for limonzmn

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. …

Member Avatar for veedeoo
0
75
Member Avatar for Malaoshi

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 …

Member Avatar for cereal
0
329
Member Avatar for sacarias40

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.

Member Avatar for sacarias40
0
228
Member Avatar for cmps

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 …

Member Avatar for cmps
0
198
Member Avatar for rajandass65

@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 …

Member Avatar for rayidi
0
138
Member Avatar for aecha

Try searching for php Iteration or implementing IteratorAggregate in php. That should do it with switch function.

Member Avatar for Biiim
0
277
Member Avatar for Martin C++

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']; …

Member Avatar for cereal
0
3K
Member Avatar for jaycastr

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 = …

Member Avatar for diafol
0
1K
Member Avatar for stanley87

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]

Member Avatar for stanley87
0
192
Member Avatar for John23

@ 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.

Member Avatar for veedeoo
0
155
Member Avatar for peter20

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 …

Member Avatar for Biiim
0
153
Member Avatar for kadriirdak

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 …

Member Avatar for veedeoo
0
175
Member Avatar for abhinav1986

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 …

Member Avatar for abhinav1986
0
4K
Member Avatar for daniel36

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 …

Member Avatar for daniel36
0
157
Member Avatar for khess

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 …

Member Avatar for cwarn23
-8
1K
Member Avatar for Stefano Mtangoo

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.

Member Avatar for Stefano Mtangoo
0
166
Member Avatar for rohit.k2903

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 …

Member Avatar for veedeoo
0
127
Member Avatar for geneh23

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 …

Member Avatar for geneh23
0
174
Member Avatar for martymaven

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 …

Member Avatar for martymaven
0
196
Member Avatar for Metophase

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 …

Member Avatar for veedeoo
0
205
Member Avatar for mspn

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 …

Member Avatar for mspn
0
1K
Member Avatar for aonent

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 …

Member Avatar for Stefano Mtangoo
0
244
Member Avatar for khialbadshah

@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.

Member Avatar for cwarn23
0
961
Member Avatar for freebanana

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 …

Member Avatar for Stefano Mtangoo
0
279
Member Avatar for davy_yg

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]

Member Avatar for Stefano Mtangoo
0
284
Member Avatar for asif49

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]" …

Member Avatar for diafol
0
241
Member Avatar for urbangeek

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 * …

Member Avatar for veedeoo
0
145

The End.