39,323 Topics
| |
Hello I am trying to send mail to customer with the details of product they brought but the code which I have written not showing the value of variable **total_list** Actually I need to send email regarding the product details purchased by user if they purchased more than 1 product … | |
Hi there, I m using jquery ajax function to get the data from server and i m getting the data in associative array on success, but now i want to convert that associative array in javascript, how i can convert PHP associative array in javascript array. Waiting for your quick … | |
Wow... I am baffled. I have a shopping cart script that works perfectly until I add in the following 3 lines of calculations What happens when that is added is that it stops the processing at that point altogether, and doesn't display the balance of the page, and yet when … | |
Hi.. I am using tinymce editor for mathematical and graphical functions. The graph in editor content which is inserted into the database is not showing in firefox and chrome. But it can be viewed in Explorer. I have downloded script from http://www.imathas.com/editordemo/demo.html There is demo is provided in the above … | |
Hi, I am wondering if php is able to add text to an image once it was uploaded by a user. The user would type the word 'cool' and upload a picture then once they push submit it would send the image to a serperate file and imprint the words … | |
Hello, i'm kinda starting to feel out of my mind now. I am creating a simple web game. I am now in the process of putting some php codes here in game to have scores.My problem is that, My game's top score is the person who played the game very … | |
| |
Hello, My script uses the user 'www-data' (my webserver) when connecting to the MySQL Database, while I tell it not to. <?php include ('config.inc.php'); $connection = mysql_connect($host, $user, $password); mysql_select_db($database, $connection); $shorturls = mysql_query('SELECT shorturl FROM `' . $prefix . 'urls`'); $shorturl = rand(100000, 999999); foreach(mysql_fetch_array($shorturls) as $row) { if($row['shorturl']==$shorturl) … | |
| Hi I have problem getting XML file with curl. I get empty XML and error: Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "1" in /home2/public_html/xmlupdate.php on line 62 xml 1 not loaded. the code for curl: $ch =curl_init(); curl_setopt($ch, CURLOPT_URL,$xml_url_1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); … |
I am trying to load php file with jquery into div. The php file contains pagination. However, when i tried it, it seems that, the jquery is not working. But, when I access it in website directly, its working. Do you have any idea how can I load the php … | |
Hi So I have a div with 6 links(categories of products), the beside this I have another div which I want to fill with the products for a chosen category when a link is clicked. I have a mysql table containing all the products with each category having a unique … | |
Hi, I am developing a CMS in PHP, MySQL for a company in partnership. As you all know PHP is an open source language and it is really easy for a user to resell my software to another client or even publish it online for free. I have an agreement … | |
Hi guys. I am seriously confused with this issue. I've set up some pages to ban, unban and approve a user. On localhost, it works fine. I can ban them and their record is updated to show that. I can unban them and again, it's updated. I can also approve … | |
Hi, I use this script to extract and insert the desired variables to mysql.It does the job. $xml = new SimpleXMLElement('file.xml'); foreach($xml->loanaccount as $mess){ $account_number= mysql_real_escape_string($mess->account_number); $main= mysql_real_escape_string($mess->main); $type= mysql_real_escape_string($mess->{'application-array'}->{'application-type'}), $date= mysql_real_escape_string($mess->{'application-array'}->{'application-date'}), //insert into databse mysql_query("INSERT INTO account (account_number, main) VALUES ('$account_number', '$main')") or die(mysql_error()); echo "inserted into mysql<br /><br … | |
HI , I basically have made something that I require work in html but now trying to convert to get the results from data base but get this error and cant work out how to change it, if someone could help unexpected T_STRING, expecting ',' or ';' on line 69 … | |
Hi Hope someone can help with this. I have javascript set up how i want it in a normal html page but now need to ensure i can call a result using php with it. My code throws out an error The code states Parse error: syntax error, unexpected T_STRING, … | |
Hey there. I'm having a bit on an issue with adding new data to an SQL table on my webserver. I'm trying to update data in the table through php, but for an unknown reason the script returns no errors but refuses to update the SQL table with the content … | |
In my country youtube is blocked. my website is based on embedding youtube videos through a custom player (jwplayer), so id like to have a php proxy for embedded videos to unlock those for my contry users i dont have a clue how to solve this issue and hope to … | |
Hi i have a checkbox in my script <input type="checkbox" name ="pulse[]" value="1" checked>1<br> <input type="checkbox" name ="pulse[]" value="2" checked>2<br> <input type="checkbox" name ="pulse[]" value="3" checked>3<br> <input type="checkbox" name ="pulse[]" value="4" checked>4 and in my program i read the value and i test if the choice was 1 send it … | |
I'm getting stuck with this code. I'm not getting data in second page after form submit. <?php session_start(); $user = $_GET['Type']; include "mysqlConnect.php"; //check for a page number. If not, set it to page 1 if (!(isset($_GET['pagenum']))){ $pagenum = 1; }else{ $pagenum = $_GET['pagenum']; } //query for record count to … | |
Hi guys, this codes works perfectly to me, except that i would like to add pricetotal in session variable. my problem is pricetotal does not display values when i use print_r. Heres the output when i use print_r to display session variable: Array ( [0] => Array ( [item_id] => … | |
Hi guys. I'm just wondering why this function always returns true, no matter what the $user_id is. The $user_id variable is determined by what is retreived from the $_SESSION. I am well aware that mysql_* functions are being depreceated etc, no need to tell me :P Thanks guys! function user_mod() … | |
Hi there~ I am kinda coding a verrry simple information system which uses Javascript. I am not familiar with JS and I only know the basics, but maybe what I'll ask is a veeery simple one but oh well, should I be asking if I found a solution after searching … | |
i currently using mysql for database i want to use mysqli can any one tell me any other php server is required for it or i can use it in my bitnami wampstack 5.3.17.0 apache server. | |
I need to build a filtering function for the website I am working on, however I am not certain where to even start, should I be working in PHP, Javascript, Jquery or what? The way this is set up, there is a column of buttons set up on the side … | |
HAi everybody, I need help in flowing code i want to people not equal to friend means show addas friend buuton otherwise not show button this code show button more times what is the problem in my logic anybody plz help me. This is my friends get query. $query=$db->prepare("SELECT p.friend_id … | |
Hi friends, I tried to implement this features in my system http://www.agner.org/software/phpmenu/?e=0,36ood I understand that I need to change the basedir $_SERVER['DOCUMENT_ROOT'] . '/phpmenu/menu/tail.php' but when I upload to the server (some more files as in readme.txt) It was successful in the previous server. the url : (just example) mysistemname.uat.ac.de … | |
I am learning php, and am developing an address book on my website that will put info into a data base I am storing on my vps. However, I am struggling to understand the use of magic quotes as a security measure and wondered if anyone had a good suggestion … | |
I have tried every solution I have come across and am still not getting any results. I have a comment box and I am trying to remove all repetative new lines or `/r/n` from the input. if (isset($_POST['comment'])) { $comment = mysql_real_escape_string($_POST['comment']); $comment = filter_var($comment, FILTER_SANITIZE_STRING); $comment = nl2br($comment); //this … |
The End.