Posts
 
Reputation
Joined
Last Seen
Ranked #303
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
~327.72K 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

546 Posted Topics

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
263
Member Avatar for davy_yg

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

Member Avatar for Topnews
0
395
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
863
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
343
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
205
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
272
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
320
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
414
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
323
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
237
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
331
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
901
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
283
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
80
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
440
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
565
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
159
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
297
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
334
Member Avatar for akuvidz
Member Avatar for jayan.bee
0
149
Member Avatar for laura301019

Array index start from 0. You can +1 within your array loop. Like for ($i=0; $i<=$size; $i++) echo "month number " . ($i+1) . " is :" .$theArray[$i] . "<br />"; }

Member Avatar for ko ko
0
146
Member Avatar for tinabina22

With my thought, better pick up a CSS framework such [Twitter Bootstrap](http://twitter.github.com/bootstrap/) or [960.gs](http://960.gs/) would help you to make your template easily with their default CSS properties in a short while. You can also try [free CSS templates](http://www.freecsstemplates.org/) to download into your PC and customize those templates according to your …

Member Avatar for diceadmin
0
699
Member Avatar for magicmarkuk

If I am not wrong, toFixed() must be custom javascript function which fills zero to float number with one position. You can pass the current value within that function and assign to variable as new value. Like amount += parseFloat($(this).metadata().amount); amount = toFixed(amount);

Member Avatar for Troy III
0
217
Member Avatar for shahidr100

See demo [here](http://graphnickdesign.com/blog/generating-dynamic-selection-dropdown-jquery-ajax/) and [here](http://www.joe-stevens.com/2010/02/23/populate-a-select-dropdown-list-using-jquery-and-ajax/)

Member Avatar for shahidr100
0
2K
Member Avatar for vinay7868

When will you want to insert cat_id ? When the form has submitted ? You must have action to process server-side script. So, put action in your form via "action=somewhere" attribute. Somewhere could be server-side language php / jsp / asp file. Then, you can get the data in this …

Member Avatar for vinay7868
0
233
Member Avatar for softDeveloper

In jQuery, you can use $('p').wrap('div'). Anyway, post more details to get more implementation.

Member Avatar for ko ko
0
122
Member Avatar for softDeveloper

If you are comfortable with jQuery, then jquery [filter()](http://api.jquery.com/filter/) can be implemented easily.

Member Avatar for ko ko
0
77
Member Avatar for JameB
Member Avatar for trektrak

There are some PHP image resize libraries. [Google](https://www.google.com/search?q=php+image+resize&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=fflb) it.

Member Avatar for blocblue
0
229
Member Avatar for laxmanm1

First, where is your radio button ? You just posted only form and submit button. You can process PHP directly with javascript onclick event except using Ajax. You must submit the form and process at server-side then assign value in server-side or print to client-side (browser). Ensure what you want …

Member Avatar for ko ko
0
254
Member Avatar for PatrikDendis

From where do you want to get controller name ? If you want to get from view, you can use $this->uri->segment(1). You can use CI default functions get_instance() to get the current object and then use get_class($CI) to get the object name as string. Example below: $CI =& get_instance(); echo …

Member Avatar for ko ko
0
187
Member Avatar for tim-work

Change `echo "<a href='fullnews.php?id=$id'>$headline</a>";` to `echo '<a href="fullnews.php/' . $headline . '-' . $id . '">' . $headine . '</a>';` In htaccess RewriteEngine On RewriteRule ^fullnews.php/(.*)-[0-9] fullnews.php?id=$2 It'll rewrite to "fullnews.php?id=123" when visitor visits fullnews.php/headine-123", headline is that you set from query.

Member Avatar for vibhaJ
0
188
Member Avatar for Danny159

var_dump($arraydata['newda']); How look like the above value before json_decode() function ? It contains any slash or escape ?

Member Avatar for Danny159
0
198
Member Avatar for Valkyrian

You must be finding the way to insert multiple rows at a time. Check this [post](http://www.daniweb.com/web-development/php/threads/271827/insert-multiple-rows-into-mysql)

Member Avatar for diafol
0
373
Member Avatar for calvinmicklefin

You must have break for each case. Also, you should use variable within switch parantheses which likes switch($interval) instead switch(true).

Member Avatar for calvinmicklefin
0
185
Member Avatar for goody11

Echo $rs_insert_scan before mysql_query() statement and see what returns. Is it the right query syntax what you're expecting ?

Member Avatar for goody11
0
250
Member Avatar for my3h

> **$stringResult = $stringResult** . "['".$resultValue['name']."',".$resultValue['quantity']."],"; The problem is as shown above as bold text. Use another variable to assign. Just like: $newStringResult[] = $stringResult[$resultValue['name'],$resultValue['quantity']]; The bracket [] defined as array, so, you can get all values within loop as array. Otherwise, you'll only get last value.

Member Avatar for kurtopia
0
145
Member Avatar for kapilver

Connect to SQL server with ASP needs ADODB connection. This connection can extract data from database and insert data into database. What problem do you face?

Member Avatar for johnjaafarj
0
394
Member Avatar for newbie14

max-height does not work on older IE. You should set fixed height instead of max-height.

Member Avatar for yoyokapil
0
91

The End.