39,320 Topics

Member Avatar for
Member Avatar for divyakrishnan

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 …

Member Avatar for Larry_Singleton
0
204
Member Avatar for garyjohnson

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 …

Member Avatar for LastMitch
0
133
Member Avatar for ms061210

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 …

Member Avatar for ms061210
0
268
Member Avatar for dana2292
Member Avatar for lukas.vandendijssel

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) …

Member Avatar for Larry_Singleton
0
392
Member Avatar for mehnihma

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); …

Member Avatar for mehnihma
0
2K
Member Avatar for oishi

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 …

Member Avatar for oishi
0
258
Member Avatar for GlenRogers

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 …

Member Avatar for GlenRogers
0
396
Member Avatar for unikorndesigns

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 …

Member Avatar for chrishea
0
120
Member Avatar for Noth

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 …

Member Avatar for digital-ether
0
169
Member Avatar for adishardis

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 …

Member Avatar for adishardis
0
216
Member Avatar for mpc123

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 …

Member Avatar for mpc123
0
150
Member Avatar for mpc123

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, …

Member Avatar for mpc123
0
153
Member Avatar for Aaron_JY

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 …

Member Avatar for Aaron_JY
0
172
Member Avatar for ska_defender

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 …

Member Avatar for cereal
0
804
Member Avatar for asaidi

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 …

Member Avatar for asaidi
0
132
Member Avatar for staffmbm

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 …

Member Avatar for LastMitch
0
384
Member Avatar for diether.silverious

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] => …

Member Avatar for broj1
0
217
Member Avatar for Noth

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() …

Member Avatar for veedeoo
0
197
Member Avatar for cdays
Member Avatar for kitschkath

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 …

Member Avatar for urtrivedi
0
224
Member Avatar for AARTI SHRIVAS

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.

Member Avatar for diafol
0
208
Member Avatar for GraficRegret

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 …

Member Avatar for GraficRegret
0
173
Member Avatar for Vijaysurya

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 …

Member Avatar for LastMitch
0
305
Member Avatar for sabar

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 …

Member Avatar for LastMitch
0
138
Member Avatar for SphirosOkelli

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 …

Member Avatar for Zagga
0
210
Member Avatar for garyjohnson

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 …

Member Avatar for garyjohnson
0
2K
Member Avatar for lexaeterna

im having a hard time coding my php script. it always says "no database selected" but i dont think there is something wrong with my code. here it is: <?php $con = mysql_connect("localhost","",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db('try',$con); $result = mysql_query("SELECT * FROM emptbl") …

Member Avatar for LastMitch
0
155
Member Avatar for Samyx

Hello Everyone, I am trying to learn php along with Dojo. So I am testing how to create a bar graph from data in my mysql database. However, I am having a problem. I can't seem to be able to read the data. I am posting the code below so …

Member Avatar for broj1
0
255
Member Avatar for magicmarkuk

Hi I have the following piece of code: $multiLinks = array(); foreach ( $matches[0] as $k => $match ) { if ( $post->multiurl_token ) { if ( strpos($matches[2][$k], 'http://mysite.com') === false ) { $multiLinks[$matches[2][$k]] = $match.coes[3][$k]; } } else { $multiLinks[$matches[2][$k]] = $matches[3][$k]; } } I want to add an …

Member Avatar for magicmarkuk
0
127

The End.