1,730 Posted Topics

Member Avatar for WickidGRAFX

introducing variables into query will expose you to dangers of SQL injection. it is bad practice AFA security is concerned. I would have if..else for that, something like below. Also instead of using mysql_** I would use PDO or MySQLi [CODE=PHP]$tags = $_POST["search-tags"]; $age = $_POST["search-age"]; $rating = $_POST["search-rating"]; $city …

Member Avatar for diafol
0
159
Member Avatar for marimifs

your datagrid class is poorly designed and here is why: 1. You have mixed Database issues with non database -Either make it fully database with all connections and queries in one class 2. You make mistake of adding html into class. Html should be in separate php class where you …

Member Avatar for Stefano Mtangoo
0
247
Member Avatar for kryz

just a hint based on your code. foreach loop works better than for loop! $array = array("Moja", "Mbili", "Tatu"); [CODE=PHP]foreach(array as $key=>$value){ echo "Array Key is: ".$key." And value is: ".$value; }[/CODE] Arghhhhh! You have just resurrected old thred ;) Let them die and open new thread for your question!

Member Avatar for Stefano Mtangoo
0
205
Member Avatar for mrhankey

If you need to activate something, send them secret code and not any user information. If you want to be more secure, use double word activation in that two keywords are needed to activate and they are sent separately in different times. You can use tri-keyword...et al depending on sensitivity. …

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for aryajasi
Member Avatar for jakizak
Member Avatar for Stefano Mtangoo
0
245
Member Avatar for showman13
Member Avatar for FBG

Database arrays does not understand where result came from (search or article, all it knows is it is from db). It seems your pagination code is tied to DB code which is quiet bad thing to do!

Member Avatar for FBG
0
2K
Member Avatar for charleneok

[CODE=C++]int func1(int x){ //do something with int return func1(x-1); }[/CODE] see also [URL="http://www.danzig.us/cpp/recursion.html"]this[/URL] and [URL="http://www.cprogramming.com/tutorial/lesson16.html"]this one[/URL]

Member Avatar for selina12
0
206
Member Avatar for furlanut

[CODE]<?php function fix_it($name) { $name=ucwords(strtolower($name)); //echo $name; <----Don't echo just return it return $name; } ?>[/CODE]

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for RobotFX

[QUOTE=wattaman;1688526]Sorry, I must gave the impression I'm an expert :) Would you kindly write the code that will do the trick? I don't know much about php and mysql :( Thank you![/QUOTE] to secure a web app from XSS, validate input against whitelist and discard anything not in white list. …

Member Avatar for Sorcher
0
252
Member Avatar for rickymohanty

use GUI toolkit. If you go for wxPython there is [URL="http://docs.wxwidgets.org/trunk/classwx_combo_box.html"]wxComboBox[/URL] as one of options

Member Avatar for Stefano Mtangoo
0
29K
Member Avatar for McLaren

if you don't mind waste time fixing things you can use [URL="http://www.wampserver.com/en/"]Wamp[/URL]. In windows is what I use!

Member Avatar for McLaren
0
3K
Member Avatar for bangla
Member Avatar for nalini@121
0
77
Member Avatar for stanley87
Member Avatar for RazorRamon

[QUOTE=RazorRamon;1688451]I changed line 12 like u said but it still isn't working.[/QUOTE] "isn't working" does not convey anything useful!

Member Avatar for Stefano Mtangoo
0
8K
Member Avatar for Stefano Mtangoo

Hi, I was reading on the net and could not find how to implement as loop something like twig's [CODE] <ul id="navigation"> {% for item in navigation %} <li><a href="{{ item.href }}">{{ item.caption }}</a></li> {% endfor %} </ul>[/CODE] I want to have idea of what is going on!

Member Avatar for Stefano Mtangoo
0
166
Member Avatar for furlanut

also [I]"it does not work"[/I] is not better way to explain problem. Say what and how exactly it does not work!

Member Avatar for furlanut
0
115
Member Avatar for gourav1

Apart from w3schools my fav is [URL="http://devzone.zend.com/article/627"]PHP 101[/URL]. It is crash course

Member Avatar for Stefano Mtangoo
0
117
Member Avatar for bbizzl

[QUOTE=pritaeas;1688556]Use Bcc and put it in the additional header. See an example in [URL="http://php.net/manual/en/function.mail.php"]the documentation[/URL].[/QUOTE] In the context of correspondence, blind carbon copy (abbreviated Bcc) refers to the practice of sending a message to multiple recipients[B] in such a way that conceals the fact that there may be additional addressees …

Member Avatar for pritaeas
0
159
Member Avatar for tgr0ss83

[QUOTE="PHP Manual"]string implode ( string $glue , array $pieces ) string implode ( array $pieces ) [/QUOTE] from [URL="http://php.net/manual/en/function.implode.php"]PHP Manual[/URL] [CODE]<?php $array = array('lastname', 'email', 'phone'); $comma_separated = implode(",", $array); echo $comma_separated; // lastname,email,phone // Empty string when using an empty array: var_dump(implode('hello', array())); // string(0) "" ?> [/CODE]

Member Avatar for tgr0ss83
0
1K
Member Avatar for ebanbury

[QUOTE=cereal;1617841] You should just check if the file has the sizes you want, and if not, then the user should change the values on his own computer[/QUOTE] This is perfect solution. That should be "policy". User should not upload files greater than you want them to :)

Member Avatar for ebanbury
0
252
Member Avatar for Thomsen
Member Avatar for daniel36

[QUOTE=daniel36;1687489].please solve my problem.[/QUOTE] So what is your problem?

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for ALFA-FOXTROT
Member Avatar for Awah Mohamed
Member Avatar for Stefano Mtangoo
0
148
Member Avatar for bradyramone

if you study how it works and explain here, we will easily help. No body can translate it for you!

Member Avatar for diafol
0
159
Member Avatar for Sadun89

I thinks its disadvantages are more of philosophy than hardware thing. once get compiled to machine language/byte code, that disappears. I don't have any good reason to offer you though

Member Avatar for snipsala
0
332
Member Avatar for shella

are using phpmail to deal with mime? Why not give try to PHPMailer/SwiftMailer? As adviced above please post relevant code (not whole thing)

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for Stefano Mtangoo

Hi friends, it is weeks now I'm trying to figure out how to make simple custome theme engine for my custom PHP CMS. I want to use it for my projects. It is based on custom framework too. So I checked how Drupal does it and Joomla. They are complex …

Member Avatar for Stefano Mtangoo
0
155
Member Avatar for lobebe

Seems to me like you need [URL="devzone.zend.com/article/627"]this[/URL] to get up

Member Avatar for lobebe
0
106
Member Avatar for Ingska
Member Avatar for Stefano Mtangoo
0
169
Member Avatar for tanu963

did you try google? here is one of the link teaching to do just that. Follow tutorial and if you fail anywhere tell us [url]http://woork.blogspot.com/2009/05/how-to-implement-post-to-wall-facebook.html[/url]

Member Avatar for Stefano Mtangoo
0
275
Member Avatar for mayreeh

[QUOTE=54uydf;1686417]if the file is on the server- [CODE]if (file_exists("folder/myfile.xlsx")) unlink("folder/myfile.xlsx");[/CODE][/QUOTE] Give Op Something to work on instead of straight code. That way they won't learn. That being said, I would suggest you check [URL="http://php.net/manual/en/class.directoryiterator.php"]SPL's directory iterator[/URL]. There are couple of examples under comments

Member Avatar for Stefano Mtangoo
0
112
Member Avatar for uBup

I hope we are not seers. We cannot peep in your machine and look at your code!

Member Avatar for Stefano Mtangoo
0
276
Member Avatar for daniel36

Yes it is called [URL="http://net.tutsplus.com/tutorials/php/how-to-paginate-data-with-php/"]pagination[/URL]

Member Avatar for Stefano Mtangoo
0
89
Member Avatar for davy_yg

no magic follow security rules. here is one of them concerning the question: [QUOTE]Before putting user input in HTML output, ALWAYS CONVERT control chars to [URL="http://www.php.net/manual/en/function.htmlspecialchars.php"]HTML entities.[/URL] This protects against cross-site scripting (XSS) or messing up your output with custom HTML[/QUOTE] [URL="http://security.goldenrules.tk/"]Source:[/URL] I would add to that, since it is …

Member Avatar for Stefano Mtangoo
0
140
Member Avatar for victor1244

[QUOTE=victor1244;1684500]I am using cd's that I downloaded from the Ubuntu website. I can't understand that either. victor1244[/QUOTE] can you present exact message and screenshot?

Member Avatar for Stefano Mtangoo
0
245
Member Avatar for siva28

[QUOTE=ardav;1684799]siva - you'll be glad to know that you've won today's prize for: "Making the least sense on a forum" We have many prizes from which you can choose. Just send your email address, along email with password and any credit card details to my PM.[/QUOTE] ;)

Member Avatar for Stefano Mtangoo
0
102
Member Avatar for saybabs

[QUOTE=ardav;1684559]Dw is an ide. Use both if you like[/QUOTE] OP always posts useless questions! May be s/he is a kid!

Member Avatar for Stefano Mtangoo
0
93
Member Avatar for oddcarout

[QUOTE=catherine sea;1683655]Add semicolon after include [CODE]include 'connect.php'[COLOR="Red"];[/COLOR][/CODE][/QUOTE] Yep, that is it! Since PHP interprets semicolon as fullstop then line it will interpret as one line, so you are illegally trying to concatenate string and variable without a dot: [CODE=PHP]include 'connect.php' $id = $_GET['id'];[/CODE]

Member Avatar for Stefano Mtangoo
0
405
Member Avatar for bowmaster

Tomcat works with MySQL without Apache. Apache and Tomcats are servers doing similar joby utilizing different technology. So Install Tomcat and then install MySQL server and use JDBC to connect to MySQL

Member Avatar for bowmaster
0
254
Member Avatar for Stefano Mtangoo

I have been given acer 5100 and pressing power button it light momentarily and goes off. It will not boot anything, until I press power button and then hold down F9 or F10 keys then it will boot as usual and things goes well. I have even upgraded the bios …

Member Avatar for Stefano Mtangoo
0
215
Member Avatar for Onlineshade
Member Avatar for craign924
Member Avatar for Stefano Mtangoo
0
91
Member Avatar for thenuttybrownie

Use while loop to ask variables and the condition should be limited to max value [CODE]var = getUserMaxValue; anotherVar = 0; while(anotherVar<var){ askUserToInputSomething; StoreInArrayOrVector; } sortTheVector; printValues;[/CODE] Just a hint: [url]http://www.cplusplus.com/reference/stl/vector/push_back/[/url] [url]http://www.cplusplus.com/reference/algorithm/sort/[/url]

Member Avatar for Stefano Mtangoo
-1
293
Member Avatar for Draucia

[CODE]<?php $form = <<<EOT <form action={$_SERVER["PHP_SELF"]} method="post" enctype="multipart/form-data"> <label for="username">Username:</label> <input type="text" name="username" /> <br /><br /> <label for="password">Password:</label> <input type="password" name="password" /> <br /> <input type="submit" name="submit" value="Submit" /> </form> EOT; if(isset($_POST['submit'])){ //do stuffs print_r($_POST); }else{ echo $form; }[/CODE]

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for slygoth

[CODE=C++]# include <cstdlib> int main(){ system("gedit /home/name/Downloads/filename.html"); return 0; }[/CODE]

Member Avatar for Stefano Mtangoo
0
275
Member Avatar for davy_yg

ending tags and string for values are missing [CODE=php]<input name="nama" size="20px" type="text" value =<?php echo $data['nama_produk']; ?>>[/CODE] is supposed to be [CODE=php]<input name="nama" size="20px" type="text" value ="<?php echo $data['nama_produk']; ?>"/>[/CODE]

Member Avatar for kevindougans
0
125
Member Avatar for ozarka30

fix? Nope! Work on them and bring specific point for help. We don't do homework for you!

Member Avatar for Stefano Mtangoo
0
136

The End.