- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 70
- Posts with Upvotes
- 63
- Upvoting Members
- 50
- Downvotes Received
- 8
- Posts with Downvotes
- 6
- Downvoting Members
- 7
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.
Re: [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 … | |
Re: [B]SELECT [COLOR="Red"]$criteria[/COLOR][/B] Why dollar sign before 'criteria' after 'SELECT' ? | |
Re: 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. | |
Re: 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 ? | |
Re: The form is using **POST** method. Every `$_GET` should change into `$_POST` | |
Re: 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.. | |
Re: 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. | |
Re: 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. | |
| Re: 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)*. |
Re: 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. | |
Re: I'm not sure what's the problem ? I don't get any problem. Is it not working ? | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 />` | |
Re: 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%' | |
Re: Please post your question clearly. Are you talking about more than one record listing with respective pagination for them ? | |
Re: 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'; | |
Re: There is plenty of ajax tutorials on the internet. Google that. We can't make a snippet for you. | |
Re: 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 … | |
| Re: Mark this thread 'Solved', if it was solved. |
Re: Check [RegEx](http://www.jquery4u.com/syntax/jquery-basic-regex-selector-examples/). | |
Re: 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 … | |
Re: [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> … | |
Re: 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. | |
Re: 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'); … | |
Re: 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 … | |
Re: $('#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 … |