38,019 Topics

Member Avatar for
Member Avatar for Sujan Shrestha

i used this code to insert data into database but nothing happening.. <?php session_start(); if(isset($_POST['submit'])) { $dbhost="localhost"; $dbuser="root"; $dbpass=""; $tablename="requested_quotes"; $conn=mysql_connect($dbhost, $dbuser, $dbpass)or die("cannot connect"); mysql_select_db('1')or die("cannort select DB"); $fname=$_POST['fname']; $lname=$_POST['lname']; $sex=$_POST['sex']; $email=$_POST['email']; $phone=$_POST['phone']; $address1=$_POST['address1']; $address2=$_POST['address2']; $country=$_POST['country']; $city=$_POST['city']; $state=$_POST['zip']; $date=$_POST['date']; $contactme=$_POST['contactme']; $interest=$_POST['interest']; $sql="INSERT INTO $tablename(first_name, last_name, sex, email,phone, address1, address2,country, …

Member Avatar for Sujan Shrestha
0
3K
Member Avatar for mwnt2014

Want to change default theme and all looking . Set it for the School Website.. Suggestions please......

Member Avatar for diafol
0
87
Member Avatar for yeshamarques
Member Avatar for diafol
0
82
Member Avatar for garyjohnson

I have a database which has multiple tables. I want all the table names to be displayed in a drop down html menu. I have a php function which I call on my html document. function namealbums() { $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); …

Member Avatar for dukumanis
0
3K
Member Avatar for digital-ether

Searching the net I couldn't find a simple way of retrieving HTTP Request Headers and HTTP Request Body in a PHP Script. PECL extensions offer this but not a standard PHP install. So heres a simple class that will do it for you. Docs in my blog: [URL]http://fijiwebdesign.com/content/view/90/77/[/URL]

Member Avatar for veedeoo
0
11K
Member Avatar for dado.d

This is my process.php which I use to post data on my page's wall PHP Code: include_once("config.php"); //HTTP POST request to PAGE_ID/feed with the publish_stream $post_url = '/'.$userPageId.'/feed'; //after login redirect him and if i can get message submit it to page if(isset($_GET["message"])) { $msg_body = array( 'message' => $_GET["message"], …

0
213
Member Avatar for amna zafar

I am displaying the complete record of the user in the My profile section, I am fetching all the rows , but the problem is within the rows I've got two fields as arrays, which are 'secondarySubject' and 'secondaryGrade' now I want the display to be something like this 2002-2004 …

Member Avatar for diafol
0
352
Member Avatar for dipakbarman
Member Avatar for network18

Hello, I am trying to configure PHP 5.3 on already installed Apache 2.0 on windows machine, using the guidelines mentioned on - http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml So far I have done - LoadModule php5_module "C:/PHP/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/PHP" All these at the right spots in httpd.conf file. I have apache in …

Member Avatar for network18
0
514
Member Avatar for network18

Hi All, I have a ajax call in script like below - function testMe() { $.ajax({ type: "POST", url: "http://3.84.46.104/tloken/test/testAjax.php", // data: "ajax=1&elem=" + elem+"&clicker="+clicker, data: "ajax=1", method: "POST", success: function (html) { alert(html+' >>'); return false; // var response = html.split('@'); // document.getElementById(elem).innerHTML = ""; document.getElementById('cmbxCategory').innerHTML = ""; document.getElementById('cmbxType').innerHTML …

Member Avatar for network18
0
2K
Member Avatar for oriola-1

hey guys Am new to dis site(Daniweb) also a baby to php but am trying to develop a simple hopping cart in php bt its look too difficult, most of the code am geting on google is too complicated for me.. can anyone help me a simple and easy code …

Member Avatar for oriola-1
0
323
Member Avatar for nevil120

I have Android app and 1 php application. I want to invoke android function when the button is clicked on my php application (on latop-pc browser). So basically Php to android communication. How to achieve that?

Member Avatar for orochiwolf
0
143
Member Avatar for joseph.lyons.754

I want to pull the image name from the database and insert it to the folder directory path using php. I am wondering is this possible and if so how? Ive attempted it a few different ways but i can't figure it out? while($row = mysql_fetch_array($result)) { echo "<tr>"; This …

Member Avatar for joseph.lyons.754
0
124
Member Avatar for jboonpradab

Hi, I'm trying to display the first name of the username using session after they entered username and password. I'm not sure what went wrong with my code. Any suggestion? Thank you. <?php //connection string $con = mysql_connect('127.0.0.1','root')or die(mysql_error()); //select the database mysql_select_db('local',$con) or die("Unable to connnect!"); //mySQL query $sql1 …

Member Avatar for diafol
0
116
Member Avatar for markii.borabon

Hello there Masters.. I have a little problem on my mail() function.. when I send mail the sender is always apache@blabla.com. what I want is when the message is sent the message format is simply like this. from:markii design, to Reciever, message.. here is my code.. <?php // read the …

Member Avatar for pzuurveen
0
235
Member Avatar for Webville312

Hi Guyz, I have hit a snag with the code I have been working on. I am required to fetch database records from 3 tables and display them in both rows and columns. For example, the output of the records on the web page is required to be as follows; …

Member Avatar for diafol
0
312
Member Avatar for Sujan Shrestha

i used this code to upload images and display from database but not working correctly... **images.php** <?php include('header.php'); ?> <center> <form action="addimages.php" method="post" enctype="multipart/form-data"> <table border=0> <tr><td>Select Image: </td><td><input type="file" name="image"></td></tr> <tr><td>Caption: </td><td><input name="caption" type="text"></td></tr> <tr> <td colspan=2><input type="submit" name="Submit" value="Upload" ></td></tr> </table> </form> </center> Photo Gallary: <br /> <br …

Member Avatar for OsaMasw
0
263
Member Avatar for sanctifiedsantosh

<div class="carousel-inner"> <?php $category = $this->category_model->getCategories(999,0,51);?> <?php $categorynext = $this->category_model->getCategories(999,0,51);?> <div class="item active"> <div class="row-fluid"> <?php $count=0;?> <?php foreach($category as $category):?> <?php $count=$count+1;?> <div class="span2"><a href="#x" class="thumbnail"><img src="<?= base_url();?>assets/upload/category/<?= $category->image?>" alt="Image" style="max-width:100%;"></a></div> <?php if($count==6) break;?> <?php endforeach;?> </div><!--/row-fluid--> </div><!--/item--> <div class="item "> <div class="row-fluid"> <div class="span2"><a href="#x" class="thumbnail"><img src="<?= base_url();?>assets/upload/logo/computer.png" …

Member Avatar for Alberto Bucur
0
169
Member Avatar for gee,selvin1990

The below code is a profile login system update page i have created validation for fullname but fullname validation is not working I need ur help friends may i know how to create validation in php for the below code may i know where i made a mistake friends help …

Member Avatar for diafol
0
1K
Member Avatar for sanctifiedsantosh

Suppose i have 5 data which is coming from database.i have a per_page=4.then 4 data will come in 1st page and 1 data will come in next page during delete when i delete last data then page will not go previous page of that page

Member Avatar for diafol
0
41
Member Avatar for davy_yg

Hello, I am trying to download my online website: [gsaconst](www.gsa-constructionspecialist.com) offline - and set it to work offline, yet I haven't been successfull. In my offline website I receive this error message: -------------------- A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: C:\xampp\htdocs\gsaconst\system\database\DB_driver.php …

Member Avatar for veedeoo
0
306
Member Avatar for joshmac

I have some code that I edited for importing csv into mysql using PDO to bind parameters. I thought it was working before, but tested it again and the issue I have is that only one line (the fourth line) of the csv file is getting imported. The first line …

Member Avatar for joshmac
0
358
Member Avatar for dukumanis

db name: orange table: Name, Position, Department, Telephone, Purpose, Startdate, Enddate, Item1, Item2 **input.php** <html> <body> <form method="post" action="conn.php"> <table width="500" border="1"> <tr> <td>Name</td> <td><input type="textbox1" name="Name[]" value=""></td> <td> </td> <td> </td> </tr> <tr> <td>Position</td> <td><input type="textbox2" name="Position[]" value=""></td> <td> </td> <td> </td> </tr> <tr> <td>Department</td> <td><input type="textbox3" name="Department[]" value=""></td> <td> </td> <td> </td> </tr> <tr> …

Member Avatar for dukumanis
0
221
Member Avatar for dukumanis

**currently arrival date and departure date format is m/d/y..can i change the date format to d/m/y??** <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker(); $("#datepicker2").datepicker(); }); </script> </head> <body> <form method="post" action="4.php"> arrival date <input type="textbox6" name="arrivaldate[]" id="datepicker"><br> departure date <input type="textbox7" name="departuredate[]" …

Member Avatar for dukumanis
0
201
Member Avatar for NoR_1

What you thinks about voting system for indie bands?? Please give your opinions

Member Avatar for diafol
0
45
Member Avatar for waqas_2

Hi All. I was searching it for many weeks I am working on Magento Store, i have 2 domain on same website/same directory i want to show different logo on each domain. In header file, logo is shown by this code <?php if ($this->getIsHomePage()):?> <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php …

Member Avatar for cereal
0
601
Member Avatar for newbie14

I am going to develop a web based point of sales system. It is going to be based on linux and php. Users will access it via internet and using browser as the tool. Problem is if the web server is down? The user want to be still able to …

Member Avatar for newbie14
0
162
Member Avatar for Dani

# What is OAuth and why do I want to use it? If you want to write an application that caters to existing members of a service, and you want your application to be able to access private areas of your end-users' profiles, or modify their accounts on their behalf, …

Member Avatar for diafol
4
1K
Member Avatar for rambo12
Member Avatar for williamwalker
0
261
Member Avatar for davy_yg

Hello, Please cek this website: [Infracom](http://www.indonusa.net.id/infracom/) There are some errors after I move it from localhost to webserver. header.inc.php <?php if( !defined('WDS_ROOT') ) exit; $meta = array(); $meta['title'] = 'Error 404 Object Not Found'; $meta['keywords'] = $config['sitekeywords']; $meta['description'] = $config['sitename'] . ' :: The page you looking for is not …

Member Avatar for Alberto Bucur
0
127

The End.