39,388 Topics
![]() | |
I have been inserting the file path in to data base but it s giving a mysql syantax error can any pne fix it <?php include 'db.php'; if($_SERVER['REQUEST_METHOD']=='POST') { if(isset($_FILES['photo'])&& is_uploaded_file($_FILES['photo']['tmp_name']) && $_FILES['photo']['error']==UPLOAD_ERR_OK) { if($_FILES['photo']['type']=='image/jpeg') { $tmp_img = $_FILES['photo']['tmp_name']; $path = "d:/xampp/htdocs/upload/images/" .$_FILES['photo']['name']; move_uploaded_file($_FILES['photo']['tmp_name'], $path); $imgname=$_FILES['photo']['name']; $q="Insert INTO image (name,imgpath) … | |
Hello, I have search box that has auto complete from database(works fine). But I need when the search box value auto-populates in textbox(address_name), the other textbox values come from mysql and automatically populate the other textboxes related to the textbox(address_name) i.e textbox(work_no) and textbox(work_address) using a button or onChange event … | |
I'm trying to learn, understand and implement object-oriented PHP. Something's happening which I don't understand, and I would appreciate any guidance or help. I have the following class with the following properties and method: class Film { public $film_ids; public $numfilms; public function getFilms() { global $dbh; global $film_ids; global … | |
Hello Community, I have been looking for a facebook news feed api, i couldn't find one. All i could find is bits of script for construct my own news feed api. So thats what i did and i thought i might share the script with you it's a bit messy … | |
I have been working this on and off for a while to encrypt data strings. Seems to work fine except Upper case letters are not encrypted, just stay as Upper case letters. It's got to be something simple, I just don't see it. Any help would be appreciated. <?php // … ![]() | |
I'm having a lot of trouble trying to figure out what is wrong with my code. It isn't returning the correct data. function time_elapsed_string($ptime) { $etime = times() - $ptimez; if ($etime < 1) { returned '0 seconds'; } $a = array[0]( 12 * 30 * 24 * 60 * … | |
Hi all, I was planning to give a feature of hotel booking in mysite. (still I didnt start). What I want to know is whether drupal or joomla has the best module that fit for my requirement.n IF you know please not down the module name and CMS name. Any … ![]() | |
there is no file zf.bat in zend frame work2 like in the previous version ............ please any one can tell how to install it easy way and in windows | |
<?php require_once 'lib/swift_required.php'; $transport = Swift_MailTransport::newInstance(); $mailer = Swift_Mailer::newInstance($transport); $headers = "From: Sebastian@Thorn.se" . "\r\n"; $conn = new mysqli('localhost', 'root', 'rushndie', 'bookmarks'); $username = $_POST['username'] $result2 = $conn->query("select * from user where username='".$username."' and passwd = sha1('".$password."')"); $row = $result->fetch_object(); $email = $row->email; $message = Swift_Message::newInstance() ->setFrom(array('sebastian@thorn.se' => 'SEBASTIAN JOHANSSON … | |
I've been given a script to work with for detecting browsers, to apply the correct css stylesheet. It's a little above my head, and I'm trying to determine how to make edits, to add in an if statement for this: Mozilla/5.0 (Linux; Android 4.2.2; Nexus 7 Build/JDQ39) AppleWebKit/537.22 (KHTML, like … | |
Hi. I use a fuction to retrieve some information from a remote site: $dom = new DOMDocument; @$dom->loadHTMLFile($url); $page_content = $dom->saveHTML(); When I echo the content, some characters appear like 'á'. I have tried many things from the internet, but nothing helped. Is there a solution? | |
I am trying to mess with different ways to do a hit counter. I currently have two files. Hit Counter and Count visits. Count visits calls hit counter and hit counter creates a table and increments it. I am not getting any output and I think it is in my … | |
This loop does not show images from the database and show only one record .. where is the problem And how can i make the id changes with loop This loop to show per line two records but how the show every time a different record, such as the latest … | |
<?php // Dump the games.csv file into an array $games = fgets('file/games.csv'); // Parse the array foreach($games as $game) { echo "{$game}"; } ?> Error i get Warning: fgets() expects parameter 1 to be resource, string given in C:\wamp\www\test\peartest.php on line 3 Call Stack # Time Memory Function Location 1 … ![]() | |
Hello, Currently I have a wordpress website running on a multidomain linux hosting. Now am planning to develop a new website by myself using php, But I need to include e-mail features on my website for purposes like 1. Resetting Password 2. e-mail varification of registered users etc Please help … | |
HEllo i want to know how to submit form to email so that one can received all form infromation in email , if u have seen Contact pages, inquiery pages in website same as i want. Either in PHP or ASP | |
hi guys.. i need your help.. i want to display the user's login information. like, storage location..but im not sure how to do it.. this is how i try to do it.. $tenantID = $_GET['tid']; " " " $query_recTenantuser = "SELECT * FROM md_storage WHERE tenantID='".$tenantID."'"; $rs_recTenantuser = mysql_query($query_recTenantuser) or … | |
I have a search in my drupal website which searches for users registered in my website (finder module). Upon clicking any user from the user search result, it takes to that user's profile page. At the top of that page, a text 'Relationship' is displayed. Under it, a link saying … ![]() | |
Hey guys... I have some code im using in a sub directory called /manager/ and I have the following htaccess file RewriteEngine on RewriteOptions inherit RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule .* - [L] Options +Indexes IndexOptions +FancyIndexing #Rules for root RewriteRule ^$ /index.php RewriteRule … ![]() | |
Warning: include_once(PEAR5.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in C:\wamp\www\test\HTML\PEAR.php on line 730 i have added all the files in from pear into the HTML and test folder and there aare lots of error in the page im getting this error can any body tell … | |
I am currently working on an open source dating script. But I have one bug that I just can't seem to fix. I am unable to send system generated emails to Yahoo! and gmail. I have done a lot of searching online, but can't seem to get it working. I … | |
hi... all... i'm doing a wordpress jobsite... in the home page i want to load all the jobs list by using infinite scrolling with load more button... i found an example here http://www.authenticjobs.com/ and i dont know how to do it.. can anyone help me pls... here is my index.php... … | |
I have a weird problem. I try to add two strings together but instad the variable evaluates to 0. Why is this happening and how to fix it ? <?php require_once('config.php'); $connect->query("SELECT id, name FROM room"); $rooms = $connect->get(); print_r($rooms); $result = "<ul>"; $asd = "Test"; /* foreach($rooms as $room … | |
Hi, I'm having trouble getting the information I need from my mysql db. I need to write a query that gets me: 1. A list of all combinations of answers from 8 columns and the frequency of them. Every row contains answers from 1 person from a survey and I … ![]() | |
Hello guys, I want to create download file script, I used an **id** to refer to a file in my site here is the script get the id and search in database for filename then return it for download. <?php if ($_GET['file']) { $id = (int)$_GET['file']; $sql= "SELECT filename FROM … | |
<form name="form1" method="POST" action="#" onSubmit="return check();"> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("shg", $con); $result = mysql_query("SELECT * FROM consumer"); $email=$_POST['myusername']; $password=$_POST['mypassword']; $query="select * from consumer where email='$email' and password='$password'"; $result=mysql_query($query); if(mysql_num_rows($result)==1) { $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table … | |
Hi everyone, I am having some trouble with a mysql select query not working correctly. The query I am trying to run is "SELECT * FROM cards2 WHERE cardid NOT LIKE '".$_SESSION['clubsId'][0]."' " I have also tried mysql_query(" SELECT * FROM cards2 WHERE NOT (cardid =".$_SESSION['clubsId'][0]." || ".$_SESSION['clubsId'][1]." Would appreciate … | |
hi!here my problem again! Can you tell me how to display image map when choose image map name from drop down menu? help me again! thanks for your time! good luck! | |
Hi all gud morning > I try in to implement table with pagination. Am using Jquery data table. In data table i have problem loading all data from database so time dealy more. so i want to implement in Ajax, jquery, Mysql. kindly gudience to me. | |
what I am trying to do is use this php script to load the data being submitted in the html form into my database and then populate the database into an excel (csv) file and then e-mail it to my address. Everything works great it populates into the database and … |
The End.