• Member Avatar for cereal
    cereal

    Replied To a Post in insert comma seperated array in mysql

    Hi, check if this thread helps with your issue: * http://www.daniweb.com/web-development/databases/mysql/threads/473216/alternative-way-of-an-insert-with-where-clause
  • Member Avatar for cereal
    cereal

    Began Watching 301 redirect that preserves POST data

    I've recently switched our login mechanism, and our API, over to SSL (https:// vs http://) I am using the following: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} danipad [NC,OR] RewriteCond %{REQUEST_URI} api …
  • Member Avatar for cereal
    cereal

    Replied To a Post in registration using php

    No problem. Assign the `name` attribute to the `select` tag, for example: <select name="fruits"> So, when the form is submitted you can check the value of `$_POST['fruits']`. Now, if you …
  • Member Avatar for cereal
    cereal

    Replied To a Post in cannot in passing the variable from one method to the other in codeigniter

    Hello, can you explain the issue? Currently I see few errors in the first method, as you are not declaring the variables checked by the `IF` statement. Also the second …
  • Member Avatar for cereal
    cereal

    Began Watching PHP Rss Reader

    Hello friends, this code/snippet is nothing special, just a simple rss reader class written in PHP. Many times in my projects I use this script to get an RSS feed …
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP 5.3 installation windows xp apache 2.0

    I'm glad you've solved, bye! :)
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP 5.3 installation windows xp apache 2.0

    Download this: * http://windows.php.net/downloads/qa/test/php-5.3.2-debug-Win32-VC6-x86.zip Inside you will find the **php5apache2.dll** file, hope it works! But if you can, I suggest you to upgrade to Apache 2.2. As you have seen …
  • Member Avatar for cereal
    cereal

    Replied To a Post in registration using php

    The error happens because of: $query = mysql_query( "SELECT * FROM `users` WHERE `user` = '{$uname}'",$con ); You're using `$uname` instead of `$user` and for this reason `mysql_query()` returns boolean …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Remotely destroy session

    An alternative to avoid the extra query, is to inject the user session with a variable that will log out the user as soon he performs an action. So, when …
  • Member Avatar for cereal
    cereal

    Replied To a Post in registration using php

    It happens because you have to use the php tags: <form action="<?php echo $_SERVER['PHP_SELF']"; ?> class="form-horizontal" method="post"> Also `74` of the same file you have to use the closing PHP …
  • Member Avatar for cereal
    cereal

    Replied To a Post in registration using php

    Hi, this: $zip = $_['zip']; Must be: $zip = $_POST['zip']; Then, if you still get an error, post the details of the error, otherwise it becomes difficult to help.
  • Member Avatar for cereal
    cereal

    Replied To a Post in Link a Title

    Hi, I'm not sure this is the best solution, but if you open the file **jquery.poptrox.js**, at line `253` you will find: _caption .on('update', function(e, s) { if (!s || …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Remove vsftpd on Kali linux

    I don't have other ideas, try follow the suggestions of this post: * http://www.cyberciti.biz/tips/troubleshooting-debian-ubuntu-package-upgrades-removals.html The file to check it should be `/var/lib/dpkg/info/vsftpd.postinst` and in practice you have to check if …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Input Gallery

    The `unable to select dataid` error is probably in the included file: include('../includes/koneksi.php'); Regarding line `137` this problem is caused by `end()` because the first argument must be an array: …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Remove vsftpd on Kali linux

    Ok, then check the dpkg log: sudo less /var/log/dpkg.log Go to the end of the file, you should find more information about the error. Or try to remove the package …
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP 5.3 installation windows xp apache 2.0

    Ok, regarding the dependency issue it could be, if Apache is 2.2 and the library is for Apache 2.0. In this case you need php5apache2_2.dll.
  • Member Avatar for cereal
    cereal

    Replied To a Post in Passing checkbox checked value

    A suggestion: this does not solve the problem if the client disables javascript. The suggestion of **network18** is correct, in your server side you should check if the index key …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Remove vsftpd on Kali linux

    Hi, what error do you get when you try the above commands? And have you tried to stop the service? For example: sudo service vsftpd stop sudo apt-get remove vsftpd
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP 5.3 installation windows xp apache 2.0

    Ok, the `LoadModule` directive does not require opening and closing tags as `<` `/>`. So, it should not be: <LoadModule php5_module "C:/SERVER/PHP/ext/php5apache2.dll" /> But simply: LoadModule php5_module "C:/SERVER/PHP/ext/php5apache2.dll" You can …
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP 5.3 installation windows xp apache 2.0

    Try to start Apache with the `-t` argument, this will: > Run syntax tests for configuration files only. The program immediately exits after these syntax parsing tests with either a …
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP 5.3 installation windows xp apache 2.0

    Hi, check the Apache error log, you should find an extended error message, if you have doubts post the errors here.
  • Member Avatar for cereal
    cereal

    Replied To a Post in Retreiving all tables in postgresql

    Hi, from the **psql** client you can use `\dt`, it will list something like this: \dt List of relations Schema | Name | Type | Owner --------+-----------+-------+---------- public | cities …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    Add an **else** statement to stop the script basing on the result of the filter. Here you can redirect it to your previous page or to a specific error page. …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    **Use this:** <?php $_POST = array_map('trim', $_POST); if( filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) !== FALSE) { $email = $_POST['email']; } $name = $_POST['name']; $message = $_POST['message']; $formcontent="From: $name \n Message: $message"; $recipient = …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    Ok, I'm terrible sorry, my further mistake, not two ending parentheses but one: <?php $_POST = trim($_POST); if( filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) !== FALSE) { $email = $_POST['email']; } $name = $_POST['name']; …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    Sorry that's my mistake, in my first example I didn't close the `IF` statement: if( filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) !== FALSE) It should be: if( filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) !== FALSE)) With two ending …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    > I have no idea why the "Send Message" thing is white and not green, like it should be. It seems to have swapped itself, when I hover over it, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Email Validation Broken; Accepts .cop as Valid

    In addition: the `eregi()` function is weak, an attacker can submit extra code by using a **null byte** character. For example: <?php $email = $_GET['email']; if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) { echo "<strong>$email</strong> …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    Josh suggestion is syntactically correct but you cannot include javascript in the recipient value, i.e. in the first argument of the `mail()` function. The above should be: <?php $name = …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    Hi, check my previous updated answer, i.e. remove the Javascript code from the PHP block and it should work fine.
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    Can you show the updated code? Currently it seems that the javascript code is still in the PHP block, as example: <?php $recipient = "jadon.mayhew@me.com"; /* <![CDATA[ */ (function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})(); …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Contact Form Not Working

    Hi, you cannot submit javascript as recipient, so this: $recipient = "jadon.mayhew@me.com<script type="text/javascript"> /* <![CDATA[ */ (function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})(); /* ]]> */ </script>"; must be: $recipient = "jadon.mayhew@me.com"; check the available …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Confused how to produce php error

    Try with the **DateTime** class: <?php $minute = 45; $second = 01; # value to test $test = new DateTime(); $time = $test->setTime(0, $minute, $second); # match this $minDate = …
  • Member Avatar for cereal
    cereal

    Replied To a Post in display and insert expected date of release on submit PHP MYSQL

    > So another problem, when the student request on tuesday, the expected date of release is next tuesday. etc. So, a delay of 4 working days? In MySQL you can …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Input Gallery

    > Duplicate entry '0' for key 'post_ID' it happens because `post_ID` is probably a **unique** key, in the `static_page` table, but not the primary key, otherwise the message would be …
  • Member Avatar for cereal
    cereal

    Replied To a Post in sql query prblem

    Hi, use the `coalesce()` function: select id, coalesce(c1, 0) + coalesce(c2, 0) + coalesce(c3, 0) ... In practice, if the value of `cN` is null it will output `0`. Docs: …
  • Member Avatar for cereal
    cereal

    Gave Reputation to Suzie999 in Help!!!!!!!!!!!

    I did it. What next?
  • Member Avatar for cereal
    cereal

    Began Watching High availability for server backed mobile Apps

    We'll be launching a mobile app (iOS, Android) soon. App is native with a local SQLite database. App is supposed to do scheduled database sync with a live online MySQL …
  • Member Avatar for cereal
    cereal

    Began Watching Database Transactions from one username to another?

    How do i transfer funds from one account to another in the same table? ![e88a3b19f85ebc5dd5a5d0e47b867200](/attachments/large/4/e88a3b19f85ebc5dd5a5d0e47b867200.jpg "e88a3b19f85ebc5dd5a5d0e47b867200") Say for example i want to transfer funds from UserID 1111101 to UserID 1111103. …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Simple XLM

    You are missing the dot after `echo "Name:"`, the same happens for each line. So starting from the top, the first should be: echo "Name: " . $xml->name . "\n"; …
  • Member Avatar for cereal
    cereal

    Replied To a Post in field validation for uploading pdf & docs

    That is good to make sure there is no double extension, but I can still include javascript in the file, for example I create a text file and save it …
  • Member Avatar for cereal
    cereal

    Replied To a Post in MySQL Compare 2 tables for same string

    So, you want to compare the string that you want to insert into **table B** against the values in **table A**, if they match then the insert should go fine, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in 6N Rugby Championship 2014

    That drop of Duncan Weir at the last minute still hurts here... but it was well deserved. I can already see the whitewash coming to us. > England and Ireland …
  • Member Avatar for cereal
    cereal

    Replied To a Post in compare value in one array

    Ok, I assume this is created by an SQL query: $pacient[$val['pacientid']][] = $val['f_name']." ".$val['s_name']; and that the `pacientid` is the same for the surnames you want to compare, so this …
  • Member Avatar for cereal
    cereal

    Replied To a Post in field validation for uploading pdf & docs

    Hi! Try to print the mime type received by the `$_FILES` array. Sometimes the `.doc` files are not correctly detected. So try: print_r($_FILES['pdf_main']['type']); You can also use the Finfo library …
  • Member Avatar for cereal
    cereal

    Replied To a Post in compare value in one array

    Hi, do you want to compare this: array(2) { [0]=> string(16) "anna lukaĊĦevica" [1]=> string(17) "anna lukashevicha" } between themselves, i.e. `array[0] != array[1]`, or against the other resulting arrays? …
  • Member Avatar for cereal
    cereal

    Replied To a Post in MySQL Compare 2 tables for same string

    Hi, please can you explain better the relations between these three tables and the conditions that you want to use to insert the data? Right now I do not understand …
  • Member Avatar for cereal
    cereal

    Replied To a Post in caching in chrome (and other browsers)

    Please reply by post, not by vote. >Do browsers cache scripts and emails? If for script you refer to the PHP script generating the email then no, because PHP will …
  • Member Avatar for cereal
    cereal

    Replied To a Post in session_destroy

    Yes, if you browse a page without `session_start()` you cannot load the related data that you want to destroy. Check the example: http://www.php.net/session_destroy
  • Member Avatar for cereal
    cereal

    Replied To a Post in caching in chrome (and other browsers)

    Hi, maybe your problem is related to the recently privacy changes made by Gmail. They are now caching HTML emails and so, the included images are not pulled directly from …

The End.