39,323 Topics
| |
I have the following code which I use in PHP-Liquid template engine. I want the ability to add or delete rows trough phpMyAdmin instead of adding/deleting new arryas. So I need to use MySQL, but how should I proceed to work it out with my example? $assigns = array( 'blog' … | |
Hello ! How can i submit a form but remain on the same page : <form enctype="multipart/form-data" method="post" action="script.php"> ----- ----- </form> it goes to script.php thank you. | |
Hi Master, please help me, i could not insert my multiple checkbox selected value into my table. please see and help me. its insert only one value like first one. here is code: **HTML code: ** <td width="75%"> <input type="checkbox" name="whats_include[]" value="Breakfast" > Breakfast / <input type="checkbox" name="whats_include[]" value="Lunch" > … | |
Dear Sir, I have following codes <?php $var2=""; $name=""; if (isset($_POST['button1']) && !empty($_POST['text1'])) { $name=$_POST['text1']; if ($name=="1") { $var2="1"; }else{ $var2="0"; } } ?> <html> <head> <title> First form </title> </head> <body> <form name="aa" action="textboxes.php" method="Post"> First<input type="text" name="text1" value=""><br> Second<input type="text" name="text2" value="<? echo $var2; ?>" disabled><br> <input type="submit" … | |
Hello guys, i have been away in the last few days, because of work, so i am on again. I am trying to ping a series of hosts and then add info about the ping in a row. I have a DB called ad, with a table called ping with … | |
Hi guys, Am using RedBeans ORM in PHP, Today only am going through the RedBeans ORM, i think RedBeans is the Very simple to manage database. But am getting doubt at which is better to use either rows(queries) or beans. `$sql = 'SELECT author.* FROM author JOIN club WHERE club.id … | |
Hi, I am trying to make a smime pk7s file using openssl and send the attachment as an email. I am trying to encrypt a file with a public key and and sign that file. I am using makemime library for the enryption of my xml file.I want to create … | |
please tell me how to create and code too. | |
I'm working through a little [TimThumb](http://www.binarymoon.co.uk/category/web-design/timthumb/) example, but I can not get through the first basic tutorial because I do not have a good grasp of PHP. Using this image file: http://i.imgur.com/OCxHpUA.jpg I want to plug that into my TimThumb php script and see the output, but this code is … | |
i would like to develop a chatroom with video calling so help me. Is there any function to call the webcam on page?? | |
i want to creat a post script to auto insert new codes on my site when a member post a picture or video buth it dsnt seem to be working just like posting coments and suggestions in a forum | |
Hello ! i'm working in dreamweaver , and i have 2 lines : $part="..\fl1\"; echo "OK"; Dreamweaver produce an error in second line. if i change the first line to $part="..\fl1" everything is ok. what is the problem with the \ character at the end ? thank you. | |
Dear Sir, I have following code <html> <head> <title>Javascript function </title> <script type="text/javascript"> function hello(){ var xx=eval(form1.text1.value); var yy=eval(form1.text2.value); if (xx>0 && xx>yy){ alert("Amount 1 is greater") form1.text3.value=("Amount 1 is greater") }else{ alert("Amount 2 is greater") form1.text3.value=("Amount 2 is greater") } } </script> </head> <body onload="form1.text1.focus()"> <center> <h1 style="color:#2c80d3 ">Javascript … | |
$newtypeid=$_REQUEST['newstype']; $action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:''; if($action == 'ajax'){ echo "newtypeid is".$newtypeid; -------------- //some stuff here } How to get $newtypeid value inside if statement. | |
Hi all, I am trying to connect to a remote server, I am using the IP address server name and folder to connect, not sure if ths is working? I am aslo getting an error on the final foreach loop (`foreach ($files as $file) {//print array`) Warning: Invalid argument supplied … | |
Ive tried everything, even typing the whole thing again from scratch but it doesnt seem to work. Please help about the error on line 9. Coding below: 1. <?php 2. $name = $_POST['name']; 3. $surname = $_POST['surname']; 4. $company = $_POST['company']; 5. $email = $_POST['email']; 6. $contact = $_POST['contact']; 7. … | |
hi how can i fetch data from the database and stroe it into session variable. my code: $sql = "SELECT password, fullname, username, active FROM ".$mysql_table." WHERE (username = :username OR email = :username) AND password = :password"; $statement = $pdo->prepare($sql); $statement->bindValue(':username', $_POST['username']); $statement->bindValue(':password', md5($_POST['password'])); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); if … | |
Hello, I have a form that retrieve the data from the database, which it depends on the expenses ID, then I want to send email to the employee to notification him that his expenses claim has rejected. The problem is on the phpmailer that does not take the value of … | |
Hello I would like to know how can we make speech to text PHP based application. Any API reference and tutorial. | |
Hy my apache2.4.6 is not reading htaccess files My 000-default.conf file is <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # … | |
Dear Sir, I have modified your codes once again as <?php if (isset($_POST['button1'])){ $name=$_POST['text1']; }else{ $name=""; } if ($name) { echo 'My name is ' . $name; }else{ echo 'No name entered'; } ?> <html> <head> <title> First form </title> </head> <body> <form name="aa" method="POST"> Name <input type="text" name="text1" value=""> … | |
Hello ! i want to create an input form with these fields : Name ------ Age------- Photo --------- <Browse file Button> <Submit button> After the user press the browse button and select a file i want to display the path. After the user press the submit button i want to … | |
I have opencart 1.5.6 with Swedish language file I get an error code when the customer should register an account 2013-11-16 14:54:16 - PHP Warning: Can not modify header information - headers alreadycreated late by (output started at / customers/1/b/6/mittföretag.se/httpd.www/catalog/language/swedish / account / register.php: 1) in / customers/1/b/6/mittföretag.se/httpd.www/system/engine/controller.php on line … | |
I wrote this code to integrate with filepicker.io, it takes the URL of the file and gets the header information: $info = curl_init() or die('error 1'); curl_setopt($info, CURLOPT_RETURNTRANSFER, 1); //curl_setopt($info, CURLOPT_PORT , 8089); curl_setopt($info, CURLOPT_URL, $url); curl_setopt($info, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($info, CURLOPT_NOBODY, true); //curl_setopt($info, CURLOPT_SSL_VERIFYPEER, 0); curl_exec($info); if(!curl_errno($info)){ $response = curl_getinfo($info); … | |
this is my php code for my profile.php. it is to display the users name after login. <?php session_start(); require "connect.php"; if($_SESSION['name']) { $name = $_SESSION['name']; $query = mysql_query("SELECT name FROM register WHERE name ='$name'"); $numrows = mysql_num_rows($query); if(1 == $numrows) { while ($rows = mysql_fetch_assoc($query)) { echo "Welcome, ".$rows['name']."!"; … | |
this is my search.php , however once user has view one data user will want to update one location / status . I can not do the Edit.php . Can someone please help me ? Search.php <html> <head> <title>::Home</title> </head> <body> <div id="header"> <img src='banner.png' align='middle' width='101%' height='110%'> </div> <div … | |
Can someone help me to fix this problemmm pleasee. Notice: Undefined index: id in C:\xampp\htdocs\draft3\Edit.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\draft3\Edit.php on line 6 Edit.php <?php include'e.php'; if(!isset($_POST['submit'])) { $q="SELECT * FROM myaduan WHERE id= $_GET[id]"; $result=mysql_query($q); $myaduan=mysql_fetch_array($result); } ?> <h1>You … | |
Sir I have following codes <?php if(isset($_POST['button1'])) { $aa = $_POST['text1']; echo ("My name is " . $aa); } ?> <html> <head> <title>First form</title> </head> <body> <form name="aa" action="mix.php" method="POST"> Name<input type="text" name="text1" value=""> <input type="submit" value="display" name="button1"> </form> </body> </html> These codes work fine. I am beginner so I … |
The End.