39,320 Topics

Member Avatar for
Member Avatar for itisnot_me

is it possible to have php code within jquery or do i have to use ajax to grab the values. ex of what i was trying [CODE] function blah() { //Creates the name tag $("#newitem").append("<tr><td><fieldset><legend><select name='produce'><option>--Select--</option><?=produce();?> </select></legend><table width='200'><tr><td>Ammount</td><td>On Hand</td><td>Cost</td></tr><tr id='txtHint'></tr>"); } [/CODE] as you can see that i have a …

Member Avatar for itisnot_me
0
71
Member Avatar for Carrots

Hi, I have a web site. On index.php I have a HTML link to admin/admincp.php By simply adding a htaccess file to the directory 'admin', will the admin directory and it's contents be fully protected? I only want it to be possible for me to access mysite.com/admin/admincp.php, because I am …

Member Avatar for Carrots
0
140
Member Avatar for fawkman

Hi Guys I am working on a php page that allows the user to upload files to thei proile. I managed to fina an open source upload class. Currently I have the code uploading the file to an images folder on the web server and that file is renamed to …

Member Avatar for fawkman
0
127
Member Avatar for amitverma

i am using the following JQuery function to successfully POST data to the user_submit.php file, its just that the php file is unable to receive the data. [CODE] $(function() { $("#submit_js").click(function() { $.post("user_submit.php", { comment: $("#comment").val() }); }); });[/CODE] upon finishing the Firebug consoloe shows this: [CODE]<html> <body> Your vote …

Member Avatar for furutani
0
204
Member Avatar for greeeny

Hi i want to have PHP scripting page if SERVER A Goes down this PHP Page check the status & than Redirect user to SERVER B.... thing is that i made IIS 7 Server on my PC & some time i turn off my PC ill upload this PHP page …

Member Avatar for furutani
0
156
Member Avatar for K0ns3rv

Hey guys. I am looking for a way to send a fax message through a local machine via php, is this possible ? I have very little info about the system that requires this so i can't be much more specific. Cheers K0ns3rv

Member Avatar for K0ns3rv
0
112
Member Avatar for maheshks

[B]Hi[/B] can any one suggest me how to data recieve from xml & modification xml file using php .i attached one thumbnail.i want that type of program in php...Don't mis understand wrongly.. Thanks S.mahesh

Member Avatar for nileshgr
0
131
Member Avatar for veledrom

Hi, I use phpMailer to send authenticated email. The mail i sent goes into bulk or junk folders in yahoo and hotmail. They should go to inbox. How can i solve this problem? Thanks [code] $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "mail.myserver.com"; $mail->SMTPAuth = true; $mail->Username = "username"; $mail->Password …

Member Avatar for rajabhaskar525
0
2K
Member Avatar for forumforme123

Hi All... I am posting here in hopes that someone may be able to help me with this problem. I am writing an application with ExtJS and PHP. Now, I have a form that gets input from the users and one of the input required is a folder path. Just …

Member Avatar for diafol
0
80
Member Avatar for TonyG_cyprus

[B]Hi guys[/B] I'm fairly new to php but learning fast. Here's my problem. I have the code below in a website I made for my local pub, it works fine, but is ther a way to dynamically add another row to the table when the number of records displayed is …

Member Avatar for TonyG_cyprus
0
130
Member Avatar for ayesha789

[CODE=php]<strong><p align="center">Air Conditioner Data Update</p></strong><br> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="onm"; // Database name $tbl_name="sims_ac"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $a=$_REQUEST['a']; //Its getting value from previoes page echo …

Member Avatar for hemgoyal_1990
0
215
Member Avatar for JimmyLloyd

Hey there, I'm having a little trouble with a for each loop i'm trying to use. I was hoping somebody would be able to pick out what i'm doing wrong. I'm getting this error message [B]Invalid argument supplied for foreach() on line 310[/B], which is the line that the outer …

Member Avatar for JimmyLloyd
0
63
Member Avatar for michaelj714

Hello I am new to DaniWeb so please be gentle! I am also extremely new to PHP. Other than a couple of introduction classes I have not had much exposure...I am really trying though. Never the less, I have a web client that wants to be able to have his …

Member Avatar for JimmyLloyd
0
77
Member Avatar for OmniX

Does anyone know or can direct myself to a php audio character output? For example if i code this and outputs it not only visual but audio also. [code] $abc = "ABC"; echo $abc; // or even $a = "A" $b = "B" echo $A . $B; [/code] You get …

Member Avatar for OmniX
0
86
Member Avatar for CyberPirate1

Hello all! I'm trying to make an IRCbot, but I have an issue I just can't seem to get through. [CODE]<?php class irc { // server connect public $host = "irc.freenode.net"; public $port = 6665; public $channel = "#dinksmallwood"; // client-side public $username = "GlennBOT"; public $hostname = "ti0184a340-0784.bb.online.no"; public …

Member Avatar for rbrt13
0
288
Member Avatar for fuchsia555
Member Avatar for andyherebi

Hello, does anyone know about any freeware to crate an online reservation system for hotels or something like that. The one I need should not be very complex, there are only two kind of rooms and the price system is very simple. If there is not something like that so …

Member Avatar for diafol
0
83
Member Avatar for ishFady

Hi I have windows XP with service pack 3 machine. I installed Apache 2.2 and tested working fine. And then I installed php 5.3.1. When I start Apache, it doesn't start and getting get following error in popup window. "Apache HTTP Server has encountered a problem and needs to close. …

Member Avatar for nileshgr
0
186
Member Avatar for AndrewMori

Hi. I am looking for support from the cakephp environment but i thought i would try DaniWeb out too :) I am learning how to add, edit and delete entries in database tables from cakephp script. So far i can add and delete just fine, but i am struggling to …

0
49
Member Avatar for xylude

I am having trouble getting my if/elses to do what they should. It's probably something dumb that I'm overlooking. Can anyone help? [code] if(isset($_POST['homePageReg_submit'])) { $db = new connectDB(); $db->username = ""; $db->password = ""; $db->hostName = ""; $db->dbName = ""; $db->connect(); $rf_username = $_POST['homePageReg_username']; $rf_email = $_POST['homePageReg_email']; $rf_validateEmail = …

Member Avatar for ShawnCplus
0
83
Member Avatar for BehrouzPc

hi in my project inside Cpanel server PHP MING Extension is ok BUT in Plesk have Problem by GIF and PNG file and this file must be change to dbl to work version of Extension MING in plesk is 0.4.2 i need a script to convert online png/gif file to …

Member Avatar for RamiroS
0
177
Member Avatar for dan_ord

Hi, I would like to add discount to an order, but the tricky bit for me is the following: **Example** 1 photo = £15.00 But for every 3 photos i want to subtract £3 and for every 3 photos after that another £3 off the total order So 3 photos …

Member Avatar for kireol
0
83
Member Avatar for lydia21

hi i want to pass variable from php to javascript.i want to pass my group[name please tell me.the current code is not working [CODE]<? session_start(); require_once('common/dblayer.php'); $db=new dblayer(); $id=$employer_id; $empid=$db->getgroupname($id); $groupname=$empid[0]["group1"]; echo $groupname; ?>[/CODE] javascript code [CODE] //Contents for menu 1 var menu1=new Array() menu1[0]='<a href="employercp.php">Job Portal</a>' menu1[1]='<a href="cggroup.php?id=<? echo …

Member Avatar for mehrab
0
274
Member Avatar for Kligham

Hi, I'm wondering what you all have got out there. I know you have the following: \t => tab \n => new line What do you have more? Anyone got a link to a webpage or a word that I could search for in google to get a list for …

Member Avatar for Kligham
0
112
Member Avatar for ayesha789

This code is not getting values when I press update. Its showing the values from Db in fields. But at the time of update whrere I SET Values it gets null values. I am using name of input as acmake[] and then using for loop but its not working. [CODE=php]<strong>Update …

Member Avatar for cwarn23
0
177
Member Avatar for van_smiles

I need a code for log-in which will be stored as attendance for students... I am a student and i have tried so many codes but it doesn't work... i am using a mysql server for my database is it ok?

Member Avatar for Arianna
0
100
Member Avatar for rajabhaskar525

hi all, i want create multi language website. i need to website into dutch language. any one suggeste me ??????????

Member Avatar for diafol
0
99
Member Avatar for chupinette

Hello all :) Well, im trying to display a list of categories from values fetched from my database. I have a class called CategoryList which has the function initialise as below: GetCategory actually uses PDOStatement::FetchAll [CODE] public function init() { $this->mCategory = Catalog::GetCategory(); print_r($this->mCategory); } [/CODE] Then i have my …

Member Avatar for chupinette
0
79
Member Avatar for moerpheus

Hi guys, I use wamp for development, i kinda use it for multiple projects development! I have one problem, one site cannot remove session (cant destroy sessions) i dnt know why!... When I log out from other sites in my server can destroy all session variables (I can understand that!) …

Member Avatar for moerpheus
0
80
Member Avatar for bishal397

i am doing my final year project and want help. what i want to do in my project is that i want to control air conditioner through my website. with this i want to increase and decrease temperature of the room. is this possible? please share your ideas with me. …

Member Avatar for almostbob
0
98

The End.