Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 51
Search took 0.07 seconds.
Search: Posts Made By: ASTP001
Forum: PHP 09-26-2011, 04:04 AM
Replies: 3
Views: 892
Posted By ASTP001
you can get an array of all the images in that...

you can get an array of all the images in that folder by calling the function scandir and then count the number of arrays in it and call rand function to make it randomly pick...


$images =...
Forum: PHP 09-16-2011, 07:45 AM
Replies: 4
Views: 756
Posted By ASTP001
you can echo out the entire html within php like...

you can echo out the entire html within php like this


<? php if ($_SESSION['username'])
{
echo '<div id = "blocks_of_phpIncludes">';
include('../form/muliple.php');...
Forum: MySQL 09-07-2011, 10:40 AM
Replies: 12
Views: 1,251
Posted By ASTP001
try DELETE FROM testdb.newsletters WHERE...

try

DELETE FROM testdb.newsletters
WHERE mens=test@test.com
Forum: PHP 09-07-2011, 10:30 AM
Replies: 7
Views: 378
Posted By ASTP001
I'm not sure what you're trying to do exactly....

I'm not sure what you're trying to do exactly. Could you explain more?
Forum: PHP 09-07-2011, 09:31 AM
Replies: 15
Views: 671
Posted By ASTP001
No it's not. What it said on your first post is: ...

No it's not. What it said on your first post is:

<OPTION>Mens & Womans</OPTION>

What it needs to be is:
<OPTION>Mens & Womens</OPTION>

Edit: also if you want to be correct with...
Forum: PHP 09-07-2011, 09:27 AM
Replies: 15
Views: 671
Posted By ASTP001
Change your html code to: <SELECT...

Change your html code to:
<SELECT name="newsletter">
<OPTION>Mens</OPTION>
<OPTION>Mens & Womens</OPTION>
<OPTION>Womens</OPTION>
</SELECT>
Forum: PHP 09-07-2011, 09:21 AM
Replies: 15
Views: 671
Posted By ASTP001
Your option field says "Mens & Womans" while your...

Your option field says "Mens & Womans" while your if else statement says "Mens & Womens"
it's a spelling discrepancy.
Forum: PHP 09-07-2011, 09:15 AM
Replies: 7
Views: 378
Posted By ASTP001
You can have html in a .php file but you can't...

You can have html in a .php file but you can't have php in a .html file. What you need to do is save that .html as php. html will work as it should, and you can place your php in there with <?php...
Forum: PHP 09-07-2011, 01:40 AM
Replies: 0
Views: 201
Posted By ASTP001
Zend Framework Installation Help

Hi,

I am trying make an event management system, and to integrate that with google calendar. I have a free hosting service, and I wasn't sure how to get to the path that the getting started guide...
Forum: MySQL 09-06-2011, 06:14 AM
Replies: 18
Views: 1,957
Posted By ASTP001
Are you using php in conjunction with your SQL?...

Are you using php in conjunction with your SQL? Could we please see the code that you have so far, maybe it will be clarified what you're trying to do that way.
Forum: PHP 09-06-2011, 01:52 AM
Replies: 5
Views: 506
Posted By ASTP001
Thanks, that works. I think the reason why php...

Thanks, that works. I think the reason why php was doing that was to prevent SQL injections, and I think that is a real smart idea. Now, stripping the slashes works for now, and the way I coded it I...
Forum: PHP 09-06-2011, 01:38 AM
Replies: 5
Views: 506
Posted By ASTP001
$_POST problem

I have a name input $_POST['name']

and for some reason, when I type in ' in the html form it outputs as \'
I don't know why but it is causing problems. Can anyone explain why this is happening?
Forum: PHP 09-05-2011, 07:39 PM
Replies: 5
Views: 363
Posted By ASTP001
$fp = fopen ($filename, "w"); change that...

$fp = fopen ($filename, "w");


change that to
$fp = fopen ($filename, "a");

according to fou-lou, that should fix it.
Forum: PHP 09-05-2011, 07:34 PM
Replies: 5
Views: 415
Posted By ASTP001
Well, I didn't solve the problem exactly. What I...

Well, I didn't solve the problem exactly. What I did is tried to use the code set_time_limit() and my webpage gave me an error saying that the function was disabled for security reasons. So, my host...
Forum: MySQL 09-05-2011, 07:31 PM
Replies: 18
Views: 1,957
Posted By ASTP001
You run the script as you needed on the page that...

You run the script as you needed on the page that will display the value. If you want to fetch the ref number for all the people at the same time, put that in the while loop under the query SELECT *...
Forum: MySQL 09-05-2011, 07:00 AM
Replies: 18
Views: 1,957
Posted By ASTP001
Please be more descriptive. I am not sure how...

Please be more descriptive. I am not sure how your tables are structured, or what it is exactly that you are trying to do.
Forum: JavaScript programming 09-05-2011, 03:45 AM
Replies: 6
Views: 390
Posted By ASTP001
If and Else should not be capitalized. Edit:...

If and Else should not be capitalized.

Edit: whoop, someone already answered. x.x
Forum: PHP 09-04-2011, 10:04 PM
Replies: 3
Views: 350
Posted By ASTP001
When a script executes a command, it happens from...

When a script executes a command, it happens from the server side, so you don't need to enter your ftp information. You could have something like:


<form action="thispage.php" method="post">...
Forum: PHP 09-04-2011, 09:08 PM
Replies: 3
Views: 350
Posted By ASTP001
you can use rename() function in a script. ...

you can use rename() function in a script.

http://php.net/manual/en/function.rename.php
Forum: PHP 09-04-2011, 08:50 PM
Replies: 7
Views: 309
Posted By ASTP001
$percent_health =...

$percent_health = ($user['currenthealth']/$user['maxhealth'])*100;
echo $percent_health."%";


Is that what you were asking for?
Forum: PHP 09-04-2011, 08:27 PM
Replies: 8
Views: 552
Posted By ASTP001
It's not very clear what you're trying to do... ...

It's not very clear what you're trying to do...
but, you should name both the radio button the same name so that you can get a value from it. suppose you name both of them "accept" then if you used...
Forum: HTML & CSS 09-04-2011, 03:40 PM
Replies: 6
Views: 588
Posted By ASTP001
I don't see the text in the right hand box.

I don't see the text in the right hand box.
Forum: HTML & CSS 09-04-2011, 03:17 PM
Replies: 6
Views: 588
Posted By ASTP001
I'd suggest using the radius attribute, rather...

I'd suggest using the radius attribute, rather than images to get curved corners. Other than that, what else seems to be the problem?
Forum: PHP 09-04-2011, 03:13 PM
Replies: 3
Views: 484
Posted By ASTP001
try the date() function.

try the date() function.
Forum: PHP 09-04-2011, 03:08 PM
Replies: 2
Views: 266
Posted By ASTP001
You could have a txt file and update that txt...

You could have a txt file and update that txt file each time someone enters a word, and output that file. You could also use a database, if you need to manipulate it better.
Showing results 1 to 25 of 51

 
Forum Jump

All times are GMT +1. The time now is 03:40 PM.