335 Posted Topics
We as a community of developers and deep thinkers should create a funtion that will decipher broken english. I understand this is a huge world and a global community of like minded individuals and IT professionals, but english is the majority written language in this comminuty. Having to read some … | |
Re: you dont have to use xampp.. you can use iis, or db2 you could get a db hosting account, or setup a small linux server with opensource software. | |
Re: Here is a brief run down. The only think you need to learn, and this comes from practice, is the syntax. Hope this helps. //Always have a doctype declaried. This tells the browser what you are displaying <!doctype html> //Html pages are wrapped in html tags "<html> = open tag … | |
Re: This should work. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) $1.php [L] </IfModule> | |
Re: You would need to use ajax calls for this. Its pretty easy with the jQuery Library [Docs](https://api.jquery.com/jQuery.ajax/) | |
| |
Re: This is not my slider, but I've used in a few projects before.. work good for just a very simple image slider. //html <ul id="html-slider"> <li><img src="" alt="" /></li> <li><img src="" alt="" /></li> <li><img src="" alt="" /></li> </ul> <div id="counter"></div> //CSS #html-slider { height:200px; list-style:none; margin:; padding:0; overflow:hidden; position:relative; } … | |
Re: yes, like diafol pointed out, change `$img[0] to $img[1]` | |
![]() | Re: I rewrote you code so I could read better, and the only thing I see is the missing file extention. <?php session_start(); require('connect/connect.php'); $name = $_SESSION['name']; ?> <table id="intro"> <tr> <td><strong>Welcome: <?php echo $_SESSION['name']; ?></strong></td> <td><strong>Your Login Id is: <?php echo $_SESSION['loginid']; ?></strong></td> </tr> </table> <p>A photo about me:</p> <?php … ![]() |
Not sure if this is me or the site, but everytime I search a topic or tag in search, I get nill to null results. I did a search today and got back 3 results that were usersnames created 1-3 year ago. Not very useful. | |
Re: Need to see your code, but you are basiclly doing a submission on reload. Maybe do some validation checking, or check if field exists in database and respond with error. | |
Re: I think you need to have AllowRemoteRPC enabled on all machines that will be using the service. | |
| |
![]() | Re: I usally break up the process when using ajax in CI. This example is a login form. The methods are placed in the login controller. Form View: public function index() { $this->load->viewA('login', $data); } Form Processor: public function login_processor() { $this->load->library('form_validation'); $this->form_validation->set_rules('username', 'username', 'required|trim|xss_clean'); $this->form_validation->set_rules('password','password','required|trim|xss_clean'); if($this->form_validation->run() == false){ $errors = … ![]() |
Re: Checkout jquery mobile. You can create mobile web page. [Link](http://jquerymobile.com/) | |
Re: Sounds like you move the php code out side of the php xampp. if the page is contact.php you need to have the file run through xampp or some sort of web server. You can not run php files on your desktop with out the help of php engine and … | |
Re: Include or required the config file where ever you need it. `require($_SERVER['DOCUMENT_ROOT'] . '/application/config/config.inc.php');` ![]() | |
| |
Re: Try changing you db connection to 127.0.0.1 | |
![]() | Re: I believe wordpress uses a similar process. Wordpress uses a function called nonces. numbers used once. They dynamicly insert this into form submission to make sure the post is valid. This could be something to research and find a solution. ![]() |
Re: Depending on how you build your mobile app. you can use html5 and javascript library like jquery mobile, you can built a native app. Native apps like iOS or andrioid have their own language. Mobile frameworks are becoming popular now, it makes it real easy to build an app. Sencha … | |
Re: Check out this function. Refactor you code a bit. [Link](http://www.daniweb.com/web-development/php/code/470958/send-email-function#post2064725) | |
Re: you can create a print css style sheet. Here is a good [artical](http://coding.smashingmagazine.com/2011/11/24/how-to-set-up-a-print-style-sheet/) | |
Re: Try a more updated way of mysqli. Example. $dbc = new mysqli('localhost', 'user', 'pass', 'demo'); $sql = "INSERT INTO table_name(``,``,``,``) VALUES('','','',''); $results = $dbc->query($sql); echo 'Total Rows: ' . $dbc->affected_rows; $results->free(); | |
Re: Can you display the code so we can see what is going on. ![]() | |
Re: you do not need database to create breadcrumbs. That's what you are looking for. you can accomplish this with the global $_SERVER variable. This might get you started: [link](http://phpro.org/classes/Breadcrumbs.html) | |
![]() | Re: I dont think its possible. I've tried before but not luck. I had to use $_GET param. ![]() |
Re: I have used CDYNE for sms app, works well. They have some policies that you might want to checkout befores signing up but thy do provide good service. | |
Re: you can start by wrapping you ul#nav in a li item and setting the display to none. | |
Re: I believe you sql statement is incorrect, and some of your logic maybe incorrect as well. I wrote out the code you may want to try. Using $_POST inputs need to be sanitized and valided before you insert in to database. You are leaving yourself open for errors and attacks … | |
Re: Is this a wordpress site you are using? If so try akismet, its installed by default. You can get a personal lic from the site or you can purchase a company lic. ![]() | |
Hello, My name is Gabriel, I live is Nothern California (Bay Area). I work as a freelance developer for multiple companies. I internal web apps, custom wordpress site's and do a lot of site maintenance. I feel I am a life long student when it comes to programming and I … | |
Re: What about using `htmlspecialchars_decode()` in your textarea [Docs](http://us3.php.net/manual/en/function.htmlspecialchars-decode.php) Example: <textarea rows="" cols="" name=""><?php echo htmlspecialchars_decode($data['content']); ?></textarea> | |
Re: What do you mean? Can you post code? if you want ajax to send json you need to tell ajax function to send json, if you want php to send json you tell php `json_encode();` or you can use `json_decode();` with jquery its pretty easy. var data = 'object':{'key'=>'value', 'key2' … ![]() | |
Re: I would agree use jquery library to make things simple. but the looks of you validation function why do you have '' backslash.. are you tring to escape something.. I think you might be confussed. Most browsers will except required="required" in the input elements now. This will check if the … | |
Re: Im pretty sure google sec policy will not allow you to interact without logging in. Not 100% sure.. You may find a work around use php & cURL | |
Re: Static websites are site that do not change much or have hard code content.. Dynamic sites are database driven websites or have dynamic varable content. Most dynamic sites have a content management system like wordpress, blogger. | |
Re: if you google free hosting you can find a lot.. not the best but they are out there. | |
Re: you need to use the `delete_option();` on a deactivation method register_deactivation_hook( __FILE__, 'remove_options' ); function remove_options() { delete_options('plugin_options'); } | |
Re: Here is one that came to my head when I seen the thread. "Twenty-twenty-twenty four hours to go I wanna be sedated" Ramones | |
Re: Hello John, Good luck with your studies. Daniweb is a great place to find answers that you need. Just remember people are always willing to help if you are willing to help yourself. | |
Re: Can you copy and page the code so we can have a look. T_String error is usually a missing delimiter or closing tag. I would need to see the code. | |
Re: Not sure if this will help, but here is a ipn I use for diffrent projects. I modified the code to insert your database query. if you run this it should insert your records.. or give you a log file that will show you what is going on. This is … | |
Re: diafol is correct. This would make your site scalable in the future. You can add a select category option in your upload form. Then create a trigger in your database that will insert the cat_id with the image_id in the imageCategory table. Or you could create a query like so: … | |
Re: Why not use a library like jquery or prototype.. You could accomplish the samething with few and robust inline code. ![]() |
The End.