Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: leviathan185
Forum: PHP 24 Days Ago
Replies: 15
Views: 420
Posted By leviathan185
you could also make a function out of it


<?php
function arrayToString($array) {
$string = '';
foreach($array as $value) {
$string .= "{$string}, {$value} ";
}...
Forum: PHP 24 Days Ago
Replies: 15
Views: 420
Posted By leviathan185
Oh i see...


<?php
$string = '';
$engineers = $_POST['Prefered_Engineers'];
foreach($engineers as $engineer) {
$string .= "{$string}, {$engineer} ";
}
?>
Forum: PHP 24 Days Ago
Replies: 15
Views: 420
Posted By leviathan185
apologies the function was a demonstration of how to access the the values in the array. you can use the same function to perform other actions, such as send the values to the data base. It will...
Forum: PHP 24 Days Ago
Replies: 15
Views: 420
Posted By leviathan185
It happens to the best of us ;)
Forum: PHP 24 Days Ago
Replies: 15
Views: 420
Posted By leviathan185
As much as I try and aviod overposting more experienced and respected posters, if you remove the [] that will only let you select 1 of the checkboxes and not multiple. If you want multiple You need...
Forum: PHP 25 Days Ago
Replies: 19
Solved: auto refresh
Views: 532
Posted By leviathan185
I'm sure you dont want to cuase an infinite loop. What are you trying to do?
Forum: PHP 25 Days Ago
Replies: 4
Views: 287
Posted By leviathan185
the concatenation full stops seem to be inside the string. try this:

$data = "UPDATE inventors SET month='$month',day='$day', year='$year', date='$year" . "-" . "$month" . "-" . "$day' WHERE...
Forum: PHP 26 Days Ago
Replies: 4
Solved: drop down menu
Views: 231
Posted By leviathan185
They are normaly done in HTML.


<html>
<body>
<select name="menu">
<option value="opt1">Option 1</option>
<option value="opt2">Option 2</option>
<option...
Forum: PHP 27 Days Ago
Replies: 13
Views: 503
Posted By leviathan185
There has recently been a post (http://www.daniweb.com/forums/post1046864.html#post1046864) similar to yours and I don't believe you can use the switch statements like that. change them to if/elseif...
Forum: PHP 29 Days Ago
Replies: 6
Views: 374
Posted By leviathan185
Are you talking about having inputs of a function that may not be used but could be?

example


<?php
function doStuff($a='not set', $b='not set', $c='not set') {
echo $a. "<br />";
...
Forum: PHP 31 Days Ago
Replies: 4
Solved: header problem
Views: 242
Posted By leviathan185
I take it you are also using ob_end_flush() at the end?
Forum: PHP 32 Days Ago
Replies: 2
Solved: php classes
Views: 237
Posted By leviathan185
is the file sql_Conn.php in the same directory as the file you are including it from? Also check that you have not inadvertantly made an error in the filename of the physical file in the directory. 1...
Forum: PHP Oct 19th, 2009
Replies: 4
Views: 280
Posted By leviathan185
which part are you having issues with? The use of sha1() or the sql to change the password?

Post your change password script if you have one
Forum: PHP Aug 26th, 2009
Replies: 7
Views: 316
Posted By leviathan185
never mind you posted that while i was writing that. sorry
Forum: PHP Aug 26th, 2009
Replies: 7
Views: 316
Posted By leviathan185
try using str_replace


<?php
$source = "string with • ";
$newString = str_replace("•", "", $source);



that should work
Forum: PHP Jul 21st, 2009
Replies: 12
Views: 712
Posted By leviathan185
This is a fantastic site, i learned a lot from this one
Forum: PHP Jul 21st, 2009
Replies: 12
Views: 712
Posted By leviathan185
PHP can do nearly anything you want it to do so you won’t be sorry you chose PHP. I am only new to the language, and to Programming in general.

From what I have seen and heard using HTML, PHP and...
Forum: PHP Jul 19th, 2009
Replies: 4
Views: 345
Posted By leviathan185
incorrect code - will repost
Forum: PHP May 26th, 2009
Replies: 13
Views: 440
Posted By leviathan185
oh, my bad. :$
Forum: PHP May 26th, 2009
Replies: 13
Views: 440
Posted By leviathan185
I am a little confused? This code is different to your origional question? did you solve that issue?
Forum: PHP May 26th, 2009
Replies: 3
Solved: Syntax error ?
Views: 198
Posted By leviathan185
Sounds link you want to update existing data.

If you are updating chane "INSERT" to "UPDATE and remove INTO e.g

$sql= UPDATE customer SET sizeindustry = '$sindustry' WHERE sno = '$sno' limit...
Forum: PHP May 25th, 2009
Replies: 13
Views: 440
Posted By leviathan185
I was having a similar issue the other day, but my situation was a little different. have you tried ob_start(); and ob_end_flush();?

Try putting ob_start(); athe the start of the page and...
Showing results 1 to 22 of 22

 


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

©2003 - 2009 DaniWeb® LLC