335 Posted Topics
Re: That depends... what are you working with? Wordpress? To answer your question, yes you can because, we don't know enough about what you are doing to tell you no.. but if you have control over the code and you can write to the page that displays the news and read … | |
![]() | Re: My understanding of DaniWeb, is this is a community forum to give help and get help. Not to make money or steal someone else's code, but to help myself and help others. I have spent lot of time reading someone else's code to better understand how it works. If I … |
Re: Do you have a link or can you show the code? | |
![]() | Re: Do you have a demo site we can look at? For your font and text style you can create your own custom-txt.css file and load into wp head Load into your functions file. Creat a new css file custom-txt.css or what ever you want then add the rules for your … |
Re: Try here: [Click Here](https://code.tutsplus.com/tutorials/using-polymer-to-create-web-components--cms-20475) | |
Re: I see you have a table for "Photo". if you would like to upload a photo to your database, your have a couple of options. A. You can upload a file and store the image path into the "photo" table. B. You can upload a file and convert to base64 … | |
Re: Codeigniter is a great framework and is very friendly. I would recommend starting off on codeigniter than cakePHP if you are just getting into php frameworks. | |
Re: The session works for your entire domain. So if you have a root folder and sub-folders, your session will work as a global. The session is tied to the UID for each visitor. | |
Re: Try to print our error from DB to see what you get. `printf("Error: %s.\n", mysqli_stmt_error($qryStr));` | |
Re: you can concatenate the two values with php Example: $val1 = $_POST['NF1']; $val2 = $_POST['Y2']; $total_value = $val1 . $val2; $sql = "INSERT INTO table SET column = '$total_value'"; | |
Re: You can find what you need in the documentation. Here is a small example. I haven't tested out but will give you some good direction. //Form processing if(isset($_POST['submit'])){ $upload_folder = 'uploads/'; if(isset($_POST['new_file_name'])){ $file_path = $upload_folder . $_POST['new_file_name']; }else{ $file_path = $upload_folder . basename($_FILES['file']['name']); } if( move_uploaded_file($_FILES['file']['tmp_name'], $file_path)){ echo 'File has … | |
Re: Are you talking about the theme navigation? If so, what theme are you using? You may be able to handle this with jquery or javascript. | |
Re: Something like this might work. <?php foreach($row as $reg): ?> <select name="sex" id="opt2"> <option value="">select</option> <option value="Male" <?php if($reg['sex'] == 'Male'){echo 'selected="selected"';}?>>Male</option> <option value="Female" <?php if($reg['sex'] == 'Female'){echo 'selected="selected"';}?>>Female</option> </select> <?php endforeach; ?> | |
Re: Where do you want to place the div? Are you trying to inject the div within the content? If so, you can make a shortcode for this. If you want to inject the div into you could write a plugin with a function to add filter to the content This … | |
Re: You could change the width of you table, or image. This is because you are using tables cells to display images and not just data. I would use div's and css instead. User Firebug to test changes then apply to your code. | |
Re: for security reasons you should check if your id post is numeric. `if( is_numeric($id) )` This will only allow numeric values to hit your database query. Also, use `mysql_affected_rows()` to check if your query has ran. if(mysql_affected_rows() > 0){ //Run Success Notice }else{ //Run Failed Notice } ![]() | |
Re: Paypal and stripe are easy ways to except payments. If you do not want fees.. You have checks or monyorder made availble. No matter what, fees are always going to be part of the process. | |
Re: you could try setting a max-height or min-height to your parent div. | |
Re: What are the fields of the database? Are you using any kind of timestamp or date field in your database? Can we see some code? | |
Re: How are you posting to the script? You need to upload the file and move the file to upload dir or temp dir.. The add the path and file name to fgetcsv. fgetcsv('path/filename.csv') | |
Re: You need to change the action value of you form. `action="<?php $_SERVER['PHP_SELF']; ?>/registration2.php"` | |
Re: Here is a simple idea of what I can get from your statement/question. This is assuming you are using PHP. 1. Create a form 2. Create button inside form 3. When button is clicked use ajax to submit request to database 4. Pull data from database and send back to … | |
Re: Undefined index usally mean the name attr is incorrect or missing when sending post. If not, you could try if(isset($_FILE['fileimage']['name']){ // code } This will chekc if post has fileimage set apon submission. | |
Re: You need to set a timestamp of when to start and a then a cron job to check when 30 days have be reached.. When the cron job runs, it will update code to set the database update credit. You would most likly do this in php if you are … | |
Re: Your code words for me.. maybe because you have a space in your database name. Can you post the full form script. So we can see what you are doing in the form. | |
Re: Can you post the content of your htaccess file | |
Re: Controlling access to pages requires sessions and access control. php sessions are used to store data per user. Access control is how php uses session to access data.. so.. Here is how a simple login controlled page would be. Content Protected Page(this is placed in the header of the files … | |
Re: Can you please read your question again and try to rephrase what you are asking. If you are looking for a tool that will generate html pages, try and google wysiwyg editor for html. | |
Re: This one is a tricky one... took me a while to figure out. I tested with ie7, ie8. IE9 gets alil dark so you might want to change the condition to say if ie8 or below. Add a class to your #full_page_overlay div Example: `<div id="full_page_overlay" class="transparent">` Then add this … | |
For some reason, my posts are not showing up on the thread I commented on. This has happend twice I believe. Am I getting my posts removed for bad content or something? Here is one of the threads in question. http://www.daniweb.com/web-development/php/threads/472735/get-data-from-database-and-display-result-in-a-table | |
Re: LOL.. What are you asking for? Are you using a framework, application, or some CMS? You can always change the font color or text color with CSS for example: `body {color:red;}` | |
Re: Try mysql_real_escape_string ![]() | |
Re: One way of going about this would be to loop your checkbox array and send an email for each item in the array. This is not fully working code, but it will give you the idea of how to go about sending emails to each email in the checkbox array. … ![]() | |
Re: set your section to clear both floating divs. `section {clear:both}` | |
Re: I tested the code you provided and seems you are missing a double quote in the parent div`<div id="page">` Other then that, I did see much going on. | |
Re: Check out cdyne, they have a very easy to use API [link](http://www.cdyne.com/api/phone/sms/) | |
Re: What plugin are you using? You may have a issue with the HTACCESS file. | |
Re: I may be wrong but in line 2 I would think the && would be better the ||. If to_name is set and to_email is not set, the result would still be true. Meaning one or the other has to be true.. With the && operator, to_name and to_email are … | |
Re: Well he might be able to do this with jquery.. It wouldn't be the best thing to do but for instance here could, Create html page with a list of all the images resized to thumbnails Create a click function to hide all elements on page and display the fullsize … | |
Re: What are you trying to accomplish? Not sure I understand what you mean? you want your menu to scroll with the page using CSS? ![]() | |
Re: htaccess is the best way to ago. Try: `AddType application/x-httpd-php .html` in your htaccess file. | |
Re: Try rename function [link](http://php.net/rename) <?php rename("/tmp/tmp_file.php", "/home/user/login/docs/my_file.php"); ?> | |
Re: What kind of code are you working with? By release date do you mean when the student submits the document to the online requisition? | |
Re: What about checking the extention of the file being uploaded? Like so: $file = $_FILES['upload_file']['name']; $allowed = array('.pdf','.docx','.doc'); $ext = substr($file, strpos($file, '.'), strlen($file)-1); if(!in_array($ext, $allowed)){ echo 'File type not allowed'; }else{ //Run your code here! } | |
Re: Any reason not using javascript library? | |
Re: What does the test.php and testme.php look like? Can you show the code? | |
Re: I would say [hostgator](http://www.hostgator.com/), or [arvixe](http://www.arvixe.com/) Excellent service, lots of control, fast setup. Good prices. I have been using hostgator for 7yrs, and arvixe for 3yrs. Customer support is great. |
The End.