![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
phpretard
-
Posts
821 -
Joined
-
Last visited
Never
Posts posted by phpretard
-
-
The datbase id set to default like this 0000-00-00.
I would like to display the date like this 02-14-08.
The code below doesn't work (I am sure this is obvious to someone).
$date= $row['date']; $date1=date_format($date, '%m %d %y'); echo $date1 ;
Please help me...
-Anthony
-
I have an adobe form a person can fill in and submit. On submit I would like for it to email the actual pdf to me.
Is this possible?
Any thoughts?
-
That worked great.
Any pointers on how to manipulate this " [c1name] => Anthony Jones "
c1name should be "Customer 1 Name = Anthony Jones".
-
I am simple trying to submit a form and email the information from it. I can do that no sweat. I just know there must be a better way then to type $_post['info'] for every field. I have about 40 fields.
This isn't detramental, I just would like to know if there is a better way.
Thanks a million!
-Anthony
-
Is there a way to capture all of the posted fields in a form with one string?. This as opposed to typing -- $_POST['bunches'] -- many many times?
-
Using PHP ... What is the most simple way to display when a page was last updated?
I can think if a million ways but but I am looking for the most common and most simple.
Any suggestions?
-
Is a mysql update any different in php5 vs 4
-
I changed it and it worked.
Thank you!
-
It will be all numbers.
-
The code below puts the number 125 before the number 25 when sorted asc. I am pretty sure it's because of the 1 in 125.
I would like to arrange asc with the 25 first because these aren't the only numbers involved.
Has anyone run into this before?
$result = mysql_query("SELECT * FROM rentals ORDER by $var");
Any help ??
-
Is there any way you could translate that?
$url=unserialize($row['url']); $name=unserialize($row['name']); $link=$url; $link_name=$name; $narray=array_combine($link,$link_name); foreach($narray as $key => $item) echo "<a href=\"$key\">$item</a>";
Thank you for your quick response!
-
With PHP4
Can someone give me a clue how to build an array_combine - vs - array_combine in PHP5
or maybe a link to a tutorial?
-
How do I get PHP 5?
-
What does this mean?
Fatal error: Call to undefined function: array_combine()
$url=unserialize($row['url']); $name=unserialize($row['name']); $link=$url; $link_name=$name; $narray=array_combine($link,$link_name); foreach($narray as $key => $item) echo "<a href=\"$key\">$item</a>";
-
Do you need more code?
-
I (once again) wasn't as clear with my question but your answer was dead on.
I need one array's value as the url and the other as the link name.
while() { foreach($link as $value); foreach($link_name as $value1); echo "<a href=$value>$value1</a>"; }
btw - Thank you for your quick response.
-
Can PHP turn this into one foreach statement?
foreach($link as $value){echo $value;} foreach($link1 as $value1){echo $value1;}
-
Do you need more code than this?
-
Here is the form imput
<input type='checkbox' id=url name='url[]' value='$url' /> <input type=text id=input name=name value='$name' readonly><br>
-
This id how I serialized it:
$url=serialize($_POST['url']);
I unserialized like this
while($row = mysql_fetch_array($result)) { $url=unserialize($row['url']); var_dump($url[0]); }
-
After messing around I echo -- string(14) "add_player.php" --
Can someone help get rid of the - string(14) - and both quotes
-
Often times I do not supply the info needed to help you help me.
Is this enough info?
-
I serialized input from a form, inserted the serialized data, unserialized the data and echoed it.
It echoed an array and I dont know how to seperate the information so I can use it.
I need to output the "add_player.php" part of this like so -<a href='http://www.website.com/add_player.php'>
array(4) { [0]=> string(14) "add_player.php" [1]=> string( "rand.php" [2]=> string(10) "roster.php" [3]=> string( "menu.php" } Array
Can someone help seperate this stuff please?
-
Thank you!
My eyes get lost in the code and miss the simple things...
$hours++
in PHP Coding Help
Posted
The code below wont give the desired result.
the desired result is
messages[0] = new Array('../$url');
messages[1] = new Array('../$url');
messages[2] = new Array('../$url');
messages[3] = new Array('../$url'); and so on...
Can someone please throw a bone here?
-Anthony