83 Posted Topics

Member Avatar for game4tress

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.

Member Avatar for Tpojka
0
301
Member Avatar for mehnihma

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.

Member Avatar for mehnihma
0
340
Member Avatar for mcronline
Member Avatar for Tpojka
0
211
Member Avatar for rpv_sen

[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 …

Member Avatar for rpv_sen
0
187
Member Avatar for stokie-rich

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, …

Member Avatar for stokie-rich
0
344
Member Avatar for ignnniter

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).

Member Avatar for Tpojka
0
5K
Member Avatar for showman13

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 …

Member Avatar for showman13
0
228
Member Avatar for noel9

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.

Member Avatar for JorgeM
0
125
Member Avatar for twiggy145
Member Avatar for CraigWinder91

Can you confirm there is a value in fourth column of members table for id that is set?

Member Avatar for diafol
0
182
Member Avatar for FaheemSajid

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?

Member Avatar for FaheemSajid
0
396
Member Avatar for Iikeloa

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 === …

Member Avatar for cereal
0
195
Member Avatar for hallianonline
Member Avatar for davy_yg
Member Avatar for elibyy
0
210
Member Avatar for joseph.lyons.754

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>";}

Member Avatar for Tpojka
0
151
Member Avatar for davy_yg

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, …

Member Avatar for Tpojka
0
134
Member Avatar for Mangesh1612

Please use [google translate](http://translate.google.com/). Half of words still doesn't exist.

Member Avatar for Tpojka
0
64
Member Avatar for ultmt.punisher

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 …

Member Avatar for diafol
0
294
Member Avatar for Indians
Member Avatar for davy_yg

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) ?

Member Avatar for cereal
0
517
Member Avatar for Kentopencart
Member Avatar for Dani
0
116
Member Avatar for lillorme
Member Avatar for diafol
0
264
Member Avatar for davy_yg

$records = $this->Site_model->get_records();//Capital 1. Try without using PHP shorthands in view, 2. Post autoload.php file

Member Avatar for Tpojka
0
386
Member Avatar for strongard63

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 …

Member Avatar for Tpojka
-1
229
Member Avatar for Victorabm
Member Avatar for Tpojka
0
375
Member Avatar for iv_jo

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.

Member Avatar for Tpojka
0
280
Member Avatar for lillorme

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.

Member Avatar for lillorme
0
453
Member Avatar for beachy82

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.

Member Avatar for Tpojka
0
232
Member Avatar for davy_yg

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 …

Member Avatar for GliderPilot
0
582
Member Avatar for davy_yg

> 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'); } …

Member Avatar for davy_yg
0
330
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
249
Member Avatar for dourvas

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?

Member Avatar for Tpojka
0
174
Member Avatar for rotten69

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 …

Member Avatar for rotten69
0
240

The End.