39,316 Topics

Member Avatar for
Member Avatar for cleggy1987

hi i am trying to call the Persons() from the user_friends() to get the data for the users it can grab 1 array but when its a multiple array i get this 1111ttTTdd1111110011ee00pp22ttUUPP1111iiSSWWRRii2211HHBB can some one help me please. [CODE]<?php class profile { // Get Person public function Persons($uid) { …

Member Avatar for cleggy1987
0
185
Member Avatar for davy_yg

[CODE] <?php // a) class LongName { var $firstname = " "; var $middlename = " "; var $lastname = " "; function firstname($string) { echo "First Name : ". $string; } function middlename() { if (middlename){ echo "Middle Name : ". $this -> middlename; } else { echo "Middle …

Member Avatar for davy_yg
0
137
Member Avatar for umeshMCA

hi i would like to know that how i can send mail using my gmail account. i am using wamp server and i would like to send mail using localhost. how i can do this using php with mysql using wamp server. i do this job with asp.net but i …

Member Avatar for nakor77
0
79
Member Avatar for David 78

Hi to you guys, I've just been trying to sort this out...I know how to prevent a page load / refresh and I know how to get PHP ID from a html href link...but I have no clue how I can get the value and prevent the page from reloading …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for calebcook

Hi. I'm not sure if this is possible: I found out that Blogger allows you to email text, images, etc to a unique email address, and then it'll post the email as a blog post. I'm trying to create a system like that for my client. Is it possible to …

Member Avatar for mschroeder
0
181
Member Avatar for onus

Here is a small PHP code which I am not clear with. [CODE]/** * Form for configurable Drupal action to beep multiple times */ function beep_multiple_beep_action_form($context) { $form['beeps'] = array( '#type' => 'textfield', '#title' => t('Number of beeps'), '#description' => t('Enter the number of times to beep when this action …

Member Avatar for cereal
0
123
Member Avatar for weasel7711

I had followed a tutorial on installing PHP on IIS 7 for Windows Server 2008 and changed the path to reflect my location of PHP. [url]http://www.howtogeek.com/50432/how-to-install-php-on-iis-7-for-windows-server-2008/[/url] I can use the command line to execute php, and I can run php files using localhost, however I cant run the troubleshooting command …

0
81
Member Avatar for vizz

Following code shows live search box. But it does not disappear when clicked on page anywhere or pressing escape key. How to hide search result when clicked anywhere or pressed escape key? index.html [CODE]<script type="text/javascript" src="jquery.js"></script> </script> $(document).ready(function(){ $(".search").keyup(function() { var searchbox = $(this).val(); var dataString = 'searchword='+ searchbox; if(searchbox=='') …

Member Avatar for mschroeder
0
265
Member Avatar for newbie14

Dear All, I would like to generate pdf document via my php page which are based on mysql data? Any recommendation so far I have seen fpdf and tcpdf. Which one will be better or is there any better tool for it? Thank you.

Member Avatar for chrishea
0
85
Member Avatar for cdoggg94

This is what I have for a main page and form and upload code for an image. The image information is stored in a Blob field in phpMyAdmin. [CODE] <?php error_reporting(0); mysql_connect("sql5c1d.megasqlservers.com","vincastweb356440","fakepassword") or die(mysql_error()); mysql_select_db("phpmy1_vincastweb_com") or die(mysql_error()); $picture = $_FILES['image']['tmp_name']; $brand = $_POST['brand']; $year = $_POST['year']; $story = $_POST['story']; $description …

Member Avatar for cdoggg94
0
244
Member Avatar for davy_yg

event_manager.php [CODE] // define variable $id = isset($_POST['id']) ? $_POST['id'] : ''; $event = isset($_POST['event']) ? $_POST['event'] : ''; $tempat = isset($_POST['tempat']) ? $_POST['tempat'] : ''; $mulai = isset($_POST['mulai']) ? $_POST['mulai'] : ''; $selesai = isset($_POST['selesai']) ? $_POST['selesai'] : ''; $keterangan = isset($_POST['keterangan']) ? $_POST['keterangan'] : ''; session_start(); // undefined …

Member Avatar for pritaeas
0
217
Member Avatar for drelix01

Every first time I create a .txt on my server using a Form, it writes like a charm, but when I add a new line in the .txt using also the Form, and view the .txt from a simple file browser made by PHPToys the new line in the .txt …

Member Avatar for cereal
0
119
Member Avatar for edn_781

Is it possible to sending HTTP request without cookies? Or to a Browser where COOKIES allowing is blocked?

Member Avatar for gotboots
0
113
Member Avatar for davy_yg

input_berita.php [CODE] $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $isiBerita = isset($_POST['isiBerita']) ? $_POST['isiBerita'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM berita WHERE id =".$_REQUEST['id']) …

Member Avatar for pritaeas
0
259
Member Avatar for draven07

...hello there....i really need help.. ..i'am now working on a web-based student information system through the use of PHP and MySQL... ...but i know that before i can go through the coding part...i have to study first about its business process...... ...the SIS that i've been working was divided into …

Member Avatar for draven07
-1
430
Member Avatar for davy_yg

[CODE] $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; //Hapus berita // undefined index: mode if (!empty($_REQUEST['id']) && !empty($_REQUEST['mode'])){ if ($_REQUEST['mode'] == "delete"){ $id = $_REQUEST['id']; $result = mysql_query("DELETE FROM berita WHERE id =".$id) or die(mysql_error()); $confirmation = ($result) ? "Data Telah terhapus." : "Gagal menghapus data."; } } ?> <div …

Member Avatar for pritaeas
0
297
Member Avatar for Matthew N.

Hello. I'm going to show you how to make a basic php image gallery. Firstly, create the following files [LIST] [*]index.php [*]view.php [*]/images (dir) [/LIST] Now, for the code. index.php [CODE] <?php $img = array(); $img[] = array('title'=>'img1', 'src' = 'img1.jpg'); ?> <html> <head> <title>mygallery | homepage</title> </head> <body> <h2>mygallery</h2> …

Member Avatar for Matthew N.
0
416
Member Avatar for DaSpirit

I need to update the SQL table every minute, as if typing on an online notepad, that save frequently. So of course, I have: [CODE]<textarea rows="20" cols="80" id="notepad"> <?php $con=mysql_connect("localhost","username","password"); if(!$con) { die('Could not connect: '.mysql_error()); } mysql_select_db("database", $con); $result = mysql_query("SELECT * FROM Notepad"); while($row = mysql_fetch_array($result)) { echo …

Member Avatar for pritaeas
0
120
Member Avatar for mshdpotato

Basically, I make a query based on the first query that I made. It returns the right number of rows but it only displays the first record based on the number of rows. For example, if my second query returns Result1 and Result2, the table will look like Result1 Result1 …

Member Avatar for pritaeas
0
138
Member Avatar for nera1981

I have two multidimensional arrays: [CODE]$instruments = array( array( ID => 'value', Name => 'value', Model => 'value ' ), array( ID => 'value', Name => 'value', Model => ' value' ), array(ID => 'value', Name => 'value', Model => 'value ' ), ID => 'value', Name => 'value', Model …

Member Avatar for cereal
0
164
Member Avatar for Farhad.idrees

Hi i just want to know that how to connect php with sql server..because i have database in my sql server.... regards.. Farhad

Member Avatar for arajapandi
0
234
Member Avatar for indianjoe

I want to develop a website in which Live Video Streaming forms the core. THE MODEL : A user's camera will be broadcast live and other users will watch that in a browser . (seems more like earthcam.com ....) No need for conferencing , chatting etc.. I want to add …

0
113
Member Avatar for cali_dotcom

hi, i am pretty new to zendframwork butnot so new to php. i am trying to use ajax with the framework, but i keep getting an error: Fatal error: Call to a member function getHelper() on a non-object my controller looks like this: [code] <?php /** * Admin section of …

0
99
Member Avatar for veledrom

Hi, I want to authenticate user if he/she successfully logged in before or not, in every pages. Obviously on top of the pages I have to call a function or another page to run that function to carry out checks but, I really don't know what kind of code I …

Member Avatar for Stefano Mtangoo
2
115
Member Avatar for Ravi tiwari

I fetched text from database in the table <td> I found all the text appear in single line I want to break it. I using PHP.

Member Avatar for cwarn23
0
119
Member Avatar for AngieS

I am building a plant reference guide that pulls from two tables within a mysql db . One table "findplantsdb" has the plant name, desc, image and the other table "plantdb" has the availability of plants listed in the yard and field. I need both databases to come together (JOIN) …

Member Avatar for cereal
0
154
Member Avatar for AbhishekBiswal

I am developing a PHP Web Application and I know about htaccess ( and how to create the htaccess file ). I have activated mod_rewrite in XAMPP ( I am testing it locally ). The current Profile URL is: localhost/app/user.php?name=AbhishekBiswal Where Abhishek Biswal is the UserName. I want it to …

Member Avatar for Matthew N.
0
174
Member Avatar for ken.atienza

[CODE]$sql="SELECT * FROM accounts,adminaccount WHERE accounts.emailaddress='$username' and accounts.password='$password' or adminaccount.emailaddress='$username' and adminaccount.password='$password'"; $result = mysql_query($sql); $count=mysql_num_rows($result); $row = mysql_fetch_assoc($result); $usertype = $row['usertype']; if($count==1) { $_SESSION['usertype']= $row['usertype']; $_SESSION['id'] = $row['id']; if($usertype == "admin") { header("location:indexadmin.php"); } else { header("location:indexmember.php"); } } else { header("location:index.php?page=loginfail.php"); } ?> [/CODE] I wanted it to …

Member Avatar for Matthew N.
0
152
Member Avatar for sun-tzu

Hey, I want to build a shopping cart for my sister's online jewelry business, but I can't quite get my thoughts organized enough to make something work. Anyone have a script that could work? P.S. It should have the ability to make options for products such as size, color, etc.

Member Avatar for pritaeas
0
81
Member Avatar for cwarn23

Hi, in this news you will see how in the past few years there has been some controversy over a bug or more commonly known as a feature which appears it may be removed as of php 5.4.0. According to the features list of php 5.4.0 beta there is the …

Member Avatar for diafol
4
747

The End.