Search Results

Showing results 1 to 40 of 1000
Search took 0.14 seconds.
Search: Posts Made By: nav33n ; Forum: PHP and child forums
Forum: PHP 14 Days Ago
Replies: 10
Views: 339
Posted By nav33n
I told you about step 2 and step 4. But, I should have been more descriptive [since you are kinda new to php].
But, in the end it doesn't even matter :P Congrats on finding the solution!
Cheers,...
Forum: PHP 14 Days Ago
Replies: 21
Views: 1,193
Posted By nav33n
Indeed :P
Forum: PHP 14 Days Ago
Replies: 3
Solved: date() question
Views: 206
Posted By nav33n
Cheers man :)
Forum: PHP 14 Days Ago
Replies: 10
Views: 339
Posted By nav33n
If it is *really* something small, then maybe its time for me to get a new pair of eyes. :D
Anyways, Lets hope someone else here finds what's wrong.
Anyways, Good luck :).
Forum: PHP 14 Days Ago
Replies: 10
Views: 339
Posted By nav33n
That's really strange. :S Sorry, It seems like I have reached the dead end and can't think of one good reason why it's failing to update the record.
Forum: PHP 14 Days Ago
Replies: 10
Views: 339
Posted By nav33n
Hmm.. I see what you are talking about. Did you try printing the query and executing it in phpmyadmin or mysql console ?
Your script looks good though :S
Forum: PHP 14 Days Ago
Replies: 10
Views: 339
Posted By nav33n
Well, I checked your script and it is fine. I don't see any errors. Apart from saying 'It works', does it say anything else ? Could you be more specific ?
Forum: PHP 14 Days Ago
Replies: 3
Solved: date() question
Views: 206
Posted By nav33n
Pass $row['date'] as a parameter to this date function and return the changed value.
Eg.

function changeDate($date) {
$newdate = date('d/n/y',strtotime($date));
return $newdate;
}

Call...
Forum: PHP 14 Days Ago
Replies: 21
Views: 1,193
Posted By nav33n
@evstevemd,
You missed "/" in myfoldername variable. So it will create the sql file as,

@futhonguy,
You can use evstevemd's code.

$myfoldername = getcwd()."\\MyBackups/";//your folders...
Forum: PHP 14 Days Ago
Replies: 21
Views: 1,193
Posted By nav33n
You have to mention the path where you want the .sql file to be created.
This will create a folder called backup [if it doesn't exist and then create the .sql file in that folder].

<?php...
Forum: PHP 14 Days Ago
Replies: 7
Views: 3,024
Posted By nav33n
:) As the error itself says, foto is undefined.

$ficheiro=$_FILES['foto'];

should be

$ficheiro=$_FILES['file'];

One more thing, notices are usually generated when you don't initialize a...
Forum: PHP 15 Days Ago
Replies: 21
Views: 1,193
Posted By nav33n
Hey, Hi.. Instead of ereg_replace, you an use str_replace. Both serve the same purpose. Replace \n with \\n so it don't get escaped. Anyways, the second 'error' is not an error but a notice. You can...
Forum: PHP 20 Days Ago
Replies: 7
Views: 344
Posted By nav33n
Ah, nevermind. My apologies.
Forum: PHP 21 Days Ago
Replies: 5
Views: 323
Posted By nav33n
Great :) Cheers!
Forum: PHP 21 Days Ago
Replies: 6
Views: 360
Posted By nav33n
Are you sure its administrator ? I know about mysql's 'root', but never heard of administrator.
And when you say phpmydirectory, are you talking about phpmyadmin or something else ?
Also check...
Forum: PHP 21 Days Ago
Replies: 5
Views: 323
Posted By nav33n
This is wrong. Try,

$query = "SELECT * FROM Employee WHERE $method = '$search'";
$result = mysql_query($query);
Forum: PHP 24 Days Ago
Replies: 5
Views: 454
Posted By nav33n
Ah! All's well. :) Cheers!
Forum: PHP 24 Days Ago
Replies: 13
Solved: Login System
Views: 1,358
Posted By nav33n
Use

array_map('stripslashes,$_POST);
array_map('mysql_real_escape_string',$_POST);

Here is a quote from php.net (http://php.net/manual/en/language.references.pass.php).
Forum: PHP 27 Days Ago
Replies: 14
Views: 665
Posted By nav33n
The only problem with this is , if a user loses his interest midway [ie., after submitting 1st form], there will be a obsolete record in the table. Or else, this is good.
Forum: PHP 27 Days Ago
Replies: 14
Views: 665
Posted By nav33n
You can do it in 2 simple ways (maybe there are even more, but I am not aware of it).
You can either save the data of the first form in session after it is posted, and then, when the second form is...
Forum: PHP 27 Days Ago
Replies: 5
Views: 454
Posted By nav33n
What I meant was ,

function procRestSearch($searchQuery){
//Don't forget to have $searchquery defined before calling this function
$intSearchCounter = 0; //Used to set the arrays...
Forum: PHP 27 Days Ago
Replies: 5
Views: 454
Posted By nav33n
Initialize the array outside the while loop. The array is getting over-written everytime it enters the loop. So you are getting only the last record.
Secondly, notices can be ignored. If you use...
Forum: PHP 27 Days Ago
Replies: 4
Views: 298
Posted By nav33n
When the user submits the page, build your query depending upon the user's selection.
If the user has selected from_year and to_year, include that in your condition and so on.
Forum: PHP 27 Days Ago
Replies: 4
Views: 298
Posted By nav33n
Please be specific with your question.
Forum: PHP 27 Days Ago
Replies: 2
Views: 264
Posted By nav33n
The echo statement is incorrect.

echo "<a href=\"inventorid.php?inventorid=".$data2['inventorid']."\">".$data2['inventorid']." ".$data2['firstname']." ".$data2['lastname']."</a>\n";

is the...
Forum: PHP 27 Days Ago
Replies: 4
Views: 278
Posted By nav33n
Technically, it doesn't matter if you have only 1 line statement after a condition. ie.,

<?php
$x = 1;
if($x == 1)
echo "$x is valid.";
else
echo "$x is invalid";
?>
Forum: PHP 28 Days Ago
Replies: 1
Views: 197
Posted By nav33n
I didn't go through so many functions in your script, but it works. You are supposed to select the options from the 2nd list before submitting. Unless you select them, they are not selected by...
Forum: PHP 28 Days Ago
Replies: 9
Views: 296
Posted By nav33n
Not only echo, you will get this warning if you have session_start along with header function. Use ob_start(); as the first line of your script to turn on output buffering and ob_end_flush(); as...
Forum: PHP 29 Days Ago
Replies: 3
Views: 245
Posted By nav33n
Very simple.

<html>
<head>
<script type="text/javascript">
function checkCheckbox() {
var countselection = 0;
var maximumselection = 2;
var ch = document.getElementsByName('choice');
...
Forum: PHP 29 Days Ago
Replies: 1
Views: 312
Posted By nav33n
To get a new line, you should add a <br /> to your echo.
ie.,

<?php
echo $abbr['US']['MI']."<br />";
?>
//or simply
<?php
echo $abbr['US']['MI'];
echo "<br />";
Forum: PHP 29 Days Ago
Replies: 2
Views: 313
Posted By nav33n
ob_start, as it indicates, will start output buffering. If you are using ob_start, then you should also use ob_end_flush, ie., flushing the output buffer.
I have used ob_start at places when I had...
Forum: PHP 29 Days Ago
Replies: 3
Solved: Help Me Out!!!
Views: 339
Posted By nav33n
Cheers! :)
Forum: PHP 29 Days Ago
Replies: 5
Views: 305
Posted By nav33n
I am glad I could help :)
Forum: PHP 29 Days Ago
Replies: 3
Solved: Help Me Out!!!
Views: 339
Posted By nav33n
:) You forgot the column name as the 2nd parameter for mysql_result.
http://php.net/manual/en/function.mysql-result.php
Forum: PHP 29 Days Ago
Replies: 5
Views: 305
Posted By nav33n
Condition is a mysql reserved keyword. In order to use it, you have to use ` [don't confuse it for single quote]. ie., `condition`. In my opinion, use some other word instead of condition to avoid...
Forum: PHP 29 Days Ago
Replies: 15
Views: 432
Posted By nav33n
Yeah, ofcourse. :) $string is just a variable name. You can give any name to a variable.
See Php naming convention here (http://www.tizag.com/phpT/variable.php).
Forum: PHP 29 Days Ago
Replies: 5
Views: 305
Posted By nav33n
Clear @ before mysql_query and see if it throws any error. Also, you can have $result = mysql_query($query) or die(mysql_error()); to print the error when the query fails.

P.S. @ suppresses the...
Forum: PHP 29 Days Ago
Replies: 15
Views: 432
Posted By nav33n
Or simply, $string = implode(",",$_POST['Prefered_Engineers']);
Forum: PHP 29 Days Ago
Replies: 12
Solved: Echo array
Views: 443
Posted By nav33n
Hmm.. You are right! That makes sense..
Forum: PHP 29 Days Ago
Replies: 12
Solved: Echo array
Views: 443
Posted By nav33n
@cwarn23, I think the OP was saying, that it shows only 1 record instead of 2 !
@levsha,
Are you sure you have 2 records for that query ? If you have 2 records, it *should* display them. There is...
Showing results 1 to 40 of 1000

 


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

©2003 - 2009 DaniWeb® LLC