1,003 Posted Topics

Member Avatar for surferbloggy

you can add it on your plugin or theme function. I don't have any time to actually check for my answer. However, I did this long time ago and this is how much I can recall. **Warning!** *Please check the wordpress codex for validity of my wordpress syntax and make …

Member Avatar for surferbloggy
0
286
Member Avatar for Pablo149

You can build your portfolio similar to whatever is the common requirements in your area. Allow me to use my situation as an example, I can breakdown 3 distinct requirements in the state of California. If I want to be employed as a back-end developer in Orange County, then I …

Member Avatar for mattster
0
134
Member Avatar for RikTelner

Can you please tell me why you need to send two mysql queries during login credentials validation? For security reason, what these pages tell the user, when they arrived upon redirect? header ("Location: index.php?look=login&err=nun"); header ("Location: index.php?look=login&err=npw"); these are wrong data types. Supposedly, you want 0 and 1 as an …

Member Avatar for veedeoo
0
184
Member Avatar for R0bb0b

another thoughts.. you can also count the PROCESSLIST to find out if you are on the max connection allowed , then let the next connection to sleep, check on wake up and then sleep if there is not available slot, else let the processes to continue. 150 is a lot …

Member Avatar for veedeoo
0
285
Member Avatar for fornandakishore

in addition, you may want to get familiarize with the drupal file system. Like many other applications not written in strict MVC design pattern, Drupal is built on the common application design "includes and modules". So anything that you want to alter in this CMS will be either in includes …

Member Avatar for jeffmarkel
0
318
Member Avatar for VShaw12

Honestly, I think you should have not accepted the project without knowing the core requirements. I am not insinuating here that you won't learn the frameworks, but if you haven't seen these frameworks before, I couldn't help myself not to think that you are indeed in a big trouble from …

Member Avatar for mattster
-5
236
Member Avatar for mastermind2

Honestly, your query looks good to me. Unless, you made a mistake in referring to the image. <img src="directory/<?php echo $row['image'];?>" /> should give you something like this <img src="directory/mpb.jpg" /> remember you query looks for the minimum price for each Product_name and not the MIN of all prices. Still, …

Member Avatar for mastermind2
0
202
Member Avatar for Sophia_1

The script above should have at least more than 2 errors. this alone will give an error if (isset($_POST['submit'])) //&& ($_POST['submit'] == "Submit")){` because this part has been commented out and it will break the if statement //&& ($_POST['submit'] == "Submit")){` if you uncomment the above, this will give you …

Member Avatar for veedeoo
0
522
Member Avatar for joshl_1995

Honestly, I kind of like the gimmeDotSupport. It is pretty straight forward I think.

Member Avatar for joshl_1995
0
258
Member Avatar for iConqueror

I don't see programming as a way of manipulating computer system in order to gain controll over it. I think programming is our ability to create complex instructions to test computer's maximum potential. Only fools believe everything they hear.

Member Avatar for Reverend Jim
0
531
Member Avatar for Ritesh_4

can you open one of them or at least when you see this <script runat="server"> you might also see something like this var sys = require("sys"),http = require("http"); that is for the server side js e.g. node.js .

Member Avatar for Airshow
0
159
Member Avatar for terryds

for the template name or style name, you can either store it in database or in xml file.

Member Avatar for veedeoo
0
113
Member Avatar for Phanindra Reddy

are talking about this [extension](http://www.opencart.com/index.php?route=extension/extension&filter_search=SPAM%20prevention)? Can you tell us exactly, which page these spams are originating from? Is it on your catalog? The reason I am asking is that, I know open cart is written in MVC and knowing the origin of the spam can lead us to the controller …

Member Avatar for veedeoo
0
119
Member Avatar for ultmt.punisher

try var_dumping the response from payza. In this case it should be the $info. Also, try var_dumping the $response just below the cURL's curl_close() call.

Member Avatar for veedeoo
0
589
Member Avatar for scarcella

I don't have the source of Magento, but what the error tells us is that whatever is the object of the method getPosition(), it is not being instantiated. You will have to find this on your codes. Please read the codes below as instructions and not the actual method of …

Member Avatar for veedeoo
0
463
Member Avatar for davy_yg

IMHO, the only way to push the footer down and keep it there is to have a wrapper that will have a minimum height of 100% and then we can place the header, content and footer inside this wrapper. The content div must have a bottom padding equivalent to the …

Member Avatar for veedeoo
0
190
Member Avatar for chrisde100

Hi Chrisde100, welcome to Daniweb :). Yesssss, I am the first :).

Member Avatar for webmastersprice
0
76
Member Avatar for sckret Benji
Member Avatar for centenond

you can try DirectoryIndex index.php try adding that to your .htaccess file either in the root or your directory in question and let us know if it work. You can read more about this topic [here](http://httpd.apache.org/docs/current/mod/mod_dir.html).

Member Avatar for centenond
0
247
Member Avatar for Warrens80

Graduated High School From the world class Tech Magnet School here in California. Although we have football field, I don't know much about playground, I am sure we don't have one. All we have were computers and finest mathematics teachers. Some kids are too young to be in High School. …

Member Avatar for veedeoo
0
250
Member Avatar for light_yagami

besides from using the deprecated mysql_ function, your query is not properly constructed. It should be constructed like this. Assuming that the $db is the persistent database connection. Make sure to add an error catcher. I am just giving you the most basic example. $result = mysql_query($query,$db); while($row = mysql_fetch_array($result, …

Member Avatar for Acurapassion
0
713
Member Avatar for iqra aslam
Member Avatar for Ritesh_4
Member Avatar for accra

I am not aware of any GUI to do this kind of installation, but it is not that hard to install them using comman line.

Member Avatar for accra
0
291
Member Avatar for JohnIV

why not record the sales on different table and sort the best combination or group of products that sell the most. Don't make it too complicated. All you need to do is define your own restrictions. e.g number of item sold, which pair of products are the top selling. But …

Member Avatar for veedeoo
0
165
Member Avatar for Jack_9

> I understand that you can use c# with it to develop web apps, but I can already do everything I need and more in a webapp with python and sometimes ruby. but those languages that you mentioned are among of the .NET languages e.g iron python, iron ruby and …

Member Avatar for geniusvishal
0
336
Member Avatar for davy_yg

should be like this $dataid = mysql_fetch_array($studentidResult);

Member Avatar for veedeoo
0
186
Member Avatar for u676522226
Re: hi

line 47: comparison operator incomplete. line 47: php closing tag needed. You need to complete this statement if($expires > and after the statement, you need to close your PHP ?> so that the parser will know where to stop parsing.

Member Avatar for mattster
0
98
Member Avatar for terryds

Both will be good and this new [password_hash](http://php.net/manual/en/function.password-hash.php) function from PHP.

Member Avatar for Taywin
0
187
Member Avatar for Stefce

index.html must be save as index.php also. Otherwise, anything with <?php will not be parsed by the PHP parser. There are alternatives to .php extension. PHP parser will parse any files with these extensions .php .php3 .php4 .php5 .phtml .inc // carefull with this one. the source can be viewed …

Member Avatar for mattster
0
294
Member Avatar for h4ng4r18
Member Avatar for TonyG_cyprus

You can also try doing something like this if(isset($_POST['submit'])){ var_dump($_POST); } the above should give you two sets of array. Assuming that all items are checked and quantities were filled, the above codes will give us something like this array(3) { ["drink"]=> array(5) { [0]=>string(3) "p/c" [1]=>string(6) "c/half" [2]=>string(3) "b/k" …

Member Avatar for TonyG_cyprus
0
181
Member Avatar for heidi.dum
Member Avatar for santunu23

session is pretty much the standard my friend. Assuming that the users don't turn off their cookie, still you will have to save it to your database for verification. Session will not slow your server to a halt. In today's standards and specifications, the load on the tmp directory is …

Member Avatar for santunu23
0
197
Member Avatar for LONGWAY
Member Avatar for LONGWAY
0
134
Member Avatar for RonKevinT.Manuela

**Please ignore my reponse. For some reason, we posted our responses almost at the same time.** echo '<a href="'.$dirpath.'/'.$file.'"> Click here to download '. $file .'</a>';

Member Avatar for RonKevinT.Manuela
0
293
Member Avatar for frankie198

PyCharm looks promising, but the features I like to have are all in the paid version only. Community version should help beginners and intermediate programmers/developers.

Member Avatar for Jack_9
0
855
Member Avatar for safi.najjar1

I don't understand the need of storing an instance of an object into a session. There are many ways in finding out if an instance of an object is present. There are singleton, factory, and instanceof PHP function that can be utilized. It does not take much to use them. …

Member Avatar for veedeoo
0
1K
Member Avatar for smgrafton
Member Avatar for divyakrishnan

this is wrong var arr = {/literal}{$a.ins_status|@json_encode}{literal}; alert(arr); it should be written as var arr = {literal}{$a.ins_status|@json_encode}{/literal}; alert(arr); Whatever you want to pass to the template file, it is highly recommended to pass it from the business logic side rather going for the literal. Besides you can always register you …

Member Avatar for veedeoo
0
2K
Member Avatar for iamthwee

just create a method for the modal, for example let's use the most common example of bootstrap modal. View page <head> <script type="text/javascript"> $(document).ready(function(){ $("#myModal").modal('show'); }); </script> </head> <body> <!-- the modal. Again, there is nothing here that I wrote, except I added something for the jquery to catch, else …

Member Avatar for veedeoo
0
458
Member Avatar for LONGWAY

Joomla have provided some possible server related problems [here](http://docs.joomla.org/Why_does_your_site_get_messed_up_when_you_turn_on_SEF_%28Search_Engine_Friendly_URLs%29%3F). An alternative way of doing this is by renaming the htaccess.txt to .htaccess included in the distribution as mentioned [here](http://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs). in the htaccess.txt, there is also an instruction there about **Options +FollowSymLinks** must be commented out if causes errors.

Member Avatar for LONGWAY
0
332
Member Avatar for raminshahab

@raminshahab, here is the array equivalent and you can try either one of the proposed solutions above. I know which one will work and which one will not. Your job now to test each. $json_info = array('data'=> array( 'ucsfeduworkingdepartmentname'=>array('ITS'), 'telephonenumber'=>array('+1 415 502-7575'), 'ucsfeduprofilenodeid' => Array ('39487740' ), 'displayname' => Array …

Member Avatar for raminshahab
0
240
Member Avatar for chrishea

wow, this is pretty scary. I have been sitting in front of my computer for long hours since I was 9 years old. Now, that I am an adult :) I am sitting until 4 AM finishing projects. My eyes can no longer be save, I am wearing prescription glasses …

Member Avatar for janeleonard
0
322
Member Avatar for cgull

it is also looking good on my side. ![a22ce9712452b18e9e332c99895e2635](/attachments/large/3/a22ce9712452b18e9e332c99895e2635.jpg "a22ce9712452b18e9e332c99895e2635") code used <div class="text-center"> {% $paginate %} </div> <div class="row" style="border: 1px solid red"> <div class="col-md-9"> Level 1: .col-md-9 <div class="row" style="border: 1px solid blue"> <div class="col-md-6"> Level 2: .col-md-6 </div> <div class="col-md-6"> Level 2: .col-md-6 </div> </div> </div> </div> …

Member Avatar for veedeoo
0
273
Member Avatar for adsegzy

Here is a very simple example.. $article = array('1'=>'article one','2'=>'article two','3'=>'article three','4'=>'article four', '5'=>'article five', '6'=>'article six','7'=>'article seven','8'=>'article eight','9'=>'article nine', '10'=> 'article ten'); $this_ad = '<b>this is banner ad</b>'; $perpage = 10; $ad_interval = 2; $i= 0; $out = ''; foreach($article as $item){ $i++; $out .= $item.'<br/>'; for($ad_x = $ad_interval; …

Member Avatar for veedeoo
0
147
Member Avatar for Jack_9

> Personally I think Python is better then ruby because it runs on the Django framwork and it can do more. I do respect your affinity to Python. However, why is it that you only mentioned Django framework and not a single framework for Ruby. Have you ever tried writing …

Member Avatar for OrionBlastar
-2
530
Member Avatar for berserk

you can make the password all lower case. Although I do not agree with the use of a superglobals $_GET to process user credentials, you can do it like this Everytime the form is submitted, you can covert the password to lower case $password = strtolower($_GET['password'];

Member Avatar for berserk
0
287
Member Avatar for sanjaypandit

Hi, Try this, [CODE] <?php ## define your url ## change comments tags to the proper syntax as recommended by php.net. ## unless you are a developer, you can give reason why these ## are valid. ## even if the rest of the world would argue that it is wrong, …

Member Avatar for rurunoruru
0
6K
Member Avatar for sokborey.chea

The table has nothing to do with it. this is the one causing the error <?php if($_POST['submitted'] == true){ ?> you can do something like this <?php if(isset($_POST['submit']) && ($_POST['submitted'] == true)){ ?>

Member Avatar for sokborey.chea
0
228

The End.