39,316 Topics

Member Avatar for
Member Avatar for code739

hi all, i just want to ask if its possible to have a two or even more database connection in a php run application like db_connect---db1 fetch data db_connect--db2 fetch data db_close --db2 if its not possible. how can i get data from other database table appriciate youre answers.

Member Avatar for diafol
0
116
Member Avatar for harshm027

Hi, Is there a function that will express any given number in words. For example: if number is 1432 then this function should echo "One thousand four hundred thirty two". Thanks

Member Avatar for diafol
0
52
Member Avatar for Khav

Hi Guys I am currently working on an image upload script. i want to log user upload and record their ips. I worked on a script(its works) but i am not sure if it will be 100% reliable. Here is code that i though of <?php $ip = $_SERVER['REMOTE_ADDR']; $filename …

Member Avatar for pritaeas
0
168
Member Avatar for LastMitch

Hi, I'm having an trouble trying to printf the string. <?php $product_name = "pencils"; $product_price= 7.99; printf( "Product %f will cost %1.1f dollars.", $product_name, $product_price ); ?> The answer should look like this **Product pencils will cost $7.99 dollars** but instead it looks like this **Product 0.000000 will cost 8.0 …

Member Avatar for phorce
0
153
Member Avatar for johnnycho

My question requires a little background first: I'm working on a Web project where there are four theatres owned by a single company, so not only will the four theatres each need their own Website (each with its own unique branding), but the umbrella company will need one as well. …

Member Avatar for knssanthan
0
236
Member Avatar for adishardis

Hi all! Qick question, I have this variable below and I'm wondering if it's possible to Exchange the text in <th>Totalt</th> with a varible instead i.e. <th>$Totalt</th>? I couldn't figure it out? :-/ $table1 = "<div id=\"container\"><table id=\"table-3\" cellspacing=\"0\"><thead><tr><th>Totalt</th><th>Totalt</th><th>Benchmark</th><th>Differans</th></tr></thead><tbody>"; Should be simple enough, right... Peace Adam

Member Avatar for blocblue
0
121
Member Avatar for Arfa Maham

I want to make my own email portal as a project. How can I make it? Please help me... I need to compose mails and send these mails to different persons (including attachments). I also need to make inbox, outbox, drafts etc. for processing my mail. How can I make …

Member Avatar for diafol
0
74
Member Avatar for pancgom

Hi, I am looking for some help in adding a calendar to a form that i am building. Its much like a calendar when you book air tickets.. click on a calendar like icon and a pop up window opens select date year and month the details get into the …

Member Avatar for sahan1989
0
977
Member Avatar for engrjawad

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 2 I m getting this error while entering my query in the php code.. my code is function get_subject_by_id($subject_id) { global …

Member Avatar for broj1
0
62
Member Avatar for jamied_uk

i have a forum for uploading pics or other files to a root folder but its not working online on my hosted domain at jnetscripts.com it sais its working but no file is there, i chmod the folder root to allow writing and still does not work is there a …

Member Avatar for jamied_uk
0
872
Member Avatar for ElaineTeo

<form enctype="multipart/form-data" action="upload_file.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" name="submit" value="Upload File" /> </form> <?php // Where the file is going to be placed $target_path = "uploads/"; /* Add the original filename to our target path. Result is …

Member Avatar for ElaineTeo
0
1K
Member Avatar for aneeqtariq_143

i have a little problem in my website, i dont know where is the problem. i am create link of other website in my website by using this code $output .= "<b>Website: </b><a href='".$row["website"]."' target='_blank'>".$row["website"]."</a><br>"; but when i click on a website it does not open website. when i check …

Member Avatar for pritaeas
0
112
Member Avatar for vishalbandre

Currently i'm working on my own php-mysql with zend website project, i don't have to much time to work on developing my own cms so i am going to use TOMATOCMS - http://www.tomatocms.com, and nearby three months are required to develop my own, and after that i want to switch …

Member Avatar for veedeoo
0
127
Member Avatar for kaiwahl

I have a problem in a payment solution I have made. In this, I use ereg to extract a returned Transaction ID from the payment provider, and with PHP 5.3 this does not work anymore. The code used was: ereg('<TransactionId>(.+)</TransactionId>',$resultat_3,$c); I have tried to use this instead: (but it doesn't …

Member Avatar for diafol
0
166
Member Avatar for kutchbhi

I have only coded 2 sites till now, first one in plain php (wall of php intermingled with js, html , super messy) and the other in codeigniter(much better as far as separating display with logic is concerned) now I have to code a website for a friend (designer). The …

Member Avatar for diafol
0
113
Member Avatar for mariaceline_21

<br /> <b>Notice</b>: Undefined variable: firstname in <b>C:\xampp\htdocs\dl\index.php</b> on line <b>70</b><br /

Member Avatar for diafol
0
134
Member Avatar for mahlak

Hi I am using PHP to develop a web application. I want to send a mail report automatically from the server, without any user interaction. I tried in cron but not properly worked in my application. Is there any other way to send aoutomatic mail from server. Any one can …

Member Avatar for pritaeas
0
235
Member Avatar for gurusubramaniam

Hi... I want to send a mail automatically using cron job. Till i searched about that, there is only how to set the time and path of the file in cron folder. But i want to know about how it will run?

Member Avatar for cereal
0
5K
Member Avatar for davy_yg

I would like to write new books in books.xml then print them on the screen. I already successfully able to write the new book to books.xml yet, unable to print them on the screen. Why is it ? <?php // Tambahkan buku baru dengan menggunakan DOM $dom = new DomDocument(); …

Member Avatar for veedeoo
0
262
Member Avatar for anu013

Hello All, I want to make a computer storage (online) Web Application PHP/MySQL... I mean where we can keep all the data of computer and all its configuration, upgradation, problem occured, solved problems and alerts for warranty expires.. Can any one give me the example link where i can gain …

Member Avatar for anu013
0
206
Member Avatar for gargg321

Hey folks, I am fairly new in the field of PHP. I have to prepare a module that will show the CPU utilization, current processes, memory utilization and disk quota of a remote system when asked on a PHP page. I am clueless about how to proceed in this matter. …

Member Avatar for parisssss
-1
613
Member Avatar for bo0ga

Basically I want the user to select the current month and day that they left a review, click submit, then given a random coupon code. I want the coupon code, the month they selected, and the day they selected to get inserted into the database. HTML Page <form action="redeem.php" method="post"> …

Member Avatar for diafol
0
175
Member Avatar for DJ-DOO

Hi! I'm hoping someone can help me here, I've been looking at highcharts as a way of graphing my dynamic data from my sql db....What I've come up with so far is below, it's strange, it seems correct, the data is correct, however, I can't get my chart to render, …

Member Avatar for pritaeas
0
439
Member Avatar for ak47carbon

what is frameworks, whats the benefits of framework which is famous framework how to use it , what is cakephp i know what is cms but i didnot know when a person ask me in intervew which version of cms are u using,?i always make my own cms for website …

Member Avatar for pritaeas
0
202
Member Avatar for newtohacking1337

My error is: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c05/h02/mnt/76361/domains/alltechnologyrecovery.com/html/login/models/class.user.php on line 11 I am trying to fix up this website, but I know barely any php.. Here is my code: <?php /* UserCake Version: 1.4 http://usercake.com Developed by: Adam Davis …

Member Avatar for sepp2k
0
440
Member Avatar for shpetim.haxhiu

Dear all, i am new to php and i am trying to update db table through php form ... there is a form that takes inputs from php form and then update the db ... Below is the update php page ... <?php $host="localhost"; // Host name $username="lpr"; // Mysql …

Member Avatar for DarkMonarch
0
208
Member Avatar for mithunhussey

<div style='float:left;padding:5px 5px 5px 0;'><a expr:share_url='data:post.url' href='http://www.facebook.com/sharer.php' name='fb_share' type='box'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div> i need to add '<?php echo $strALink;?>' this variable into tis code . for facebook sharing i don't know . plz help me.

Member Avatar for mithunhussey
0
158
Member Avatar for gurusubramaniam

Hi friends, I want to go to previous page from a pdf document page using php. I already used the following code. <a href='javascript:history.go(-1)'> It only works on the web pages but it doesn't work in pdf document.

Member Avatar for cereal
0
172
Member Avatar for naru vaishnaw

i want to send 2 persons mailid in this mail <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); $sql="INSERT INTO entryform (Name,Department, Problem, Ext_no, Ip_Add, Remark, Email ,status) VALUES ('$_POST[Name]','$_POST[Department]','$_POST[Problem]','$_POST[Ext_no]','$_POST[Ip_Add]','$_POST[Remark]','$_POST[Email]','$_POST[status]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo ""; mysql_close($con); $to …

Member Avatar for pritaeas
0
79
Member Avatar for ping0ping

Hi all and good day, I'm having a problem to download/saved Facebook user profile picture that login to my system using their Facebook account. Right now I'm thinking to automatically saved their Facebook profile picture to my system as they signup or login. I already have the access to user's …

Member Avatar for ping0ping
0
240

The End.