39,402 Topics

Member Avatar for
Member Avatar for adamramadhan

can sombody give me a great example to make a connection php - mysql ( oop - best practice ) ? [ICODE]<?php /* Database Connection */ class db { private $db['host']='localhost'; private $db['user']='root'; private $db['pass']=''; private $db['name']='build'; public function connect($db['host'],$db['user'],$db['pass']) { $db['connect'] = mysql_connect($db['host'],$db['user'],$db['pass']); if (!$db['connect']) { printf("Cannot connect to …

Member Avatar for adamramadhan
0
136
Member Avatar for vnnguy

:rolleyes: nothig at all I dont know what to do ? dont know anythig about PHp ? To start my doing Php , what i need ? Do i have to install mySQL in my computer or anythig else ? Just tell me tools what i need to learn Php????

Member Avatar for jamello
-1
272
Member Avatar for zido85

i have this code, im using jquery which im not very familiar and i need help please:D [code] <html> <head> <title>Select and drag?</title> <style type='text/css'> body,html { color:#333; font-family:Calibri; font-size:11px; } .panel {float:left;width:200px;margin:20px;} ul { list-style-type:none; border:1px solid #999; background:#ccc; padding:20px; min-height:150px; width:100px; } li { display:block; border:1px solid #999; …

Member Avatar for Josh Connerty
0
2K
Member Avatar for Gary888

Hello, This is a JavaScript/PHP question so I will go ahead and post it here. I would like to know if it is possible to access (in a PHP class) a value/variable that has been returned by a JavaScript function. The function is in external .js class. Here what I …

Member Avatar for Gary888
0
2K
Member Avatar for lonestar23

I am trying to parse a XML document but can not seem to parse both Childnodes and Attributes in the same Foreach statement. ===================== PHP CODE ===================== [CODE] <?PHP $webResults = $response->getElementsByTagName($prnt0); if ($webResults->length<>0) { foreach($webResults as $value){ $title = $value->childNodes->item($child1)->nodeValue; } } ?> [/CODE] Need the title childnode and …

Member Avatar for ShawnCplus
0
2K
Member Avatar for furqan219

hi this is a form.php [CODE=html]<html><body><font face=Arial size=2> <form method="post" action="contact.php"> <table bgcolor=#ffffcc align=center> <tr><td colspan=2><strong>Contact us using this form:</strong></td></tr> <tr><td>Department:</td><td><select name="sendto"> <option value="info@mycompany.com">General</option> <option value="support@mycompany.com">Support</option> <option value="sales@mycompany.com">Sales</option> </select></td></tr> <tr><td><font color=red>*</font> Name:</td><td><input size=25 name="Name"></td></tr> <tr><td><font color=red>*</font> Email:</td><td><input size=25 name="Email"></td></tr> <tr><td>Company:</td><td><input size=25 name="Company"></td></tr> <tr><td>Phone:</td><td><input size=25 name="Phone"></td></tr> <tr><td>Subscribe to<br> mailing list:</td><td><input type="radio" …

Member Avatar for Atli
0
206
Member Avatar for kings

hi so far i have done only small php application.now i want to learn cake php.i dont have any idea..... can anyone suggest a website to learn cake php from the intro. thanks in advance.

Member Avatar for Atli
0
111
Member Avatar for tulipputih

Hi all.. really need a help. this is looks easy peasy but I can't solve it :( I want to make a link from lesson ID to a details of the selected lesson ID. [icode]<td> "<a href='details.php?lessonID=". $lessonID ."'> </a>" </td>[/icode] when I run the coding the following error appear …

Member Avatar for navi17
0
243
Member Avatar for StNick

Hi all, I have a web app that is used in a number of countries, including ones such as Brazil, where the comma is used as a decimal separator. This is causing problems with my SQL queries, as it is trying to update a number field with "0,013" when it …

Member Avatar for StNick
0
107
Member Avatar for elanorejoseph

i always get some problem when i try to create a edit link and corresponding page. now the value to be edited are not shown in the edit form, and i do want to return to the same page where i have selected value to editted .can any one help …

Member Avatar for Atli
0
120
Member Avatar for SKANK!!!!!

im trying to get the username of the personal profile. the url is example.com/theusername/index.php the "theusername" i want to make into a variable. How do i do that? i want the variable to be called "theusername" so how do i make that into a variable? does anyone know? with php …

Member Avatar for SKANK!!!!!
0
203
Member Avatar for theworx

Hi I am using OsCommerce v2.2 for the last two months. Site: [url]www.musictonourish.com[/url] Via the admin console I cannot add new products. Products are added and deleted via the console, but these adding of new products does not show up in the browser view. Previously I did have error 1054 …

Member Avatar for Josh Connerty
0
91
Member Avatar for wilbery

I need help Im trying to get a form to work with PHP and it doesnt seem to be working. I fill out the form and click submit. It changes to a blank white screen not displaying the thank you page or email the form fields. Any ideas? Thanks [code] …

Member Avatar for Josh Connerty
0
163
Member Avatar for nish123

[B]just a small query... how to get User's login time and logout time...??? as well as how to know whether particular user in Logged in out..?? Thnx[/B]

Member Avatar for Josh Connerty
0
3K
Member Avatar for jazu100

Hi, to answer this question you need to have some experience about php... i'm planning to create a http server that supports cgi. Does anyone see the problem in C++ -source? Php doesn't give any output, but if I don't set the rfc3875 environment variables, all output comes normally (expect …

Member Avatar for ShawnCplus
0
846
Member Avatar for nikhita

could u pls help me out to create one databse inside another databse using PHP , MySQL. is it possible??

Member Avatar for ShawnCplus
0
103
Member Avatar for sunilsinha

Hi, I am new to MYSQL stored procedure. Getting problem in SP execution through PHP. How can we execute multiple procedures using mysql and php. I made connection using mysql_pconnect("host", "user", "pwd", 1, 131072); and have 3 procedures one for select, insert and update. If i am going to execute …

Member Avatar for sunilsinha
0
117
Member Avatar for Kligham

Hi, What happens? You type something in a text field, and based on the input, you should get some suggestions. Now, the problem is that I can get the info out of my database with PHP, but now I need to be able to use the PHP array in javascript. …

Member Avatar for Kligham
0
185
Member Avatar for websurfer

Hi all: I have this slight problem, where I have a list of months with amounts that need to be updated, but I always need to enter "0.0" in order for my field to be updated properly; but if I just enter "0" it doesnt take it and remains empty... …

Member Avatar for Atli
0
269
Member Avatar for elanorejoseph

any one please help me, i want to know how to swap two variables say, a and b with out using a third vaiable

Member Avatar for elanorejoseph
0
102
Member Avatar for furqan219

Deal all, I have developed a database for a school and when some one select the student ID it shows all the information related to that particular data, any one can tell how I can purt a print and export excel button on the result page which prints the report …

Member Avatar for furqan219
0
106
Member Avatar for elanorejoseph
Member Avatar for elanorejoseph
0
91
Member Avatar for jugg3r

I am very new to this so I apologize if I get confusing with my post. I have a database that I access through CPanel then through phpMyAdmin. I am running a query to find out when the last login was made by users and I am getting values such …

Member Avatar for diafol
0
2K
Member Avatar for furqan219

Hi, How I can Export PHP Result which shown in table to excel using a Export Button on the Same Page. [B][COLOR="Green"]:) [/COLOR][/B]

Member Avatar for chrishea
0
559
Member Avatar for furqan219

Hi please Share how to show data from a specifice date to specific date. Thanks in advance...

Member Avatar for furqan219
-1
67
Member Avatar for mrcniceguy

In facebook or in some other websites,when adding a person as a friend,just after clicking the link(ADD AS FRIEND),it appears a small window with information of the person you want to add to ur friend list. how can i do like this? which language is used in that...up to now …

Member Avatar for Atli
0
89
Member Avatar for safeer007

I have to open and then unlink a pdf document. [code=php]$url = "../tempdocs/".$tmpdocname; header("Location: ".$url."");[/code] here i can open this document but as I add [icode]unlink($url);[/icode] the browser shows " File is not found". so unlink runs before the completion of file open... if anybody knows a solution please reply

Member Avatar for Atli
0
85
Member Avatar for lithodora

[URL="http://www.daniweb.com/forums/thread46880.html"]Old Thread on the same topic[/URL] I have tried all kinds of things to resolve the issue. My code even works on another server, but I can not use that one. There is NO whitespace. [code]<? // login.php - login form ?> <script type="text/javascript"> function Usernamevalid(which){ var test = validateusername(which); …

Member Avatar for lithodora
0
148
Member Avatar for cmaclennan

Hey guys, Hoping someone can help me out here, I have a query thats pulling essentially an order record from multiple tables, it pulls all of the customer details etc as it should however when the order contains more than 1 part for example instead of just returning 1 set …

0
87
Member Avatar for bassline77

Hi, I have a simple problem that I just can't get right. I have a site that sells photos. The photos appear on PHPSimpleGallery with the file name as the photo's name. I need some sort of script that, if the user select the photo (via a button or something) …

Member Avatar for diafol
0
89
Member Avatar for designingamy

I really need someone to point me in the right direction. I am building a page where a person can choose what border they want to go around their business information. Once they choose it, the image goes in the database, as well as their info. I'm okay on figuring …

Member Avatar for Atli
0
96
Member Avatar for fobos

hello all who read, im here to write this forum, because i have exhausted all means (to my knowledge) of figuring this out. I used the same settings with another outlook and it worked. Basically i have a form and when the user hits "submit", the form gets directed to …

Member Avatar for Atli
0
129
Member Avatar for silviufuicu

[CODE]Fatal error: Call to undefined function usermenulist() in D:\xampp\xampp\htdocs\general\membersList.php on line 163[/CODE] this is membersList.php [CODE]<?php //-------------------------class MemberListHandler-------------------->>> /* * * @category * @package Members * @author vijayanand39ag05 * @copyright * @license * @version Release: @package_version@ * @since 2006-05-01 */ class MemberListHandler extends MediaHandler { private $showPageNavigationLinks = false; private …

Member Avatar for silviufuicu
0
229
Member Avatar for knrakesh

Hi Friends, I need to design a script which will block all user interaction on PC until an activity is completed. Problem: We need to fill time reports every day. People tend to forget filling this. This directly affects companies revenue. Solution: I am thinking of running a script every …

Member Avatar for ShawnCplus
0
123
Member Avatar for furqan219

Hi I have 2 pages. 1. form.php 2. update.php I have populated valus from databse on the base of id and show in the form field, now in update page I have tried to post the value but its not working. [B]Please Helop me[/B]In Form.php [code=php]<form action="update.php" method="post"> <input type="text" …

Member Avatar for msnmnk
-1
127
Member Avatar for gagan22

Hi all, Yesterday i was working in which i need some application in which we can upload image file in our system. That is working very well. But now i want to upload a notepad text file or ms-word file from system to server. Means I want to upload a …

Member Avatar for msnmnk
1
875
Member Avatar for dhineshraja

Hi All, In my project we have an option like download user schedule to Google calendar, Outlook calendar and Apple calendar, Using google calendar API I have imported user schedule to their google calendar, now I need to import to outlook and Apple calendar, I have spend much time to …

0
49
Member Avatar for furqan219
Member Avatar for MSK 7

Hello all, I want to create a system that I will place in my admin where I go and check my partners Site that my website LINK is still there on his website or not . As on google search i found maximum ready made softwares for these purpose. Is …

0
114
Member Avatar for furqan219

[CODE] <form action="update.php" method="post"> <input type="text" name="userdate" value="<?= $b ?>" /> <input type="submit" name="subjoin" value="Update"> </form> [/CODE] and update.php [CODE] $c= $_POST["$b"]; echo "value".$c; //its not working[/CODE]

Member Avatar for djjjozsi
0
77
Member Avatar for jay.barnes

Hello! I'm having some problems with using data in an PHP form I'm working on that utilizes AJAX. Could be a beginner's mistake, but, then again, it might not be... :) SCENARIO: I have a form with two sets of fields, origin country, city, state, and zip, and destination country, …

Member Avatar for jay.barnes
0
317
Member Avatar for raul66

[B]Hi, I am working on result.php page, where I want to order data by date, but I want remove (don't print) duplicate records.I am using 3 tables: 1,results - short res 2,excercises - short exc 3,user - shor usr I have this query:[/B] [code] [COLOR="Green"][I]<div class="main"> <table cellspacing="20"> <tr> <th></th> …

Member Avatar for raul66
0
160
Member Avatar for seaders

I'm using GD2 with PHP 5.2.9.2 and I'm trying to create a dynamic compass type thing. What I'd like is simply an arrow image that will change where it's pointing based on the [code]?=rotate[/code] get variable I pass to it. Problem is that because the image is square, imagerotate (the …

Member Avatar for ShawnCplus
0
96
Member Avatar for joewalsh63

I have a pre-made template and have inadvertently messed something up when trying to add a favicon link. I've googled what I can and tried several corrections but fear I have made things worse...please can someone come to my assistance at all? The page says Parse error: syntax error, unexpected …

Member Avatar for djjjozsi
0
85
Member Avatar for gagan22

Hi all, I am making one application in which i need some PHP code . My means i want to upload an image that can be in .jpeg, .jpg or .gif format. That i want to upload from my system and after uploading that image and i want to show …

Member Avatar for gagan22
0
209
Member Avatar for affee

i need to activate another script and pass 2 vars and have one returned. Have I got the syntax correct AND why does it not see the script? It is in the same directory as the php script. [code=php] $mysearch="cats"; $mytype = "zero"; passthru ("/home/bookie/testbed/perlSOAP.cgi?fieldvalue=$mysearch&fieldsearch=$mytype&" , $response); return $response; echo …

Member Avatar for affee
0
298
Member Avatar for Lhizzard

Hei, i need help with php code. So, I have a lots of pages - but it would be nicer to put them to ONE page, if this is possible with "_GET" and "IF" function.. and with "echo". Like when the page is "page.php?p=moderator" shows me moderators.. if this is …

Member Avatar for Lhizzard
0
163
Member Avatar for raul66

Hi everybody, I want to join 3 tables and gain same data from these tables. 1.table: usr - user information usr_id 2.table: res- results res_usr_id res_exc_id res_result 3.table: exc- excercises exc_id exc_excercise_name Now I want print all results from one user and all excercises from one user.Can somebody help me?I …

Member Avatar for djjjozsi
0
122
Member Avatar for ouso

Hi gurus? I have problems with the search code. please help me to know why the code while($row=mysql_fetch_array($sql)) tells me that there is an invalid sql resource. please give other better search options.thanks

Member Avatar for djjjozsi
0
58
Member Avatar for shadow_kira
Member Avatar for djjjozsi
0
42

The End.