39,388 Topics
![]() | |
![]() | hello i want to add search functionality to my website . my task is to get input from user then check it if its domain like google.com then (do work 1).... else if keyword like news etc then search database so i made search.php mysql_query("SELECT * FROM `table` WHERE `title` … |
I have win 7 in my pc .. it was working well a few days ago .. bt now, when i am trying to start my apache server "[apache] Starting apache service..." only this thing is comming out .. and nothng happening .. i uninstalled skype.. bt still not working … | |
I have a heat map application on OpenLayers (using XAMPP 1.8.0 and MySQL) where user enters two date and time intervals and selects whether he/she would like to view all the data between those two datetimes or view them based on hourly/daily/weekly/monthly intervals. However, when I type in two date … | |
![]() | Hi I want to find out is there a way to check syntax errors on PHP. I went to this site http://php.net/manual/en/function.php-check-syntax.php but I didn't quite understand the example in there. Is there a software that I can check the errors. I used EasyPHP, WAMPP. I appreciate any links or … ![]() |
<?php include('./config.php'); //protect SQL injection $username = $_POST['username']; $password = $_POST['password']; $username = stripslashes($username); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $password=hash('sha256',$password); //SQL query that sent login info to database $result = mysql_query ("SELECT * FROM admin WHERE Login ='$username' AND Password ='$password'",$con); $check = mysql_num_rows ($result); @session_start(); if ($check == … | |
Hey there guys. I'm gettign what should be a trivial php error but I cannot for the life of me find it! Parse error: syntax error, unexpected '{' in /home/sites/blah.co.uk/public_html/paypal_ipn_test/ipn.php on line 14 My code of ipn.php is: <?php // tell PHP to log errors to ipn_errors.log in this directory … | |
I tried to insert data using the following code, but I really I don't know how can I get result and what is the problem in my code, I tried to build firstly my form then I write the insert query and send it to a new form , any … | |
hai, everybody, I have multiple checkbox fileds. how to add images in each fields this is my templete my plan type field is 10 types. user select plan type 1 add image1 plantype2 ->addimage2.png <div><span class="field-label">plantype: <img width="20"src="images/layout/image1.png " /> <?php echo str_replace(',','<br/>',$meetnewpeople['plantype']) ?></span></div></br> $this->widgetSchema['plantype'] = new sfWidgetFormChoice(array('multiple' => true,'expanded'=>true, … | |
Hello i can not figure out how to take images from my database to jQuery gallery. User uploaded images in the data base. Images are sorted by date. And how I can do, what all imges goe's in the jQuery gallery, besause now i can get all imges in one … | |
can you help me with my code, kindly give me or take a look at my codes in embedding a captcha pls...thanks...asap! <?php $submit = $_POST['register']; //form data $first = strip_tags($_POST['first']); $middle = strip_tags($_POST['middle']); $last = strip_tags($_POST['last']); $username = strip_tags($_POST['username']); $password = strip_tags($_POST['password']); $repeatpassword = strip_tags($_POST['repeatpassword']); $email = strip_tags($_POST['email']); $street … | |
Oracle : 11.2.0.1.0 Apache 2.0 Handler PHP Version 4.4.9 Windows XP I have problem to connect with Oracle 11g. Log apache : PHP Warning: Unknown(): Unable to load dynamic library 'C:\\Program Files\\Apache Group\\Apache2\\php\\extensions\\php_oracle.dll' - The specified module could not be found.\r\n in Unknown on li when I open phpinfo : … | |
Hi There, I'm busy developing a PHP / MySQL billing system for our company but can't seem to get the following working for me. I need to have 1 page that will display the extensions billing period / month for local, national and international calls and it needs to be … | |
Hi Everyone I have a problem regarding PHP Array here is the code: $array_of_arrays = array( array[0] = value1, value2, value3; array[1] = value4, value5, value6; array[2] = value7, value8, value8; ); Well i want to skip array[0] in loop. i just want to start the process of loop from … | |
Hi there, Can anyone help? Why is the following code displaying "P1P2P3..." etc, instead of "P1 , P2, P3 ,.." etc. ? Thanks Paul <!--Conect to database--> <?php include "connects/patientconn.php"; ?> <?php $query = "SELECT `Patient I.D.` FROM `patient`"; $result = mysql_query($query); while($patient = mysql_fetch_assoc($result)) { $pt = implode(" , … | |
Hi. I am new in coding and sufferin from some basic issues. I've been trying to write and searching codes for writting into xls file for 3 days but could not find a suitable one. The problem is:  I created a page with textareas and submit/reset button like … | |
How to Bookmark website without informing user(visitor) of website? And How to set as browsers homepage without informing user? | |
Hi all, I am retrieving information from a database and need to have that information put onto a new line (<br>) depending on the location of the comma which seperates the different areas of the information. Here is what is being retrieved *2.25 L 75 hp (56 kW) I4 petrol … | |
Hi everyone, I am looking for an editor or plugin for Komodo or Eclipse that provides me with the CakePHP function autocompletion and syntax correction as well. Thank you all. | |
Hello world, I am stumped, someone please help me with some code. I have created a purl, example: www.mydomain.com/purl However, I want people to first go to www.mydomain.com. On the homepage, I want people to enter their phonenumber (which is the purl) in a textbox. I am looking for a … | |
pls lead me ... i want to create a web app like gmail | |
<?php $con = mysql_connect("localhost","ourinter_admin",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ourinter_database", $con); $sql="INSERT INTO donation( firstname, lastname, gender, country, fulladdress, phone, emailaddress, donate, total, creditcard) VALUES ('$_POST[firstname]', '$_POST[lastname]', '$_POST[gender]', '$_POST[country]', '$_POST[fulladdress]', '$_POST[phone]', '$_POST[emailaddress]', '$_POST[donate]', '$_POST[total]', '$_POST[creditcard]' )"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo … | |
A newbie here I am having an error with this code. If I logged in with correct username and password the "Sorry please log in" is appearing not the home page :( I am having a hard time to check if the user has log in or not when opening … ![]() | |
Hi guys, I read about this problem but can't figure what should I change. Can you please help? Here's my code: <?php // Title: Contact Form - Dolce Forno GB // Updated: 9/8/2012 // Author: Veronika Horvathova //Validation code if (empty($_POST) === false) { $errors = array(); //variables $name = … | |
i want to have a space between a div <div class="img"><a href="#"><img src="2.jpg"></a></div> <div class="img"><a href="#"><img src="3.jpg"/></a></div> | |
Hi guys. I want to insert an advert after the first article on my blog. It's not a wordpress or other generic blog. I have an idea on how i should do it but it just doesn't work when i try. I use a do-while loop to call the articles. … | |
I keep getting this error message when I try to 'login' to my php member system that I'm creating. Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\acrd\includes\header.php:24) in C:\xampp\htdocs\acrd\login.php on line 21 Here is line 21 header('Location: index.php'); Here is my code. Please help! … | |
Hey guys, Having an issue with a webpage I am building. I can get it to save the name of the image, however when I echo it out and im trying to include it as an img src tag it tells me I have a syntax error. I think this … | |
Hi Everyone, I am a beginner in PHP and would need your help with this. I get this problem: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in database.php on line 207 Here is my code: include("constants.php"); class MySQLDB { var $connection; //The MySQL database connection var … | |
I've been getting this error after I insert the require_once('login.php') I've checked both files and I don't have any empty lines after the php closing tags as is usually the case with this error This is the code [CODE]<html> <head> <title>Home</title> </head> <body> <link rel="stylesheet" type="text/css" href="style.css"/> <?php require_once('login.php'); require_once('appvars.php'); … |
The End.