39,323 Topics
| |
Ok so I am writing a PHP script that will gather some information into a file and the push it up via SVN. I am running into a problem with pushing it up via SVN. [CODE=php] shell_exec("svn commit -m $message store-webapp-test-selenium-$storeCode --password $svnPassword"); [/CODE] I have even tried it like … | |
[B]Hello, I want to search data through multiple drop down, using different tables in database just like if user want to search "data" field recode then he select Normal Resumes (radio button) and select drop down for search and same thing i want in "special" table in database.. i have … | |
Hi, I am trying to execute the following script, but each time it is failing and returning "Unable". Note: "Unable" is the response returned when isset($_POST) is not working, refer the code for more details. [COLOR="red"][B]PHP CODE[/B][/COLOR] [CODE]<?php $test = "Hi!"; if ((isset($_POST['usrName'])) && (isset($_POST['pWord']))) { $user = $_POST["usrName"]; $pass … | |
The only difference is that the 2nd is written within a function and returns instead of echo. What is the problem? [code=php] <?php jcarousel_add('tango'); drupal_add_js ( '$(document).ready(function(){ $("#carousel-cars").jcarousel(); } ); ', 'inline' ); echo getcwd(); echo "<div id=\"carousel-cars-horiz\">"; echo "<ul id=\"carousel-cars\" class=\"jcarousel-skin-tango\">"; $pic = NULL; $url = "./sites/all/modules/img/Images/"; $handle = … | |
Hi, I have populated a dropdown menu using php pdo from sqlite database. How would i go about reading what the user has selected in the dropdown menu. so i can do something like: $userSelected = [whatever user selected in the dropdown menu]; my code is as follows (part of … | |
i get this Warning: Cannot modify header information - headers already sent by (output started at c:\appserv\www\conectarse.php:2) in c:\appserv\www\conectarse.php on line 61 and this warning happen in line 58 - header("Location: ".$MM_redirectLoginSuccess); and in line 61 - header("Location: ".$MM_redirectLoginFailed); pls i need somebody help me to resolve this this is … | |
I have a client that wants a site for people who are potentailly being abused, often by partners they live with. He is under the impression that it is possible for there to be a "Button" that deletes the cache when the user presses it rather than going through the … | |
i'm trying to explode my variable but it has a single quote which is invalid in my mysql syntax. can u help me how to explode a single quote?? list($a, $b) = explode("'", $des); | |
Hi, Currently I am working on a site that lets users upload photos for their personal page. This page is just a prototype so some of the code is very sloppy so I really should not post all of it. Anyway, here is some: [CODE]$id =$_GET['id']; if(!isset($id) || empty($id)){ die("Please … | |
Hello everyone. This is a small php code to change password. [CODE]<?php session_start(); $oldpwd=$_POST['oldpwd']; $newpwd=$_POST['newpwd']; $conf=$_POST['conf']; $currentid=$_SESSION['email']; if($newpwd!=$conf) { echo"Passwords Do Not Match"; } else { if($oldpwd==NULL || $newpwd==NULL ||$conf==NULL) { echo"Any fields cannot be left Blank"; } else { require('../connect.php'); mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $qry="SELECT … | |
Using the above technologies, I want to create a PDF, store it in my db, and email it. All with the click of one button. I also want to call it up and have it be able to display with a hyperlink. I am very new to FPDF. Therefore, I … | |
Hi, I am pretty new to this scripting language. I have just installed the following s/w packages in my system via XAMPP. >php >MySQL >Apache Next,I started writing a basic script in notepad and saved it as "hello.php" My question is where to run this script, either in the Command … | |
I want to create pdf from sql result and then also mail it or save it. Kindly advise. I want any link to working example and code or simple code. Thanks. :) | |
This is stumping me...it's probably pretty obvious, but I'm working under medication for the flu... I finally got my form submitting to my database and to separate tables from the update.php script. Problem is, (I know this sounds trivial and I shake my head as I query) I can't get … | |
Below you will find my code for a form. I am trying to do Regular expression. I have the expression but when i enter something that is not right it will still post. I believe the reason is that i am still calling the $_POST of original not taking into … | |
Hi I am just stucked. Would be great if someone can help me. I have created form in page1.html. User fill the form and can view it in page2.php where there is also an edit button. If they need to edit any details, page3.php comes and they they can edit … | |
i need help. i am developing a webpage which is the user is able to log in,log out, register, and change password but my problem is the tutorial that i've seen so far is about mysql. i am using ms access database and i want to do this stuff using … | |
Hi I am very new to PHP and was working through a tutorial to learn a little about PHP. I created a simple form that passes form variables to another page to be displayed. It's a coin counter that when the user enters certain amounts of different denominations of coins, … | |
Hello! Finally I joined daniweb. Great stuff in here guys. Anyways lets get to the problem: I have a page where a number of topics are displayed ( they are added by admin). And to get this list I`m using this script [CODE=php] // Query the database $gettopic = mysql_query("SELECT … | |
Hello, When I try to mysql insert values with same names, it encourages this error. When I looked at the table column, I see that the row id is always "1" and it doesnt let to add same entry. [URL="http://img267.imageshack.us/img267/4123/sfff.jpg"]http://img267.imageshack.us/img267/4123/sfff.jpg[/URL] My question is, how can I add an auto increment … | |
hi every one, i need your help in php code. my error is for profile page. after implementing lots of php code in this page,my page became auto refresh in every 2secound. i don't know what happend to it. i m attaching my code pls elp me. [CODE] <?php //get … | |
I am member of daniweb since last 2 and half years. That was very good when i joined this. But now its just rubbish here. No one try to help others. I had post 5 different threads but i didnt find any solid suggesstion, any sound solution. In my following … | |
I'm sure this has been answered many times but its something i've struggled with doing, if i wanted a user login on one page, when, for example "John" logs in he goes to an area that only "John" can see, "Jill" cannot see this area and cant access it by … | |
hey ppl. I have many submit buttons in a form. Each of them does its thing in different php pages. But when, for example, 'add' button goes to 'add.php' it does its work but stays there) how to redirect page back? thanks | |
Could someone please explain why the following code works: [code=php] <html> <head> <script type="text/javascript"> function test(){ phpTest = "<?php echo 'hello'; ?>"; document.getElementById("php_code").innerHTML = phpTest; } </script> </head> <body> <a href="#" onclick="test(); return false;"> test </a> <span id="php_code"> </span> </body> <html> [/code] while this code doesn't: [code=php] <html> <head> <script … | |
I need to assign a variable based on its value. ie: $variable = 'value' (if value != "Session['value']" My brain is not really working atm I know there has to be a simple way to do this. I am selecting a random file from a directory and do not want … | |
Does anybody know anything about click functions? I need ur help guys. what I wanted is that there will be 3 choices and once I clicked one of those choices it will be automatically displayed to a table in html. please help me cause google can't help me or i … | |
Hi all, I am implementing a dropdown list that finds people from a "State" and "City". The states and cities are stored in the DB when a user registers. Since there are several times "California" exists in the DB, how can I display "California" in my dropdown list once and … | |
Hi There, I've got a membership script and a login using PHP and MySQL databases however when it logs in it simply displays a PHP page - the same one for all users. I want to be able to customise the members page so it says things like: Hello, <username>. … | |
Ahoy Sailors! So I'm scripting a socket based project in PHP, And now I've got to the stage where I'm needing to start accepting user input, What worries me is that PHP can't do two things & once (I.E Spawning & waiting for input from an interface & listening for … |
The End.