39,388 Topics
![]() | |
i have a form in one page thet leads me to another page . exemple: when i want to delete a page in my cms , i am click on the icon that is leads me to page called delete.php. i want that when i click the icon the option … ![]() | |
I have a problem to update my sql <?php $host="localhost"; // Host name $username="matanc_cmd"; // Mysql username $password="123123"; // Mysql password $db_name="matanc_cms"; // Database name $tbl_name="content"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id … | |
Hi Guys First of all i would like to state that i am new in php so my question might appear stupid for the geeks here. I want to create an image downloader in php , that is i need a textbox and a submit button. The user enter each … | |
my code gives undefine index error .. and i don't know how to solve it... i m making online testing program but every eror in every step is undefine index error... ok my html file is <html> <form action = "http://localhost/onlineexam/home.php" method = 'get'> <center><h1>WELCOME TO ONLINE EXAMINATION</h1> <br> <br> … | |
Hey guys, Im looking for a simple blog script for a website. It doesnt need to be fancy, just a single admin page and then the blog display page. No styling is required, as I am to add this to a HTML template. If anyone could point me in the … | |
![]() | if I have a function with 1 param that is default, meaning if it isn't sent in the function call it get's it's value from the value I put in the function definition- like this: function func(a$, $b, $c=null){} I can call this function like this: func(1,2); //$c get's null … |
Hello, I have this code which grabs url from a webpage, when i add multiple urls, sometimes some of the webpages does not have images in the div that i mentioned in this php code so it returns with this error : Fatal error: Call to a member function find() … | |
I am creating my purchasing system for my game at the moment, but I am struggling on a part of it and wondered if any of you could offer me some guidance? The problem I am facing is adding X amount onto a value but if that means it goes … | |
Hi, I am having trouble with this chunk of PHP script: <?php $deny = array("Example IP"); if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { header("location: http://www.google.com/"); exit(); } ?> It works fine, its just when I try to link to a file that has the $deny var, it wont work. I tried using … | |
Hi, I have text file which has lots of text as well as HTML data. There are some line as shown below. 06/30/12 00:40:30.73 Sending Email - Group: 4FD7917824F1B-EMAIL, 0, Message: There are lots of lines like above in text file. I want to extract following data from the entire … ![]() | |
I try to create dropdown list with informations from title column in sql table, but never succeeds. My connection and query is good. Can somebody to help me with this? mysql_connect(***); mysql_select_db(***); $query = mysql_query("SELECT title FROM test"); Thanks! | |
Ok i think i'm getting closer to what I need.. Here's the error msg i'm getting. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table WHERE id = Stef Longo' at line … | |
I have created a page myfunction.php and added two functions: function AppNotify ($Uid,$ Message,$ Data) { return; } function AppNotifyUnfriend($Uid,$ Message,$ Data) { return; } After that I created another page and include “myfunction.php” on these page then create code $done= AppNotify (‘12’,’hello’,’Delete’); $done2= AppNotifyUnfriend(‘12’,’hello’,’Delete’); The problem is when i … | |
Hi, I have a database table filled with interesting data. On my webpage I would like to let a user pick two rows in the table and compare the data to see how it differs. Picking what rows to compare would be done by two dropdown lists. The data in … | |
hi i have a little bit of issue just thingking if somebody can give me a hand out here.. the issue is when i compute for a car rate..it will depend on the date of rental and the return date,which is already coverd the problem is it will not really … | |
Here is the code for my login page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Login</title> <style type="text/css"> #apDiv1 { position:absolute; width:200px; height:115px; z-index:1; left: 608px; top: 201px; } #apDiv1 form table tr td { font-family: "Trebuchet MS"; } </style> </head> … | |
Hi, I have looked at this code and I cannot see the problem. If anyone can spot the error then I will be very grateful. Basically I am returning an array from a .PHP in json format the code is here. echo json_encode($anarray); the array is made up like "vegetable" … | |
![]() | Hi I'm having an issue with the **chmod**. I can't seem to excute the file. Everytime I upload a file and write something it keep saying "**Directory is not writable chmod(700)** Here is the code: function checkPath ($path) { if (!is_dir ($path)) { printSecurityText ("Directory does not exist: ".$path.""); return … ![]() |
hello every one i want to ***creat a forum that some one can contribute an article and others can reply its.*** please help me Thanks in advance.e | |
Can some help me to convert the below xml data into php array. Thanks in advance. <dataroot> <content id= "1"> <quest><![CDATA[<FONT FACE="Arial">Which of the following is not the measure of a physical quantity?</FONT>]]></quest> <opt1><![CDATA[<FONT FACE="Arial">kilogram</FONT>]]></opt1> <opt2><![CDATA[<FONT FACE="Arial">impulse</FONT>]]></opt2> <opt3><![CDATA[<FONT FACE="Arial">energy</FONT>]]></opt3> <opt4><![CDATA[<FONT FACE="Arial">density</FONT>]]></opt4> <ans><![CDATA[a]]></ans> <ans_desc><![CDATA[<FONT FACE="Arial">kilogram is the name of the fundamental … | |
I am trying to add an username and password into a database using JSON. I cannot get it to work, any ideas? Thank you. <?php mysql_connect("localhost","sdr001","************"); mysql_select_db("tristate"); $userID = $_POST['userID']; $password = $_POST['password']; $q=mysql_query("INSERT INTO users VALUES(>'".$_REQUEST['userID']."'"); while($e=mysql_fetch_assoc($q)) $output[]=$e; print(json_encode($output)); mysql_close(); ?> | |
I'm trying to think of better ways to fight spam than having a captcha that a user needs to fill in. I've considered emailing a confirmation link to the user that they need to click in order to send the message they filled out in the form, but with Google … | |
I have s_no in my database's table. Which is increment automatically whenever new entry comes. But this is only int. I am using this as a ID of particular task. I want this in varchar. means id should be like "a45c725". How to achive this | |
trying to user left margin 50px on this link but it no working. index.php echo "<a href=\"zoom.php?img={$row['image_id']}\"> <b id='bold2'>" . $image_short_name_db . "</b></a>"; c.css .bold2 { margin-left:50px; } | |
Hi! I have table of records of my database. I have too many rows, so i decidet to add feature what i dont know how to call english, but mybe it's call page numbering. So i need split my table after some 10rows and its will make after table Paga … | |
How to send user detail page to my email.with full deatils <?php mysql_connect("localhost","root",""); mysql_select_db("Users"); $mysql_query =("SELECT uid,`Name`,Department,Problem,Ext_no,Ip_Add,Remark,Email FROM entryform ORDER BY entryform.uid DESC limit 1 "); $result = mysql_query($mysql_query); while($data = mysql_fetch_row($result)){ echo(" <td > <tr> <td> Complaint NO. :- $data[0]</br></br></td> <td> NAME :- $data[1]</br></br> </td> <td> DEPARTMENT :- $data[2] … | |
i was thinkg some thingklike this. i have a database image->image_id, image, image_keyword, image_name ...etc index.php- search bar <form class='form6' method='post' action='search.php'> <input type='text' name='search' class='field2'/> //search bar field <input type='submit' name='search' class='button' value='Search' /> //submit button </form> search.php <?php include("include/header.php"); $i = 0; $search_p = $_POST["search"]; $terms = explode(" … | |
Hi all. I use the following js function to dynamically create an new <tr> and <td> in my table. Then I insert an <input>. : function testName(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); //firstname var cell1 = row.insertCell(0); var element = document.createElement("input"); element.type … | |
Hi, i doing personal page module. this is the my edit profile page code. i have error in 126.call to undefind error. this is error line. $personal->$personal=getDataInArray(); what is the proble? any body plz help me. public function executeEdit(sfWebRequest $request) { $this->frm_edit = new PersonalForm(); $personal=array(); $error=array(); //if they submitted … | |
Hey. So here is my code... config.php <?php $localhost = "localhost"; $dbuser = "root"; $dbpass = ""; $dbname = "test2"; $connect = mysql_connect($localhost, $dbuser, $dbpass); mysql_select_db("$dbname", $connect); ?> regprocess.php <?php include"config.php"; $username = $_POST['username']; $email = $_POST['email']; $password = md5($_POST['password']); $insert = 'INSERT into users(username, email, password) VALUE("'.$username.'","'.$email.'","'.$password.'")'; mysql_query($insert); ?> … |
The End.