-
Posts
2,527 -
Joined
-
Last visited
Posts posted by DeanWhitehouse
-
-
Huh? Just put the list of JS files at the top of the page, you seem to be making this more complicated than it is
-
You need to add it to the array before doing the loop.
-
And then what if they want to check for a whole range of different numbers, they would need an array from 0 to 9, when they could just something like *(0-9) (or whtever it is)
-
You can use a regex to check for numbers
-
-
Ok, and it doesn't print anything out?
Try adding
<?php
error_reporting(E_ALL);
ini_set("display_errors",true);
?>
to the top of the index page
-
That would limit you to one file, if you want to use more than one file just make it an array and a for (or foreach) loop
-
Just glancing through change this
<?php
$blog_file = file_get_contents('blogtext.txt');
$blog_list = explode('~', $blog_file);
foreach ($blog_list as $value)
{
echo '<?php ' . $value . ?>';
}
?>
to
<?php
$blog_file = file_get_contents('blogtext.txt');
$blog_list = explode('~', $blog_file);
foreach ($blog_list as $value)
{
echo $value ;
}
?>
or if u wnted the php tags
<?php
$blog_file = file_get_contents('blogtext.txt');
$blog_list = explode('~', $blog_file);
foreach ($blog_list as $value)
{
echo '<?php ' . $value . '?>';
}
-
What i am saying is that the code that you showed us for the page is different to the source code you just showed us.
First off its all capitalised!
Check and make sure you are viewing the right page
-
A switch statment
-
If that is the source code of the script posted at the top then you are looking at the wrong page.
-
What have you got so far, and what problems are you coming across?
-
Please use code tags
And that code doesn't help without more information or/and code.
-
Just when someone goes to the page check if the download time is over and if it is remove it from the db or whatever you want, that or run a cron job.
-
Wow, if you did know that then you would know what you are doing wrong.
If i am right from your badly written question, all you need to do is change them to radio boxes with the same name.
-
No you don't that is what you are telling it to print, btw i might be able to save you some hassle with my kinda ajax pagination using mysql
-
Yes, and you shouldn't need to change anything, i take it you are setting up your own server?
-
Ok first off make sure you have connected to the database, to check add
if(mysql_ping())
{
echo "Connected";
}
else
echo "not";
put that above the query, then after the query put
echo mysql_num_rows($commentids);
And tell me the output
-
Yes try it, but don't forget to use quotation marks in the echo.
Also i hope you are using $_POST['']; to get the post data and not
$_SERVER['HTTP_POST_VARS'] (or whatever it is)
-
Like
$var = $_POST['fieldname'];
-
Wow, i asked one question and amazingly you failed to anwser
-
Use $_POST, $_GET is used for site searches and user profiles etc. mainly not for things like login forms etc.
When you press refresh the url will still be http://mysite.com?dataGetter.
Or just redirect once you have done the data stuff
-
Are you running the file without a host just in your browser?
-
The code should show you the checkbox for z-a checked and the other unchecked and then when u check one the other will still stay checked.
[SOLVED] echo to specific location from function
in PHP Coding Help
Posted
like
$showCart(0);
or use a foreach loop