83 Posted Topics
Re: In the same time when function above is executed, you can execute query on you DB table `SELECT CURTIME()` too and compare those two results. | |
![]() | Re: What do you want to echo? What type of data is **$var**? You have reference [here](http://codex.wordpress.org/Function_Reference/do_shortcode) of using do_shorcode() function. Try to var_dump() $var after assigning value to it to see what have you got. ![]() |
Re: Is enabled dll extension in your php.ini file? Can you check that? | |
Re: [Is this your solution](http://www.php.net/manual/en/ref.calendar.php#35392): <?php function jde_date_conv($jde_date) { $ct = substr($jde_date,0,1); $yr = substr($jde_date,1,2); $dy = substr($jde_date,3,3); if($ct == 0) $yr_pfx = 19; if($ct == 1) $yr_pfx = 20; $tlt_yr = $yr_pfx.$yr; $base_time = mktime(0,0,0,1,0,$tlt_yr); $unix_time = ($dy * 86400) + $base_time; return date("d-m-Y" , $unix_time); } ?> Edit: you … | |
Re: Sometimes localhost works as name (if database in on the same server where website files are too). Sometimes those are different addresses so you would type there something like n12server.dbsomething.com. It is best way to check it in control panel where mysql section is. If you have working Joomla site, … | |
Re: You can use bunch of php inbuilt functions. Here is an example of [preg_match()](http://www.php.net/manual/en/function.preg-match.php). if (preg_match('|@onlyalloweddomain.com$|', $registrantMailAddress; { // continue with registration } I found it on [sof](http://stackoverflow.com/questions/6416027/php-preg-match-for-ending-tag). | |
Re: Happy New Year you too. First part of question you can make answered with just output of array: $myArray = array('zero' => '0', 'first' => '1st', 'second' => '2nd', 'third' => '3rd'); print_r($myArray); Second part of question you can solve with function min but also depends of type of variables … | |
Re: When you type in google "js sort list on click" first link you have in results gives you [this solution](http://stackoverflow.com/questions/19822379/click-button-text-link-to-sort-list-item-li-alphabetically). You can check it for your issue. | |
Re: Wrap your while loop with <select></select> tags. | |
Re: Can you confirm there is a value in fourth column of members table for id that is set? ![]() | |
Re: Have you seen these two ([1](https://support.google.com/webmasters/answer/83105), [2](https://support.google.com/webmasters/answer/83106)) articles before doing so? | |
Re: Since you are going to fetch only one row from DB table regarding to requested id by method get, it would be more convenient to use [mysql_fetch_row()](http://www.php.net/manual/en/function.mysql-fetch-row.php#refsect1-function.mysql-fetch-row-examples) function. Also make check for your input, something like: $id = isset($_GET['id'] && (int)($_GET['id']) !== FALSE) ? $_GET['id'] : 'exit'; if ($id === … | |
| |
Re: Restart service (xampp) after any configuration changes. (Did help?) | |
Re: I see there many syntax errors. Mayby you could try this way: $catsql = "SELECT * FROM categories"; $catres = mysql_query($catsql); while($catrow = mysql_fetch_assoc($catres)){ echo "<a href=" . $config_basedir . "/products.php?id=" . $catrow['name'] . "</a>";} | |
Re: Firstly, you should use padding. Now it is unreadable. Example: <!DOCTYPE html> <html> <head> <style> li { display: inline; } a { padding-left: 25px; padding-right: 25px; } </style> </head> <body> <ul> <li> <a href="http://www.w3schools.com">Visit W3Schools.com!</a> </li> <li> <a href="http://www.w3schools.com">Visit W3Schools.com!</a> </li> <li> <a href="http://www.w3schools.com">Visit W3Schools.com!</a> </li> </ul> </body> </html> Secondly, … | |
Re: Please use [google translate](http://translate.google.com/). Half of words still doesn't exist. | |
Re: Use [sessions](http://us2.php.net/manual/en/reserved.variables.session.php). If send.php page is independent page (meaning not included by some other page), you have to start session (session_start() function) on the very first line of page code, and than initialize variables as session variables. // send.php //on the very begin of page should be started session with … ![]() | |
Re: What code is iused? p.s. Image is too small. | |
Re: Why do you have all these topics open: 1. this one, 2. [that one](http://www.daniweb.com/web-development/php/threads/467137/login-in-ci), 3. [that one](http://www.daniweb.com/web-development/php/threads/465972/login-in-ci), 4. [that one](http://www.daniweb.com/web-development/php/threads/464676/login-with-ci) ? | |
Re: What did OpenCart comunity say? Is that common error there? | |
Re: Maybe `header("location:user.php?u=".$_SESSION['username']);//single quotes` ![]() | |
Re: $records = $this->Site_model->get_records();//Capital 1. Try without using PHP shorthands in view, 2. Post autoload.php file | |
Re: What is possible gain with answers to those questions? Same thing is if you were asking: "When I type goolge.com, sometimes it redirects me to google, but sometimes if I type gollgge it redirects me to error server page. Explanation why is that, please." I think it is pretty irrelevant … | |
Re: Try [this](http://stackoverflow.com/questions/8263297/cannot-load-php5apache2-2-dll) one. | |
Re: If it is mysql driven application, there is `mysql_list_tables()` [function](http://www.php.net/manual/en/function.mysql-list-tables.php). When you check all table names and collect it with loop (probably should unset `information_schema`, `mysql` and `performance_schema`) you can use comparation part of code to check which table has more rows. | |
Re: You have conflict with your **$email** variable Here in code (even it ain't all as code lines as descripted), in line 5., you have: $email = $_GET['username']; and than in line 19., you have rewriten variable $email = $row['email']; Try to use different names for each of them. | |
Re: Your php is correct if job is done. However, that you are wanting is not PHP, but JS (eventually HTML/CSS). If you don't use twitter bootstrap or similar HTML/CSS framework, you can just take a look on their [modal window](http://getbootstrap.com/javascript/#modals-examples) to be sure what code to use. | |
Re: It is custom made file system, not CI native. You need to be sure if site folder is still there (in application). Also, if in application folder, as you say, there are just two folders site and admin, second require is not acceptable. Simply, there is no config file directly … | |
Re: > Yet, I still do not know in which file do I have to write the codes and how to? This is how your controller should look like: $this->load->library('email'); $this->email->from('your@example.com', 'Your Name'); $this->email->to('someone@example.com'); $this->email->cc('another@another-example.com'); $this->email->bcc('them@their-example.com'); $this->email->subject('Email Test'); $this->email->message('Testing the email class.'); if (!$this->email->send()) { $this->load->view('contact_view'); } else { $this->load->view('mail_successfully_sent_view'); } … | |
Re: You should use basic examples first and try finding relations to your requirement(s). Here is what we have in [basic example](http://ellislab.com/codeigniter/user-guide/libraries/table.html): $this->load->library('table'); $data = array( array('Name', 'Color', 'Size'), array('Fred', 'Blue', 'Small'), array('Mary', 'Red', 'Large'), array('John', 'Green', 'Medium') ); echo $this->table->generate($data); Notice that all of that is in controller. If you … | |
Re: include 'just_paths.php'; session_save_path($absolute_path.'sessions'); session_start(); ... if(isset($_SESSION['SESS_LAST_NAME'])) { echo 'welcome....'} ... Why don't you put session_start(); in very first line? | |
Re: Server of your database and server where your site is haven't to be on same machines. For approaching database you need DBserver (address/location), DBuser and DBpass. You can use it from any application i.e desktop application created in Delphi or VB. Someone with more experience than I have should say … |
The End.