39,326 Topics
| |
is there a way to trigger the form post action="add_enquiry.php" where i wrote I WANT TO ADD FORM DATA TO MYSQL AND SEND EMAIL My form used to work without problems, it added data to mysql, the sent that data in nice html email to me, THEN I added CAPTCHA … | |
Hello, Guys Please help me.. 1.which are the popular CMS (like joomla,drupal) now in use with most popular websites? 2.which are the popular frameworks(like codeigniter) now in use with most popular websites? I wish to work with php,but i have only mere knowledge about php,frameworks,etc..please quote your suggestions based on … | |
SELECT * FROM admin where company='test & test' I am running this query but getting error due to [B]&[/B].while printing Its showing SELECT * FROM admin where company='test ',not accepting & in sql query Can we run using & in query need suggestion. | |
Hi friends, I just want to rewrite my url using htaccess [ICODE]www.site.com/movie-discussion.php?movie=name&page=2[/ICODE] to [ICODE]www.site.com/movie-discussion/2-name.html[/ICODE] I got the following code [ICODE]Options +FollowSymlinks RewriteEngine on RewriteRule ^movie-discussion/(.*)-(.*)\.html$ movie-discussion.php?thread=$1&page=$2[/ICODE] but it is going to the "movie-discussion" directory and as a result the css, javascirpt files which linked to this page is not working … | |
Hi, I am tryingto create the wordpress plugin and have written this code: [CODE] <?php /* Plugin Name: OSCommerce Productu rodymas Plugin URI: http://www.google.lt Description: Pluginas produktu roymui is OScommerce parduotuves Author: Darius Version: 1.0 Author URI: http://www.google.lt */ ?> <?php add_action('admin_menu', 'my_plugin_menu'); function my_plugin_menu() { add_options_page('My Plugin Options', 'My … | |
Hello everybody i am new to PHP and trying to learn more and more. now i am trying to make a reservation system i solved my date time problem but now i am stick on comparing two date from my form with two dates on my database here is my … | |
i have created a web page and placed some text boxes on it, now i'm looking to create an error massages when a person enter a wrong input the error massage will tell him/her to enter the right one and also if he/she left a text field empty and clicked … | |
[CODE]SELECT * FROM question LEFT JOIN answer ON question.Que_ID=answer.Que_ID AND question.Que_Answer1=answer.Ans_Answer1 AND question.Que_Answer2=answer.Ans_Answer2 AND question.Que_Answer3=answer.Ans_Answer3 AND question.Que_Answer4=answer.Ans_Answer4 AND question.Tes_ID=7 AND answer.Use_ID=1[/CODE] This should only show record that are use_ID=1 and Tes_ID =7. But in MySQL, there are data for test ID=8 and etc. isnt it only suppose to be 7. | |
I want to calculate the form fields at the same time when user type the code : Here is the thing that I am looking for : field 1: number 1(user types) fields:number 2(user types) calculate fields(display data) In the calculate fields I want that when user types it display … | |
Hi I am having a problem with code i have created to delete a customer from my database, would be grateful if someone could tel me where i have gone wrong [CODE] <?php include ('db.php'); $cid=$_POST["cid"]; $cname=$_POST["cname"]; $cusadd1=$_POST["caddress"]; $cusadd2=$_POST["caddress1"]; $cusadd3=$_POST["caddress2"]; $ccounty=$_POST["county"]; $custpc=$_POST["cpostcode"]; $custele=$_POST["ctelephone"]; $cusemail=$_POST["cemail"]; print $cid; $str="delete from customer CustomerName='$cname',CustomerAddress='$cusadd1',CustomerAddress1='$cusadd2',CustomerAddress2='$cusadd3',County='$ccounty',CustomerPostCode='$custpc',CustomerTelNo='$custele',CustomerEmail='$cusemail' … | |
[B]Hello! I have tried this one for a while now but i cant get it to work... [B]i want the url:[/B] [url]http://example.com/article.php?read=NzQ=[/url] [B]to be...[/B] [url]http://example.com/article/NzQ=[/url] i tried this one:[/B] RewriteRule ^article/([0-9]+)-([a-z]+) http://example.com/article/index.php?read=$1 [NC] But no luck! :'( | |
i m thinking of using image processing on the picture to compare two pics....but for that i think i have to use matlab.. can anyone tell me how to use matlab with PHP...... | |
| Hi people, I have a trouble displaying the files that are in my folder. Here, I try to display the name of the files and their description. I succeeded to display their description but not the files ! Please, help me [CODE]include('Cfg/config.inc.php'); mysql_connect($SERVER,$USER,$PWD)or die('Can not connect to the MySQL server … |
Hi, I my admin area, where the administrator can create a new page, it is also possible to decide the position of the link. It is a menu in the left side of the screen, one link on top of the other, very simple nav. I have a dropdown list … | |
Hello, I have a website for musicians where all users can post their ads for free. I need a script that send an email for a member user when his ad is going to be expired (let say after 30 days). Any ideas ? Sammy. | |
Hallo everyone, the Magento site at <URL SNIPPED> was working fine, until two days ago, I got the following error message: [CODE] SQLSTATE[HY000] [2005] Unknown MySQL server host 'db795.1und1.de' (1) Trace: #0 /home/.sites/62/site1586/web/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/.sites/62/site1586/web/lib/Varien/Db/Adapter/Pdo/Mysql.php(251): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /home/.sites/62/site1586/web/lib/Zend/Db/Adapter/Abstract.php(448): Varien_Db_Adapter_Pdo_Mysql->_connect() #3 /home/.sites/62/site1586/web/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array) #4 /home/.sites/62/site1586/web/lib/Varien/Db/Adapter/Pdo/Mysql.php(333): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES … | |
I am trying to create a PHP code for restaurants - I need the check boxes on the UI to allow for options for example the title would be "select up to three toppings" and there would be a list of checkboxes and the User can only check three also, … | |
I am having multi record delete problem. It shows an error about foreach loop. <?php if(isset($_REQUEST['action'])&&$_REQUEST['action']=="delete") { $value=$_REQUEST['check']; foreach($value as $ids) { $dquery="SELECT songname FROM songs WHERE id='$ids'"; $dresult=mysql_query($dquery); $drow=mysql_fetch_array($dresult); $songtodel=$drow['songname']; $path2="../upload/$songtodel"; if(is_file("../upload/$songtodel")) unlink($path2); $mdquery="DELETE FROM songs WHERE id='$ids'"; mysql_query($mdquery); } } | |
Hello erveryone. I am new in programming and i have the following problem i cant figure out! i want to make a search into my database. i have prepared my html-js-php files but it seems i have a php problem. When i search and i type whatever letter then i … | |
hai friends I need to count the files with in the selected folder. How to count the files ?? please help me. If any paossibel ple4ase send me sample code. Thanks vssp | |
Hello all, I am trying to use more regex but I can't seem to get this to work. The aim is to check inputs for either [url, [link or <a href: [CODE] $islink = false; foreach($_POST as $k => $v){ if((preg_match("/[url|[link|<a href/i", $v)) > 0 ){ $islink = true; } … | |
Hi.. Good day.. thank you for viewing my thread.. i would like to ask my fellow frens in daniweb to help me to validate access in my assignment system... currently my database is like this: [CODE]Assignment_id | Assignment_name | Member | Remarks 1 test 1 John, Sue, Veronica ok ok … | |
Hi I am experienced in ASP w/ C# but a beginner in PHP: How do I get the value of a unique index of a column of mySQL in PHP: [CODE=C#] try{ //do connect //insert data } catch(Exception ex){ if (ex.Message.IndexOf("Column_Name") >= 0) //<-- how do I do this in … | |
how do I read a website's source code line by line and store it as string for modification?? | |
I'm 20 and still a bit fresh out of high school. I have basic html knowledge and basic knowledge of macromedia dreamweaver. I've heard of PHP and am curious about it. Is it better than HTML? If so I would like to know where I can start learning basic PHP … | |
dear i am facing problem in populating array in my code as when i poulate an array in add code it works and when i do same in the edit section it gives undefined index error so how to solve this when press add button to add fruits from the … | |
Hi there, Because of browser wars and whatnot, a lot of CSS3 components have to be written in many different syntaxes to work. E.g. -moz-box-shadow and -webkit-box-shadow (even though they're identical in format) So, my solution is to write simple flags in the CSS file which a PHP script will … | |
| [CODE] $threadquery=mysql_query("SELECT * from threads where topic_id='$id'"); while($getthreadrows=mysql_fetch_row($threadquery)) { echo "<div class=singlepost>".$getthreadrows[2]."</div>"; }[/CODE] You can see Its fetching each comment into a div. But I need to do one additional thing too. Each comment may have some reply comment. How to get em like simple thread style as we see … |
Hello ,I am newbie..I am trying to configure Apache2.2 server for running .php files,but while editing apache/conf/httpd file its saying "Access is denied"..Please help me out |
The End.