Jump to content

Search the Community

Showing results for tags 'PHP'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

  1. Hi, I'd like some help please. I'm trying to create a pagination that will display the links of the pages like this:<a href="#">First Page</a><a href="#">Previous Page</a><a href="#">Next Page</a><a href="#">Last Page</a>Not showing numbers Here's my code so far: <?php$per_page = 20;$page = (isset($_GET['page']) === true) ? (int)$_GET['page'] : 0;$start = $page * $per_page; $query = "SELECT `users`.`user_id` AS `id`, `users`.`first_name` AS `firstname` , `users`.`last_name` AS `lastname`, `users`.`email` AS `email`, FROM `users` ORDER BY `u
  2. require_once("pclzip.lib.php"); $destination_dir = "../tempcontent"; $archive = new PclZip($file); if (($list = $archive->listContent()) == 0) { die("Error : ".$archive->errorInfo(true)); } for ($i=0; $i<sizeof($list); $i++) { /*for(reset($list[$i]); $key = key($list[$i]); next($list[$i])) { //echo "File $i / [$key] = ".$list[$i][$key]."";
  3. Im looking for a little help, I am in the process of building a website and I want the contact form data to be sent to an email account.After looking at a tutorial on how to send my html form data to php I have hit a problem where the email always goes into the outlook accounts junk folder. I suspsect it may be the code I have used anyway any help would be very appreciated. Anyone know of a good tutorial or example code that will help me send my form data to email? Many thanks
  4. How to edit Language on php form or should i say change well im making a website in spanish and i want to chage the language of the contact form this is the site http://bioiman.com/ let me know
  5. Most of the time when I install PHP I get the current directory of the .php file returned from my script. With Zend Server 6 CE DOCUMENT_ROOT seems to be truncating the .php files running directory and is always returning htdocs as the last folder regardless of the fact that my application is actually in /htdocs/samedaycrm/documentroot.php. Is there some way to change the configuration for DOCUMENT_ROOT so that it starts returning the current running directory of the .php file?
  6. dewinky

    Vexing issue!

    I have a few questions i wish to see if anyone can assist me with:1. is it possible to have javascript dynamically adjust the height or width of a cell on a drag and drop event?, would i be better off using divs instead of table elements (easier to layout with my limited css skills). 2. would i be able to dynamically rotate the image of the dominoe, depending on which side of the dominoe is played and how could i do that? would i have to code something in javascript ondrop event 3. to enable select cells to allow dominoes to be dropped on them. 4. why does a dropped image takes one an opaque c
  7. hello again, since most of my websites are made in PHP.i would like to ask a maybe little kind of rookie question, if i have 2 servers, and wonna have the Database on the other, and the website on the other.what to do?... i know its possible... just, how?... do i replace the localhost with (examble) speed-scene.com?... (one of my websites)... or do i get it wrong again?... -thanks as usually.
  8. Greetings, I am really new at coding php. I have been working for a while and doing some Google searches. I am trying to make a registeration page for something I am working on. I can get everything in the database but dates & times. Right now it's all bogus information. I am curious on how to take a date (like a birthday) and write it to my MySql datebase? Every attempt I have made that is the only piece that doesn't get written. Also I am having an issue with the php date getting into the database. Html code <!DOCTYPE HTML><html><head><title>Demo Game</t
  9. I have created some custom functions like these: function folder_exists($folder){ global $connection; $sql_folder_exists = "SELECT COUNT(`album_id`) FROM `albums` WHERE `folder` = '{$folder}' LIMIT 1"; $folder_exists = mysql_query($sql_folder_exists, $connection) or die(mysql_error()); return (mysql_result($folder_exists, 0) == 1) ? true : false;} function total_users(){global $connection;$sql_total_users = "SELECT COUNT(`user_id`) FROM `users` ";$total_users = mysql_query($sql_total_users,$connection) or die(mysql_error());return mysql_result($total_users, 0);} , but I decided to use the
  10. I have been developing a php web site. I have been trying to follow suggested best practices. I am running ubuntu minimalist install, and installed the following packages: nginx php5 php5-fpm postgresql phppgadmin php5-gd I have nginx up and running instead of apache.I have done some basic configuration for nginx.got my vhost setup and linked. and I am now able to browse my php pages on my local test machine running ubuntu. I have created my postgre database, and have a user setup. So I am to the point that I wanted to create a page to register/login/change password. I searched and found http:
  11. Nice be with you everyone! Can you give some tutorials about Validates Form using PHP with Ajax & JQuery? I red that it is the best practice...
  12. Hello,I'm new here and to be honest it's the first time I am writing into a Forum. Until now I was only reading through various posts which considerd the same problem as I had. But now I really have no idea what to search and where my problem is. Down here is the PHP Script I have written for a Prom Vote in a nearby school. It would be really great if someone could find my mistake and correct me. <!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8" /> <title></title> </head> <body> <?php$con = mysql_connect("localhost","xxx","xxxx
  13. hey guys, I'm trying to switch my mysql connections over to PDO but I'm having a hard time. I've read a section on it in the php book I'm reading, I watched the phpacademy,org tutorial on it, I've read the section on it here at w3schools and I can't get it working. I've also posted it on 2 other forums and no one has yet to figure out where the problem is and it's eaten up 2 days of my time as well. If I can't get it figured out today I'm seriously thinking of going back to using the old mysql functions because they worked right the first time and have never given me an ounce of trouble. It's
  14. Nice be with you everyone! My problem is: Every time I refresh my showDatabaseCatalog.php there is always insertion of blank data in MySQL database? Can anyone help me how to stop this undesirable insertion of blank data in MySQL database when refresh? Thank you.
  15. Looking code for simple php website. Logo, menu, three pages. I got code for menu but stuck on logo and how to create three pages and how to upload on hosting account. Code for menu. <html><body><a href="url">Home</a> - <a href="url/about.php">About Us</a> - <a href="url/contact.php">Contact Us</a> - <a href="url/privacy.php">Privacy</a> <br /><html><body>
  16. <?php// Simple HTML DOM Parserinclude('simple_html_dom.php');$html = file_get_html('http://lifelearning.xtreemhost.com/'); foreach ($html->getElementsByTagName("ul",0)->getElementsByTagName("li") as $li){echo $li->plaintext; // works; but return the whole nodeValues (From "Point 1" to "Reference") echo $li->childNodes(0)->nodeValue; // return nothingecho "<br />";}?> <ul><li>Point 1 <ul> <li>Point 1.1</li> <li>Point 1.2</li> <pre class="CodeDisplay"> some codes </pre> <li>Ref
  17. Hello, my config is : windows server 2008 R2, WAMPP, PHP 5.3.0 with SOAP extension enabled. when i use __soapCall, i obtain this error on screen : Wrong Version this is the code (i use local copy of WSDL - service.xml) : $header = new SoapHeader("...."); $file = 'http://www.mysite/service.xml';try {$soapclient = new SoapClient(null, array( 'location' => $file, 'uri' => "http://www.mysite/", 'trace' => 1));$soapclient->__setSOAPHeaders(array($header));} catch (SoapFault $e) { // error }...$parameters = array(...); $params=array(null, new SoapParam($parameters, 'parameters'));$
  18. Hello, im wondering how does jQuery get method work. Since it should not reload the page again? I've seen this, but how to example make this more automated whitout refreshing "http://mudsaf.info/games/index.php". $.ajax({ url: url, data: data, success: success, dataType: dataType});
  19. Hi, I'd like some help please, if its possible. I have created two functions in order to display some messages when is set a $_GET after a redirect. Here's the code: function display(){if(isset($_GET['cnf_upd']) && $_GET['cnf_upd'] == '1'){ $value = "The update was successful!"; $type = "confirm"; construct_the_div($value, $type);}if(isset($_GET['err_upd']) && $_GET['err_upd'] == '1'){ $value = "The Update failed."; $type = "error"; construct_the_div($value, $type);}if(isset($_GET['cnf_del']) && $_GET['cnf_del'] == '1'){ $value = "Deleted completely."; $type =
  20. Nice to be with you everyone! I have a problem: How to convert numbers to strings using PHP. Try this, $number=11; to convert in string? Thank you.
  21. Hello,I need your help on the following:I had a page that I want to make it password protected using Javascript which is fine, but I want to be able to change the password when I login to that page, is that possible? Thanks
  22. Here is the problem. I'm trying to upload a file that contains a list of to be processed files, I then check the files using a perl script that runs an Rscript. I'm using those same files for subsequent processing. Everything is working fine on our site, but it gives a time out on someone elses site. The Rscript does not give feedback until it has finished running and starts processing. The results of the Rscript sends information back to the browser and to the php script. But in that time, the connection may already have been broken, giving a TCP time out error, especially for large data sets
  23. I'm probably too damaged of working with C# and LinQ, so havn't done a real SQL sentance since my work in Java.I have two tables, which are combined with a PK and FK. Table_MyCust with PK CustID and Table_CustApartments which contain CustID as FK.I want to make a XML document with PHP, where there is a node for each MyCust row, and for each MyCust there is a CustApartments for each apartment that have the current CustID as FK. In C# I've do something like the following: XElement xml = new XElement("customers", from p in DatabaseConnection.Custs orderby p.CustName select new
  24. donking13

    qoute form

    hi good day, I want to build a qoute form for my website. so far the php work without the html, but when i integrated the code. I didn't work, I just want to test it before I completely finish everything. I'm new to php but I have 1 year experience with html and css. below is the html part <html><head></head><body><form action="connect.php" method="get">Domain Name: <input type="text" name="1stText" value=""> Tip: www.websitealfred.com or websitealfred<br/><br/>How many pages: <input type="number" name="pages" value="text"><br/><b
  25. Mudsaf

    PHP Config edit

    Is it possible to edit certain part of PHP config page and get the certain value from it. Example i have config file (i know it would not work since no actual code but i think you will get my point here). So im wondering is it possible change CONSTRUCTION = false part to true with PHP whitout editing rest of the file or keeping rest of the file same? OLD 1: SQL2: SQL-DB-SELECT3: SECURITY4: CONSTRUCTION = false5: FOOTER = "© 2012" . $website NEW 1: SQL2: SQL-DB-SELECT3: SECURITY4: CONSTRUCTION = true5: FOOTER = "© 2012" . $website
×
×
  • Create New...