39,320 Topics

Member Avatar for
Member Avatar for iamthwee

Good morning dudes, I have a little issue, I have a rich text editor but on copy and pasting it retains a lot of the gunk, unwanted fonts classes. It is even worse when copy and pasting from microsoft word. Here are some of the things I want: * To …

Member Avatar for diafol
0
327
Member Avatar for Bedhoel

Hello World, I have a problem. I want show 2 images or 2 link videos or 1 images 1 link videos together but image/videos not appear, because 2 difference class. class "img1" and "img2" #image <img alt="" title="" class="img1 or img2" src="images/<?php echo $vx->picture?>"> #video <a href="http://www.youtube.com/watch?v=<?php echo $vx->video?>" class="img1 …

Member Avatar for Taywin
0
194
Member Avatar for supermastereu

Intend to carry out a simple online and print invoice to pdf. Suggestions are accepted ...

Member Avatar for NuGG
0
109
Member Avatar for bobgodwin

I need to find the largest height & width values in a directory. I've tried to use: if ($handle = opendir('path/to/image')) { while (false !== ($file = readdir($handle))) { if (preg_match('/(jpg|gif|png)/', $file )) { $images[] = $file; list($width, $height) = getimagesize('path/to/image/'.$file); $max_w = max(array($width)); $max_h = max(array($height)); } } closedir($handle); …

Member Avatar for veedeoo
0
385
Member Avatar for anitg

I have a page where it allows my users to upload their videos through an html5 file upload form and a PHP script that saves file in a folder on server. All works fine. But when it is displayed using video tag, it simply does not play ! I do …

Member Avatar for veedeoo
0
980
Member Avatar for Mani_7

I had uploaded the FreiChat.V.9.6.zip file to the Joomla website base folder. Then I had visited the URL http://socialphobians.oo3.co/freichat but I'm getting the error message. "The requested page cannot be found. An error has occurred while processing your request. You may not be able to visit this page because of: …

0
121
Member Avatar for wfray

This code works perfectly in IE 7 and above. The PHP/HTML code has a button to delete/undelete some data. When the icon/button is clicked it enters the javascript function "setdelete". The following HTML code sets up the button for entry into the javascript function. <button id="$delete_icon" value="Delete" onclick="setdelete($key)"><img id="$m_d_img_name" src="images/x_undelete.ico"/></button> …

Member Avatar for wfray
0
311
Member Avatar for radwanullah

I am working to build a page similar to http://statistics.amis-outlook.org/data/index.html#COMPARE this how to generate charts based on user slection however i am able to generte charts from database.

Member Avatar for radwanullah
0
1K
Member Avatar for MeixiuLin

I have trid the testing script as follows: [code=php] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </HEAD> <BODY><?php $headers = 'From:info@mydomain.com'. "\r\n" . 'Reply-To: [email]info@mydomain.com[/email]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $ret=mail('user@customer.com', 'subject', 'this is the content',$headers,'-finfo@mydomain.com'); echo "<BR/>mail() returned: " . ($ret? "TRUE" : "FALSE") . …

Member Avatar for fateenalkhred
0
3K
Member Avatar for Jay_7

**Parse error: syntax error, unexpected T_VARIABLE in this line "$validate_user_information = sqlsrv_query "select * from `userinfo` where `badgenumber` = '"$user_ssn"'";" //Login Page Starts here elseif($_POST["page"] == "users_login") { $user_ssn = trim(strip_tags($_POST['badgenumber'])); $validate_user_information = sqlsrv_query "select * from `userinfo` where `badgenumber` = '"$user_ssn"'"; if(sqlsrv_num_rows($validate_user_information) == 1) { $get_user_information = sqlsrv_fetch_array($validate_user_information); $_SESSION["VALID_USER_ID"] …

Member Avatar for andrevanzuydam
0
265
Member Avatar for ashalatha

Actually iam having headers in two rows for some columns Example:Iam having start time it is divided into hours and minutes In first row it is having starttime below the start time iam having hours and minutes in the next row in different columns while bulkuploading this hours and minutes …

Member Avatar for ashalatha
0
390
Member Avatar for Danny159

Hi All, I have the following script that works fine, it createds a png of the first page of a given PDF. However I also want to screenshot the first page of a .doc file. Can this be done with imagick as well? $im = new imagick($pdf.'[0]'); $im->setImageFormat("png"); $getfilename = …

Member Avatar for andrevanzuydam
0
110
Member Avatar for SimonIoa

Hello i am looking for a rating script and i have basic knowledge of PHP and Sql. Can you show me one?

Member Avatar for veedeoo
0
182
Member Avatar for softwareconsl

<?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement($string); echo $xml->asXML(); $result = $xml->xpath('/a/b/c'); while(list( ,$node) = each($result)) { echo $node->asXML($result); } need this output: <c>text</c> <c>stuff</c> <>code</c>

Member Avatar for briele
0
238
Member Avatar for bolfescu

hy i have question i have this code and i whant to print it one by one not all the page the script is <?php $qry=mysql_query("SELECT * FROM articles order by articles.id DESC ", $con); if(!$qry) { die("Query Failed: ". mysql_error()); } /* Fetching data from the field "title" */ …

Member Avatar for hericles
0
309
Member Avatar for jKidz

Hi All, As usual I here with a PHP & MySQL problem. Most of you know, I am developing Music Download system. Today I have created Widget to display last 5 songs. <?php include('datab.php'); $get = "SELECT * FROM `songs` ORDER BY `id` DESC"; $getres = mysql_query($get) or die(mysql_error()); if(mysql_num_rows($getres)> …

Member Avatar for hericles
1
186
Member Avatar for garyrichard

<?php $host = "localhost"; $usr = "root"; $pwd = ""; $db= "DB"; conOpen($host,$usr,$pwd,$db); function conOpen($host,$usr,$pwd,$db){ $con=mysql_connect($host,$usr,$pwd) or die ("Connection Failed "); mysql_select_db($db,$con);} $rows_per_page=5; // database connection stuff here $result=mysql_query("Select * from newsimage"); $pages=ceil(mysql_num_rows($result)/$rows_per_page); if (!isset($screen)) $screen = 0; else echo $_GET[screen]; /* $start = $screen * $rows_per_page; $sql = "SELECT …

Member Avatar for Borzoi
0
1K
Member Avatar for dudegio

Hello please help me troubleshooting this. i got this error in my login.. pleaaaaase. below is the **error** that prompts me when i login: PHP Warning: Cannot modify header information - headers already sent by (output started at D:\HostingSpaces\spindev\spindev.spinweb.ph\wwwroot\YPS\login\login.php:9) in D:\HostingSpaces\spindev\spindev.spinweb.ph\wwwroot\YPS\login\login.php on line 71 PHP Warning: Cannot modify header information …

Member Avatar for nicheteam
0
14K
Member Avatar for james6754

Hi, I have just started php. I have a contact form on my website and am using the is_numeric function to check that the phone number entered is a number. What I want to do is, if the phone number is not a number to output a message just underneath …

Member Avatar for stekmil
0
2K
Member Avatar for Pravesh_1

How I can get unique IP address over a Network? In network all system have same IP. It is possible get unique IP address like MAC address ?

Member Avatar for pritaeas
0
102
Member Avatar for arslan.khalid.57

i want to show information against the click on different images, want to fetch information from database anyone can help me??? like when someone click on the image the information against it should visible on the same page from database

Member Avatar for Bachu
0
197
Member Avatar for rahul10721

I need a working code for deleting an uploded file on the ftp server.I do have a script but it dosn't work.. [CODE]<?php // set up the settings $file = 'old.txt'; $ftp_server = someone.net'; $ftpuser = 'user'; $ftppass = 'passwd'; // set up basic connection $conn_id = ftp_connect($ftp_server); // login …

Member Avatar for veedeoo
0
1K
Member Avatar for filipgothic

I need array with 10 words, then I need to sort that from a to z and display each in different color can anyone help with that? thanks in advance

Member Avatar for filipgothic
0
256
Member Avatar for ashalatha

This is my csv importinf file how iam inserting data into database. function csvimport() { $data['error'] = ''; //initialize image upload error array to empty $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'csv'; $config['max_size'] = '1000'; $this->load->library('upload', $config); // If upload failed, display error if (!$this->upload->do_upload()) { $data['error'] = $this->upload->display_errors(); } else …

Member Avatar for ashalatha
0
3K
Member Avatar for nadiam

Hi guys. i have an event page that displays events from database. in my database I have a column with datetime format. is there a way to only get the date or time separate from each other in a select to be displayed? php: <?php require "connection.php"; $sessid = $_SESSION['sess_user_id']; …

Member Avatar for nadiam
0
2K
Member Avatar for vizz

How to Convert PHP HTTP_REFERER to Null referer How to Convert JS document.referrer to Null referer Forexample site http://www.refnull.com/

Member Avatar for vizz
0
134
Member Avatar for filipgothic

I need to make echo for each next situation if points typed is <0 echo can't be negative number if points typed is 0 echo clean 0 if points typed is > 50 echo you passed test if points typed is 100 echo you finished with best result and all …

Member Avatar for filipgothic
0
215
Member Avatar for davy_yg

Hello, I am looking for a free script to upload image / moving image files to a certain folder and basically a database for cms image gallery. Any free script like that ?

Member Avatar for veedeoo
0
467
Member Avatar for iamthwee

Morning guys, I would like someone to clarify my doubts with Codeigniter's file structure. The CI default structure is -application -system but I have a lot of other files in the same directory like, phppdf, images, etc is it better to further separate them into another subdirectory for clarity such …

Member Avatar for Tpojka
0
214
Member Avatar for cilla

I'm working on a site that had to be customized from a templatemonster.com template. It's just about finished except the contact form only seems to work fully in Firefox, which is odd? In FF, IE, and Chrome it LOOKS like it works, and in the first two the submissions come …

Member Avatar for cilla
0
218

The End.