Search Results

Showing results 1 to 38 of 38
Search took 0.00 seconds.
Search: Posts Made By: hooray ; Forum: PHP and child forums
Forum: PHP Sep 11th, 2009
Replies: 8
Views: 239
Posted By hooray
I have tried it on a new blank page, and it is working, but I cannot get it to work on the original page I was writing....I have even copied and pasted the text from the working one to the original...
Forum: PHP Sep 11th, 2009
Replies: 8
Views: 239
Posted By hooray
OK so that last one was from print_r() var_dump has given much better results:

var_dump($row['log_check']);
returns NULL
Forum: PHP Sep 11th, 2009
Replies: 8
Views: 239
Posted By hooray
Array
(
[0] =>
[log_check] =>
)
Forum: PHP Sep 11th, 2009
Replies: 8
Views: 239
Posted By hooray
That was what I thought originally, but that isn't working either. :-(
Forum: PHP Sep 11th, 2009
Replies: 8
Views: 239
Posted By hooray
I have been trying to use the function is_null to see if a database value is NULL. When I run this I am looking at the database and the value is definitely NULL, but it is not re-directing to the...
Forum: PHP Jan 25th, 2008
Replies: 1
Views: 570
Posted By hooray
I have a search box on my website, that allows users to look for items that have been posted by other users, I am using this code a the moment, but there is a problem with it
...
Forum: PHP Jan 24th, 2008
Replies: 3
Views: 795
Posted By hooray
good idea, thanks :)
Forum: PHP Jan 24th, 2008
Replies: 3
Views: 795
Posted By hooray
I forgot to mention before that user_ID is set to auto_increment in the USER table
Forum: PHP Jan 24th, 2008
Replies: 3
Views: 795
Posted By hooray
Ok im not sure wether this counts as a php question or a database question, but ill put it here anyway.

I have two fields in a database, one of which holds a foreign key that is a primary key from...
Forum: PHP Jan 24th, 2008
Replies: 6
Views: 6,395
Posted By hooray
You make a good point, but would that store 'checked' or 'unchecked' in the database??
Forum: PHP Jan 24th, 2008
Replies: 6
Views: 6,395
Posted By hooray
Hopefully this will give you an idea that you can adapt into your code, if not then ask again

<?php
if(isset($_POST['box01']))
{
$box01 = 1;
}
else
{
$box01=0;
Forum: PHP Jan 23rd, 2008
Replies: 18
Views: 1,382
Posted By hooray
Well now thats a unique idea......whoa....whoa....whoa....wait a minit isnt that the exact same thing nav33n just said :P

I also reccomend adding a user_id field to the table, it makes things a...
Forum: PHP Jan 22nd, 2008
Replies: 7
Views: 4,852
Posted By hooray
Im going to ask a few more questions just to make sure i understand.

Where does the query come from (eg: the drop down box, a different drop down box, a text box)

Does the query come from the...
Forum: PHP Jan 21st, 2008
Replies: 2
Views: 1,080
Posted By hooray
Forum: PHP Jan 21st, 2008
Replies: 2
Views: 1,080
Posted By hooray
Hi guys, i am writing this piece of code, it is building some javascript. I have got it working exactly the way I would like, apart from in the while loop, I would like to reomve the comma on the...
Forum: PHP Jan 21st, 2008
Replies: 23
Views: 13,112
Posted By hooray
you say you have problems sending it to multiple addresses, but its fine for one. Maybe theres a format error, like you didnt put a , after each email or wrap the emails in "":

To:...
Forum: PHP Jan 21st, 2008
Replies: 7
Views: 6,577
Posted By hooray
you are most welcome :)
Forum: PHP Jan 21st, 2008
Replies: 7
Views: 4,852
Posted By hooray
Ok for this example i have put the option building into the code from the database


<?php
$conn=mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("testbase") or...
Forum: PHP Jan 21st, 2008
Replies: 7
Views: 4,852
Posted By hooray
Ok so are you saying that you already have the values of the options in HTML, or are the values selected from the database??
Forum: PHP Jan 21st, 2008
Replies: 7
Views: 6,577
Posted By hooray
yes, but you would have to do that in php as $aid is a php variable, so it would be:


<?php
echo "<a href='template.php?aid=" . $aid . "'>Read more...</a>";
?>


OR
Forum: PHP Jan 21st, 2008
Replies: 7
Views: 6,577
Posted By hooray
This is a very simple example, but you can build on it:

I am sure you know how get works, but ill put it here anyway, this link sets $_GET['article'] to 1001 on my localhost: ...
Forum: PHP Jan 21st, 2008
Replies: 7
Views: 4,852
Posted By hooray
I do not entirley understand the question, do you mean that you want to have some set variables, then one of them from a database, or do you want all of the options to be from the database??

Here...
Forum: PHP Jan 21st, 2008
Replies: 3
Views: 615
Posted By hooray
Well I would suggest that you put the first name and last name into separate fields. I think it is because it doesnt post spaces or anything after them. Perhaps you could have an underscore if you...
Forum: PHP Jan 19th, 2008
Replies: 9
Views: 824
Posted By hooray
try creating a new table in the database, and putting the data there, just for a test see if that works
Forum: PHP Jan 19th, 2008
Replies: 9
Views: 824
Posted By hooray
Well so am I, this sounds very strange. are you running it on your own pc or on a free webhost??
Forum: PHP Jan 19th, 2008
Replies: 9
Views: 824
Posted By hooray
try deleting that first entry into the table, and submitting the form again to see if it will enter it once again.
Forum: PHP Jan 19th, 2008
Replies: 9
Views: 824
Posted By hooray
You say you get one record added, by this do you mean that your form worked once, then just stopped afterwards??
Forum: PHP Jan 19th, 2008
Replies: 9
Views: 824
Posted By hooray
there is nothing wrong with your code so far as i can see, I have just copied it onto my computer and it works perfectly well. maybe you have a server problem
Forum: PHP Jan 19th, 2008
Replies: 4
Views: 562
Posted By hooray
no problem, i only found this out yesterday actually, I had the exact same problem. lol
Forum: PHP Jan 19th, 2008
Replies: 5
Views: 1,311
Posted By hooray
I dont know if it is as simple as this, but you have left out a " at the end of your $sql = part before the ;
Forum: PHP Jan 19th, 2008
Replies: 4
Views: 562
Posted By hooray
sometimes the location:header part has a problem, since it is supposed to be set before any html. the way around this is to put <?php ob_start(); ?> at the very top of the page, before the <html> tag...
Forum: PHP Jan 18th, 2008
Replies: 3
Views: 2,048
Posted By hooray
How would I open port 80 on my computer, would it be done inside norton or from windows??
Forum: PHP Jan 18th, 2008
Replies: 6
Views: 875
Posted By hooray
ok thanks again, what do you class as a lot of data, because i would guess the whole page has around 80 - 90 lines of code.

I have changed it so that the ob_start() and ob_flush() are only wrapped...
Forum: PHP Jan 18th, 2008
Replies: 6
Views: 875
Posted By hooray
Thankyou, this is a very good explanation as this code is near the bottom of the page. I have fixed the problem using ob_start() and ob_flush(), that allows me to keep everything the same.
Forum: PHP Jan 17th, 2008
Replies: 3
Views: 2,048
Posted By hooray
Hi everybody,

I am new to using XAMPP to locally test my php files (I previousley just uploaded them directly to a free hosting site). I was wondering if anybody knew how other people can view...
Forum: PHP Jan 17th, 2008
Replies: 10
Views: 4,100
Posted By hooray
I use dreamweaver for all coding: html, css, javascript, php, sql and i use XAMPP for local testing. i have found it to be very easy to use, with the exception that i have to have 2 command windows...
Forum: PHP Jan 17th, 2008
Replies: 8
Solved: validation
Views: 933
Posted By hooray
I dont mean to say that your method doesnt work, but if you use this javascript function, the user can still copy and paste letters into the box. I havent tested MitkOK's code, but i think that would...
Forum: PHP Jan 17th, 2008
Replies: 6
Views: 875
Posted By hooray
OK, so i have written a website that has been hosted online with a free hosting company for some time, but now i have limited access to the internet, so i have started using XAMPP. The code that once...
Showing results 1 to 38 of 38

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC