335 Posted Topics

Member Avatar for RonKevinT.Manuela

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 …

Member Avatar for gabrielcastillo
0
87
Member Avatar for jmichae3

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 …

Member Avatar for Dani
0
378
Member Avatar for nufftalon
Member Avatar for Borderline

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 …

Member Avatar for gabrielcastillo
0
248
Member Avatar for Gioacchino

Try here: [Click Here](https://code.tutsplus.com/tutorials/using-polymer-to-create-web-components--cms-20475)

Member Avatar for gabrielcastillo
0
59
Member Avatar for hell hansen

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 …

Member Avatar for gabrielcastillo
0
103
Member Avatar for mattster

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.

Member Avatar for mattster
0
335
Member Avatar for RonKevinT.Manuela

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.

Member Avatar for RonKevinT.Manuela
0
108
Member Avatar for malatamil

Try to print our error from DB to see what you get. `printf("Error: %s.\n", mysqli_stmt_error($qryStr));`

Member Avatar for gabrielcastillo
0
122
Member Avatar for Keyra Lee

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

Member Avatar for Casperjames
0
291
Member Avatar for kaakka

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 …

Member Avatar for mattster
-2
265
Member Avatar for Divyeshthakar

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.

Member Avatar for gabrielcastillo
0
48
Member Avatar for chaitu11

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

Member Avatar for chaitu11
0
5K
Member Avatar for mwnt2014

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 …

Member Avatar for mwnt2014
0
256
Member Avatar for MrDavo

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.

Member Avatar for NetJunkie
0
283
Member Avatar for iConqueror

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 }

Member Avatar for diafol
0
277
Member Avatar for kingston22
Member Avatar for guyinpv

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.

Member Avatar for guyinpv
0
283
Member Avatar for centenond
Member Avatar for centenond
0
140
Member Avatar for hriti

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?

Member Avatar for jeffey
0
130
Member Avatar for berserk

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

Member Avatar for berserk
0
173
Member Avatar for davy_yg
Re: form

You need to change the action value of you form. `action="<?php $_SERVER['PHP_SELF']; ?>/registration2.php"`

Member Avatar for cereal
0
175
Member Avatar for moinwaseer

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 …

Member Avatar for gabrielcastillo
0
224
Member Avatar for mexabet

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.

Member Avatar for mexabet
0
721
Member Avatar for Hegneous

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 …

Member Avatar for Hegneous
0
223
Member Avatar for sehrish naimat

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.

Member Avatar for sehrish naimat
0
190
Member Avatar for 9tontruck
Member Avatar for kategirdlelock

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 …

Member Avatar for redalert8
0
447
Member Avatar for Islamis

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.

Member Avatar for mesh457
0
186
Member Avatar for Violet_82

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 …

Member Avatar for charlesbecon
0
201
Member Avatar for gabrielcastillo

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

Member Avatar for Dani
0
233
Member Avatar for palanisvasam

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

Member Avatar for <M/>
-3
173
Member Avatar for sagisgirl
Member Avatar for mpike

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

Member Avatar for iamthwee
0
345
Member Avatar for UltimateJacob
Member Avatar for Tinnin

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.

Member Avatar for Taywin
0
178
Member Avatar for davy_yg

Check out cdyne, they have a very easy to use API [link](http://www.cdyne.com/api/phone/sms/)

Member Avatar for szurcsii
1
245
Member Avatar for mwnt2014
Member Avatar for ravi142
0
303
Member Avatar for coreyavis

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 …

Member Avatar for Airshow
1
845
Member Avatar for jay_el_em

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 …

Member Avatar for ckide
0
164
Member Avatar for Dev7Cyber2012

What are you trying to accomplish? Not sure I understand what you mean? you want your menu to scroll with the page using CSS?

Member Avatar for diafol
0
289
Member Avatar for rajendher

htaccess is the best way to ago. Try: `AddType application/x-httpd-php .html` in your htaccess file.

Member Avatar for pritaeas
0
265
Member Avatar for sabin_silwal
Member Avatar for jpizzolato

Try rename function [link](http://php.net/rename) <?php rename("/tmp/tmp_file.php", "/home/user/login/docs/my_file.php"); ?>

Member Avatar for sikander123
0
299
Member Avatar for jalferez1
Member Avatar for RascelleGrepo

What kind of code are you working with? By release date do you mean when the student submits the document to the online requisition?

Member Avatar for cereal
0
655
Member Avatar for ebanbury

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! }

Member Avatar for cereal
0
191
Member Avatar for rpv_sen
Member Avatar for Iikeloa
Member Avatar for Iikeloa
0
285
Member Avatar for nufftalon

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.

Member Avatar for Mike_danvers
0
343

The End.