Posts
 
Reputation
Joined
Last Seen
Ranked #302
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
90% Quality Score
Upvotes Received
70
Posts with Upvotes
63
Upvoting Members
50
Downvotes Received
8
Posts with Downvotes
6
Downvoting Members
7
24 Commented Posts
1 Endorsement
Ranked #858
Ranked #140
~324.95K People Reached
About Me

PHP and WordPress developer. Lover of Javascript and front-end coding.

Interests
Passionate about web technologies, programming, sharing and contribution on the internet. Love to read…
PC Specs
Windows is my most favorite OS and most of works done on it. Ubuntu is my favorite one on Linux platform.
Favorite Forums
Favorite Tags
Member Avatar for codeblock

[CODE=php]<form action="<?php echo pf_script_with_get([B]$SCRIPT_NAME[/B]); ?>" method="post">[/CODE] The bold text should be [B]$_SERVER['SCRIPT_NAME'][/B]. What is the purpose that the function pf_script_with_get doing ? If you want the form action to the same page. Use $_SERVER['REQUEST_URI'] which returns the current url including query string (ie., you can get those with $_GET method …

Member Avatar for Dani
0
20K
Member Avatar for Jiaxin
Member Avatar for Rakesh_13
0
81K
Member Avatar for rpv_sen
Member Avatar for sexycodette

What is the field type for (type and cat_parent). You don't need the quote for the integer. Make sure that the field names are also correct.

Member Avatar for Adiel
0
3K
Member Avatar for paulogaiski

Seems you've not pass any form data or `$_POST['submit']` was not set. What's your page before reaching to 'login.php' ? And, why `session_start()` twice ?

Member Avatar for Adrian_5
0
258
Member Avatar for davy_yg

The form is using **POST** method. Every `$_GET` should change into `$_POST`

Member Avatar for Topnews
0
391
Member Avatar for rajeesh_rsn

Put this css property in the main div. [code] overflow: hidden [/code] Float overlap to its parent and element followed after it. You can add the clear div after the two float divs. Here is example [code] <div style="clear:both"></div> [/code] Good luck..

Member Avatar for Parveenkumar
0
861
Member Avatar for hanspeare

It should be `$result`, not `$data`, the correct one is `$numRows = mysql_numrows($result)` Also, you've already assigned student's ID to `$student_id` variable, why `$_GET['id']` in your sql and it was not filter properly. And mysql is deprecated and there is new **mysqli** and **PDO** for more secure database communication.

Member Avatar for hanspeare
0
336
Member Avatar for hiiiiii@

Cart table should has food's ID in case the user order the food and delete from cart table where food's ID and user's ID found.

Member Avatar for hiiiiii@
0
201
Member Avatar for david.roun.7_1

String concatenation error on line 15 inside while loop. `echo 'There are . $result . 'members';}` Try this: $result=mysql_query("SELECT COUNT(*) AS total FROM registration") or DIE(mysql_error()); $row = mysql_fetch_row($result); if($row[0]['total'] > 0) { echo 'There are ' . $row[0]['total'] . ' members.'; } It should work *(not tested)*.

Member Avatar for david.roun.7_1
0
1K
Member Avatar for seotheo

seotheo: Here is [reference](http://codex.wordpress.org/Function_Reference/get_post_ancestors) from WP Codex for you. Check it out and try this inside `is_paged()` conditional block properly as you need. Always check [WP Codex](http://codex.wordpress.org) while working with WordPress.

Member Avatar for ko ko
0
268
Member Avatar for dlmagers
Member Avatar for Alberto Bucur
0
1K
Member Avatar for kishan699

This is PHP forum, not Javascript. You can post your problem in [Javascript / DHTML](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117) forum.

Member Avatar for kishan699
0
304
Member Avatar for rajesh31

It can't be stored or what's the problem ? Echo your `$qry1` and copy / paste into your MySQL via CLI or PhpMyAdmin and see what happen.

Member Avatar for diafol
0
4K
Member Avatar for daocntt

If you know how to work with PHP, MySQL and jQuery or Javascript, that's simple work. The only difficulties would be building pretty UI and the interactive functions on the front-end. The back-end part would be really simple for such kind of work.

Member Avatar for daocntt
0
411
Member Avatar for Alpha00005

Wamp provides to add your own vhosts in seperate folders '**vhosts**' under **wamp** folders, and it'll load all vhosts file you added there when startup wamp server. You don't have to add your VirtualHost in **httpd.conf**, it makes harder to maintain or you can lost your vhosts configuration when the …

Member Avatar for ko ko
0
317
Member Avatar for joachimanderson

What's `ajaxObj("POST", "login.php")` ? Does your ajax actually working ? You can track Ajax connection on your browser add-on like Firebug. Are you sure your form data is passed to your Ajax page ? Also there is no `</br>` tag. It's just `<br />`

Member Avatar for joachimanderson
0
236
Member Avatar for daocntt

Can't you write down an JOIN query ? Like below: SELECT c.*, l.Label AS Location FROM Classifieds AS c JOIN location AS l ON c.Location_id = l.ID WHERE l.Label LIKE '%USA%'

Member Avatar for diafol
0
327
Member Avatar for malatamil

Please post your question clearly. Are you talking about more than one record listing with respective pagination for them ?

Member Avatar for ko ko
0
893
Member Avatar for prem2

Brackets in where ? Beginning of file name with numbers inside brackets ? I'm not sure what you're actually trying. Below is the modified version of your pattern. $pattern = '/^(\([0-9]\))?.\w[\w\s\.\%\-\(\)\[\]]*$/u';

Member Avatar for ko ko
0
280
Member Avatar for abhi10kumar

There is plenty of ajax tutorials on the internet. Google that. We can't make a snippet for you.

Member Avatar for Bachu
0
78
Member Avatar for salii

It's not notepad what @veedeoo is mentioning. Notepad is not good IDE to write the code or any programming language. You should use another IDE which has more features and good supporting for multiple programming languages such as PHP, HTML, ASP or Java. Here are some good tools you should …

Member Avatar for jessie.wauters.1
0
1K
Member Avatar for OldDeveloper01
Member Avatar for designershiv
Member Avatar for vizz

Try. This one is working on my localhost. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)[/]?$ $1.php [NC] Add below at the bottom of your htaccess to rewrite if theres is no rewrite rule for request, and it'll rewrite to index.htm. You can change index.htm to anything (index.php/asp/jsp) you like …

Member Avatar for vizz
0
434
Member Avatar for abhi287

[B]session_start()[/B] should be very top of the file before returning any HTML output and should not have empty line or space between php opening tag and session_start(). Move 'session_start()' before any html tags. Below is the valid format. [code=php] <?php session_start(); ?> <html> <head> <link rel="stylesheet" type="text/css" href="css/styles.css" /> </head> …

Member Avatar for aj4mq
0
560
Member Avatar for apanimesh061

str_pos() returns boolean (TRUE or FALSE). Should be if (strpos($html->href, 'http://') !== FALSE) { //there is http in the url, then do this statement // your code } Or use @diafol method.

Member Avatar for apanimesh061
0
156
Member Avatar for phanisk

What's your json file extension ? Have you also put header in your json output file which is 'url' in your script ? Try to set header in your 'url' file with 'Content-type: application/json' or 'Content-type: application/javascript' if you're using javascript file for json data. Example <?php $jsonfile = file_get_contents('your_json_file.json'); …

Member Avatar for ko ko
0
285
Member Avatar for wasim kazi

Here is my script and markup with your getCookie and setCookie functions. It does work properly. <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title> - jsFiddle demo by wasimkazi</title> <style type="text/css"> <!-- body { color: #171717; font: 11pt/14pt Arial, Tahoma, Sans-serif; } h3 { font-size: 11pt; margin: 0 0 …

Member Avatar for wasim kazi
0
2K
Member Avatar for din3sh

$('#slider').slidertron({ viewerSelector: '.viewer', indicatorSelector: '.indicator span', reelSelector: '.reel', slidesSelector: '.slide', speed: 'slow', advanceDelay: 4000 }); Are you sure this is the correct settings of the plugin ? I just searched and download this plugin. There is documentation inside the package. Check it carefully. It is the original [link](http://nodethirtythree.com/jquery/) of the …

Member Avatar for din3sh
0
329