39,402 Topics

Member Avatar for
Member Avatar for NZSnowMan

I have searched everywhere for this, but I'm really not certain we would all describe the symptoms the same way. It is most bizarre. I set a random hash string (doesn't mater how - I don't believe - but I will post code below), store it in a hidden form …

Member Avatar for Melarlo
0
258
Member Avatar for manishrestha529

echo "<td><a href='delete.php?user_id=".$row['user_id']"' onclick='return confirm("Do you want to delete?")' >DELETE</a></td>"; I am not being able to correct it...

Member Avatar for diafol
0
139
Member Avatar for labise

<?php // Set up the database connection $dsn = 'mysql:host=localhost;dbname=lafamosa_plaincart; $username = 'lafamosa_kermis'; $password = 'lafamosa1980'; $options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION); try { $db = new PDO($dsn, $username, $password, $options); } catch (PDOException $e) { $error_message = $e->getMessage(); include('errors/db_error_connect.php'); exit(); } ?> Parse error: syntax error, unexpected T_STRING in /home/lafamosa/public_html/dene/model/database.php …

Member Avatar for phorce
0
142
Member Avatar for jpknoob

Hello all, I have a drop down that is populated using php and mysql. when the user makes a selection, I run the function showUser(), however, nothing happens when i make a selection, can anyone help with what I'm doing wrong? The JS [CODE] <script type="text/javascript"> function showUser(str) { if …

Member Avatar for cscheck
0
379
Member Avatar for shlokka

hi everyone got a problem with the pp api... basically i have a return url that gets 2 fields from the pp form.. custom and mc_gross. the problem im having is that when pp redirects to this function, it first goes to a page stating its going to redirect in …

Member Avatar for shlokka
0
380
Member Avatar for my3h

Hi, I am looping the data and displaying it from the database. But only one data set is displaying in the loop. I dont now where i am doing wrong. Here is my code. Please help me $resultViewed = $this->model_report_product->getMostViewed(); $stringResult ="var data= google.visualization.arrayToDataTable([ ['Product', 'Views'],"; foreach($resultViewed as $results) { …

Member Avatar for kurtopia
0
145
Member Avatar for ak47carbon

i want that after validation of form with ajax it will be redirect on another page but my coding is showing result in specfic div id=result . i am getting result on index.php which coding is following <div class="c_right"> <div> <div class="t_h_c"> Hi Guest </div> <div id="result" class="error"> </div> <div …

Member Avatar for diafol
0
203
Member Avatar for gurusubramaniam

Hi.. I want to run a php file every 5 seconds. So that i used shellscript file. But Shellscript file not accept php coding. Can i include php file into Shellsript file? or can i write the php code in Shellscript file?

Member Avatar for pritaeas
0
75
Member Avatar for ngchpg

I'm new to PHP and currently i face some problem in error as below Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING Below are my code. Appreciate if someone can help to point out the error and some suggestion Thanks a lot!! while($row = mysqli_fetch_array($result)) { …

Member Avatar for pritaeas
0
567
Member Avatar for ak47carbon
Member Avatar for pritaeas
0
80
Member Avatar for kn3rdmeister

I want to have a list of months and years when content was posted to my website. Example: /// **Archive** *July 2012 June 2012 May 2012 April 2012* /// Then, clicking one of list items takes you to a page with every post from that month. I know I should …

Member Avatar for pritaeas
0
674
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
117
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
56
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
173
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
155
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
240
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
125
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
76
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
989
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
66
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
879
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
115
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
131
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
167
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
118
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
137
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
239
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
265
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
210
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
621
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
179
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
445
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
205
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
443
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
215
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
160
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
173
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
81
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
243
Member Avatar for my3h

Hi, i want to create a pie chart in my website by taking values from database. I should display the top 10 most purchased product in the form of pie chart in my website. But i dont know how to do it. I have no clue how to start. Please …

Member Avatar for Biiim
0
3K
Member Avatar for Patiodude

I'm trying to create a PHP script, which would be added to .php files (articles) on my website. This script would automatically add the article in question to a previously created database (and would subseqgently be used to timestamp articles). What would a script like that look like?

Member Avatar for pritaeas
0
161
Member Avatar for hwoarang69

Hi, i am trying to learn how to create login and register page on my own. But i am having any luck with it. can any one help me from start to finish? and by start to finish i mean just the login, register and database part, not the whole …

Member Avatar for Joshuamandrew
0
189
Member Avatar for _DMC

I want my auction site changed so that when you click the "place bid" button it will work like this if bid >= reserve price the auction ends with the bid = selling price else message "bid too low" current bid = 0 (again) This should take only 2 or …

Member Avatar for _DMC
0
139
Member Avatar for shanboy

The upload html page i'm using <html> <head> <title> </title></head> <body> <form enctype="multipart/form-data" name="upload" action="upload.php" method="post"> <input name="file4upload" type="file"> </input> <br> <input name="submit" type="button" value="Upload File" > </form> </body> </html> php file code is given below (upload.php) <?php $target_path="upload/"; $target_path=$target_path.basename($_FILES['file4upload']['name']); if(move_uploaded_file($_FILES['file4upload']['tmp_name'],$target_path)) { echo " File ".basename($_FILES['file4upload']['name'])."has been uploaded"; } else …

Member Avatar for shanboy
0
271
Member Avatar for densman

I am newbie to PHP and trying to develop a website like SecureSite, [sitelock](http://www.sitelock.com). I will issue an embedded link with seal to websites, when the seal is clicked, it will be verified by my website. Any idea on how to progress with this will be highly appreciated.

Member Avatar for diafol
0
75
Member Avatar for adishardis

Hi, I have a json encoded array ($dataTable) that looks like this: {"cols":[{"type":"string","label":"Analys"},{"type":"string","label":"Test 1"},{"type":"string","label":"Test 2"}], "rows":[{"c":[{"v":"Top"},{"v":"78"},{"v":"71"}]},{"c":[{"v":"In"},{"v":"88"},{"v":"91"}]},{"c":[{"v":"Pref"},{"v":"60"},{"v":"72"}]},{"c":[{"v":"Int"},{"v":"13"},{"v":"9"}]}]} I think that's right but when I try to display the graph it says "table has no columns"... Copied from google I have this in my head section: <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", …

Member Avatar for adishardis
0
2K
Member Avatar for viktor.jiracek.5

Hello everyone! I am currently working on a change password code. I am having trouble because everytime I click submit the page seems to simply refresh. I am new to php and I am sure that everything on the database side is working alright. I have a working login, registration, …

Member Avatar for viktor.jiracek.5
0
802
Member Avatar for Raakesh399

The End.