-
Posts
2,527 -
Joined
-
Last visited
Posts posted by DeanWhitehouse
-
-
dunno if it will work but
<?php $file = file_get_contents("Settings.conf"); $file = nl2br($file); echo $file; ?>
-
Or something to with the values in the db, have they changed?
-
Maybe use ini_get()
To find out if it is in the php.ini file
Even better
-
round()?
That might not work, as it is all designed to work with decimals mainly.
Maybe look through
-
Say Please
<?php for($i=5; $i<=50; $i+5) { echo '<option value="' . $i . '">' . $i . '</option>'; } ?>
Should work, if not then do
<?php $i = 5; while($i <= 50) { echo '<option value="' . $i . '">' . $i . '</option>'; $i += 5; } ?>
-
If you only want it to display the next sunday you can either limit the loop to 1 or not use a loop and do it manually
-
i am asking how do i add the same value in the "gameno" feild for each form filled in
each form filled in will represent one game
Run one query, or change your database set up. look into db normalisation
-
can it display the current month where January is? i cant get this to work
Huh?
-
We are rebuilding our old site and have made a large number of changes.
For this site we are aiming for a simple user interface.
We are trying to stay simple for the users benefit.
The site is not fully completed and will most likely undergo changes, some based from your criticism.
Thanks,
Blade
-
We need people to help test new features when we implement them.
More information here
-
Put session start at the top of the first script?
-
Ok, well it could be something to do with sprint_f
(i have never used it like that)
This is how i would do it
$insertSQL ="INSERT INTO response (request_ID, questions_ID, options_ID, details, customer_ID) VALUES ('".mysql_real_escape_string($_POST['rid'])."', '".$var."', '".$value."','".$value."','".mysql_real_escape_string($_POST['cid'])."')";
Also check the actual db to see if it has been inserted.
-
SELECT bandname,songname FROM table WHERE bandname LIKE '%".$query."%' OR songname LIKE '%".$query."%'"
Periods??
If you mean the column names (bandname, songname) this is just the columns of the table you will search and retrieve although you can use * for all of the columns.
The quotes
'%".$var."%'
Are not needed, i just like doing them as it is easier to read (when variables stand out) in my opinion but you can do
'%$var%'
-
Un suppress errors on fopen to see if their are any
$fp = @fopen($filename, 'rb');
change to
$fp = fopen($filename, 'rb');
-
Would look like
SELECT bandname,songname FROM table WHERE bandname LIKE '%".$query."%' OR songname LIKE '%".$query."%'"
And i don't think if someone searched the strokes it will look for the on it's own, i think it searches for the whole string.
-
The code you shown us wouldn't print anything out unless their was a problem with the query?
Or do you mean that nothing is inserted into the db
-
Huh?
When they search for a word using LIKE %$searchword% will search the selected db rows for any word that is or contains that word.
-
Would it not be easier to do
$array = file_get_contents("./text.txt");
$array = explode(",",$array);
Not 100% on the above though
-
It should be ok, but if you want to turn your site into an image hosting company like imageshack(which is the impression i am getting) then eventually you will need to get a dedicated server due to high load.
But all depends on how much traffic you are planning on getting.
-
What difficulty?
Any errors?
Add error_reporting(E_ALL); to the top of the script
-
Hmm, you have a lot of code and without any errors it is hard to know what is wrong.
Put at the top of the page
<?php
error_reporting(E_ALL);
ini_set("display_errors",true);
?>
And maybe have a look at this
http://www.plus2net.com/php_tutorial/php_email_validation.php
Edit: Where are you calling the function?
-
I don't know an exact figure but loads, it will not be much different to people requesting the image directly through the URL.
But you wouln't need to use file_get_contents(); unless you want to hide the image URL from the source code.
-
please use code tags, it is harder to read without
-
The errors would be because the sites do not exist, but that is what the function should find out so you can suppress the errors by using an @ symbol in front of the fsockopen();
Like so
@fsockopen ($domain, 80, $errno, $errstr, 10);
[SOLVED] URL help
in PHP Coding Help
Posted
What do you mean replace the limit everytime, do you mean restart the count or change the current url?
if the latter then do
echo '<a style="display: inline block; padding: 5px;" href="http://' . $_SERVER['HTTP_HOST'].'/?limit=' . $i . '">' . $i . '</a>';
Without more info about the url, i can't help much more