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. Hello people, I'm a new member here and this is my first post. I have a form with 3 fields (UserID, UserFirstname, UserSurname). I want a jquery validation script that would check if the UserID entered is in the database. If TRUE it should echo "Valid UserID" and If FALSE it should echo "Invalid UserID" I have the following codes but it seems not to be executing the PHP File. ///Sign Up Form<div id="form"><form method="post" action="validate.php" id="formID"> <table width="351" height="155" border="0"> <tr> <td width="103">Sign Up Level<span class="styl
  2. Hi!I recently programmed a Websit and put it on XAMPP, only to see that the PHP include command responisble for the Website does'nt work.Here is the HTML: <!doctype html><html><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width" /> <title>About me.</title> <link rel="stylesheet" href="style.css" /></head><body> <header> <h1>My Pages.</h1> </header> <?php require 'sidebar.php'; ?><div id="main" margin-top="5px"> <div id="ut"> <h2>Lorem Ipsum&
  3. Hey Everyone! i am writing a code in which i am creating multiple <li> and i have given every <li> a different href. When i am running it and when i click on the href it is add the link in the current URL. Like this... <li><a href="promotiondetails.html?id=' + employee.id + '">Some Data</a></li> The current URL is like.. http://localhost/mano/www/promotions.html and this happens when i click on the <li>... http://localhost/mano/www/promotions.html#/mano/www/promotiondetails.html?id=275 I don't know whats going wrong. Please help me....
  4. Hello, i have my shoutbox online http://mudsaf.info/shoutbox.php Its currently refreshing with session that checks if latest shout has changed. (Really bad method). What method you would recommend for refreshing since i want to use less bandwith than refreshing the whole shoutbox everytime. So if you understanded anything i tried to explain.Shoutbox updates every 2 seconds and checks if latest message has been updated. Uses only bits of bandwith. When there is new shout it updates whole shoutbox data using about 20kb data.
  5. Hello, im not sure where to post this, but this prob would be htaccess question. How i can only allow users to go: http://innostus.info/ only with that domain, but not from my website subfolder: http://mudsaf.info/innostus_ky/Access:'>http://mudsaf.info/innostus_ky/Access: http://innostus.info/Deny access: http://mudsaf.info/innostus_ky/
  6. Hi, I'm trying to build a "hello world" AJAX / PHP application: AJAX code: <html><head> <title></title> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ //Requete AJAX var resultat = $.ajax({ url: "serveur.php", async: false }); alert(resultat.responseText); }); </script></head><body></body></html> PHP code: <?phpecho 1;?> I would expect the result of the alert() function to be "1", while it is:<?phpecho 1;?> So as far as I understand, the s
  7. Hey Everyone! I want to hide my original URL to my dummy URL using htaccess. If i open www.abc.com it shows/opens www.xyz.com and the URL remains the same like www.abc.com. How can i do this, please help me.....
  8. Before I begin, I tried to do some research about this subject (the Search field seems its broken and through google was a little bit painful) in the forum, so I'd like to apologise if I'm repeating it once again. I have read some articles about hashing passwords saying that md5 and sha1 are no longer safe and should use better hashing algorithms, how to hash passwords properly by avoiding double hashing, hashing with different algorithms etc etc, so I 've come up with some questions/spots that I haven't cleared them out completely. 1. Doing just this is consinder no safe, although md5 and sha
  9. Hey, im wondering is it possible to prevent user to go straight to example scripts/php/myscript1.php, but allowed to include with php. <?php// Example index.phpinclude 'scripts/php/myscript1.php';?>
  10. Conan

    PHP Mail() Problem

    Hello everyone, I'm new here, and I don't know where am I suppose to post this, but I think it's here .So, as the title says, my problem is that I've made everything correct, but the mail doesn't send to my email, or to the email I want, but it passes the code (I mean it gives me that "successfuly sent"), but when I check my email, there is nothing . here is the code, please id there is anything wrong tell me <?PHPfunction checkrow11($query1) { $query = mssql_query($query1); if(mssql_num_rows($query) > 0) { return true; } else { return false; } }/////////////////////////////// Co
  11. Hi Can someone tell me how to do a foreach and increase the "rss1" number inside this javascript? <script type="text/javascript"> function load() { var feed ="http://www.dr.dk/nyheder/service/feeds/allenyheder"; new GFdynamicFeedControl(feed, "rss1"); var feedtwo ="http://feeds.feedburner.com/d0od?format=xml"; new GFdynamicFeedControl(feedtwo, "rss2"); var feedtwo ="http://www.engadget.com/rss.xml"; new GFdynamicFeedControl(feedtwo, "rss3"); var feedtwo ="http://feeds.newzmedia.dk/c/32893/f/582669/index.rss"; new GFdynamicFeedControl(feedtwo, "rss4"); } google.load("fe
  12. Nice be with you everyone! What is the main difference between If else and Shorthand If? Example: If ($gender == 'male') echo 'Hi Sir!'; else echo 'Hi Mam!'; and ($gender == 'male') ? echo 'Hi Sir!' : echo 'Hi Mam!'; Thank you in advance!
  13. Hello! I wanna create a form that can send sms to multiple recipient, i've created a form that uses javascript to add or remove textbox dynamically, this code successfully send sms when i fill one recipient number, but fails to send more than one recipient, and as i try to make it send sms to more than one user by making it loop, i get this error, Can someone help? i want to know how do i make this form sends sms towards multiple user Warning: Invalid argument supplied for foreach() <script language="javascript"> function addRow(tableID) { var table = document.getElementById(tableID
  14. hi, I have a wordpress website http://www.cisapi.eu...-round-package/ below the item are the up-sell products (screenshot http://cisapi.eu/wp-...product/now.jpg) this is the code for the up-sell items: <?php/*** Single Product Up-Sells** @author WooThemes* @package WooCommerce/Templates* @version 1.6.4*/if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directlyglobal $product, $woocommerce, $woocommerce_loop;$upsells = $product->get_upsells();if ( sizeof( $upsells ) == 0 ) return;$meta_query = array();$meta_query[] = $woocommerce->query->visibility_meta_query();$meta_que
  15. Hey Everyone! i have write this code for sending mail but it is not working. It is echoing the Error message. <?phpinclude "config.php";if(!$_POST) exit;$email = $_POST['email'];if(!preg_match('/\.([^\.]*$)/',$email )){$error.="Invalid email address entered";$errors=1;}if($errors==1) echo $error;else{$values = array ('name','email','message');$required = array('name','email','message'); $your_email = "aneeb@gmail.com";$email_subject = "New Message: ".$_POST['subject'];$email_content = "new message:\n";foreach($values as $key => $value){ if(in_array($value,$required)){ if ($key != '
  16. hello all, In my application I want to verify users email ID. So that I want to send a verification code to their email.Kindly anybody help regarding this. I want to send email from my application using a gmail account. Thank you
  17. Hi, I have created a website in which I have added the ability the user to choose a language. The structure of my site looks like in the image. Inside core folder, there's the initialize.php file where I have put this: $allowed_languages = array('fre', 'eng');if(isset($_GET['lang']) === true && in_array($_GET['lang'], $allowed_languages) === true){$_SESSION['lang'] = $_GET['lang'];}elseif(isset($_SESSION['lang']) === false){//set default language if not selected$_SESSION['lang'] = 'eng';}include_once("includes/langs/".$_SESSION['lang'].".php"); and inside the langs folder there are
  18. Nice be with you everyone! I'm a beginner in CodeIgniter framework and I'm really interested to explore its classes, methods, properties, etc... May I know what is the usage of CI_Controller, load, helper, library, form,_validation, run & view ? I found these here... <?phpclass Form extends CI_Controller {function index(){ $this->load->helper(array('form', 'url')); $this->load->library('form_validation'); if ($this->form_validation->run() == FALSE) { $this->load->view('myform'); } else { $this->load->view('formsuccess'); }}}?> Thanks in a
  19. spluskhan

    Help Me Gyz

    suppose i have 10 products in my database Example:iphone 2 - iphone 3g - laptop i3 - laptop i7 - nokia n96 etcwhen i enter iphone in my search i see all records stored in database thats my prob!what i want ?suppose if i enter laptop i7 or laptop then i get result for laptop i7 or laptop here is my code.. <?php// Connects to your Databasemysql_connect("host.com", "userr", "pass") or die(mysql_error());mysql_select_db("products") or die(mysql_error()); [/font][/color][color=#000000][font=verdana, geneva, lucida,]$data = mysql_query("SELECT * FROM Products")or die(mysql_error());Print "<t
  20. How to access or call the controller from the view page on change action of a drop down here my sample view page <?php //TO DO require_once __SITE_PATH . '/libs/form_handler.php'; // require_once __SITE_PATH . '/app/views/settings/redirect.php'; ?> <?php if (!empty($pagefields)) { $combotype = $pagefields['combotype']; }else { $combotype = ''; } $form = new lscform(); $form->openForm(array('action' => '', 'name' => 'addSettingsForm')); $form->addInline('<br />'); $form->addLabel('
  21. HiI'm trying to add an option page with a colorpick to my wordpress site, but I can't make the INPUT background update when a color is selected. I added a STYLE but this will only update the background color when I save the changes. I'm pretty sure that it's in the code below or in the javascript file the error is: <input type="text" name="my-theme-options[color]" value="<?php echo esc_attr( $options['color'] ); ?>" style="background-color: <?php echo esc_attr( $options['color'] ); ?>" id="color" /> Here's my code: http://pastebin.com/YHUR6HMk Based on this tutorial: http
  22. I got a gig helping to get this site running on wordpress, and I cannot figure out why most pages redirect to the homepage. The htaccess doesn't have anything but wordpress stuff in it. This is the site:http://capecodwithinreach.com/ Notice, if you type anything after that, like the pages i am trying to create, it redirects home.http://capecodwithin...com/newpage.phphttp://capecodwithin...still-redirects However, things like:http://capecodwithin...om/wp-login.phpstill go to the right place. Why is this, and how can I stop it? I can't create any pages! Thanks!
  23. Hello internet. I am trying to place the local time in a php table using the code below - it executes but is not displaying the local time EST that I would like - it is still displaying GMT. What am I doing wrong here? Table is ViewColumn for date in mysql is TStampAuto Increment column is M_idgru references with a 3 which is the gru number where I send the persons comments to the Cmnts column //code$result = mysql_query("SELECT * FROM View WHERE gru='3' AND DATE_ADD(NOW(), INTERVAL 2 HOUR) > TStamp ORDER BY M_id DESC");echo "<table border='0'><tr><th>Name</th><t
  24. Hi all Expert, I am PHP learner. I want to do something by PHP. My process is below:I have created a form now need to do like this: I will input data by PHP in my database.(I can input only one field data but i need to input multiple field data). Then database's all data will show in other page in & there will show a EDIT button then anyone can update their data by selecting name or ID. Then it will show me welcome page. This process I want to do.
  25. Hello internet I am pulling out my hair trying to figure this one out. Below is the only code I have in the php file. What I am trying to do is delete the only line of data in the database table and replace it with a new line of data. The data will delete but it will not do the insert function to put the new data in. I started out trying an UPDATE function but that did not work either. Separately each set of <?php ?> code works if I put them in separate files but together they do not work. Why? How can I achieve the desired effect? Please help. <?php$con = mysql_connect("xxx","xxx","
×
×
  • Create New...