Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 10 of 10
Search took 0.03 seconds.
Search: Posts Made By: Kekke
Forum: PHP 01-15-2012, 02:42 PM
Replies: 9
Views: 647
Posted By Kekke
You can just do it twice in a row ...

You can just do it twice in a row



$string = "<p>Hello</p>";
$string = str_replace("<p>", "<span>", $string);
$string = str_replace("</p>", "</span>", $string);
echo $string;
Forum: PHP 01-14-2012, 11:26 AM
Replies: 5
Views: 934
Posted By Kekke
And here you have a great example of how to do...

And here you have a great example of how to do pagination:
http://www.codingforums.com/showthread.php?t=151398
Forum: PHP 01-14-2012, 10:47 AM
Replies: 5
Views: 934
Posted By Kekke
use LIMIT $query = "SELECT * FROM defaulter...

use LIMIT

$query = "SELECT * FROM defaulter WHERE NamaMajikan IS NOT NULL LIMIT 50";
Forum: PHP 01-13-2012, 08:10 PM
Replies: 8
Views: 802
Posted By Kekke
That sounds like a very ineffective way of...

That sounds like a very ineffective way of storing that kind of data.

You should really consider using a database to store the data.

That will not only make it easier, but it will be alot safer...
Forum: PHP 01-13-2012, 07:41 PM
Replies: 5
Views: 344
Posted By Kekke
First of all, add a submit-button to your form...

First of all, add a submit-button to your form (add the <textarea> into a form) then retrieve the $_POST['your_textarea']-data from the $_POST var.

Once you have what was posted, just open the...
Forum: PHP 01-13-2012, 03:04 PM
Replies: 7
Views: 378
Posted By Kekke
Yes, as you can see as from the above post,...

Yes, as you can see as from the above post, remove the ' from `Username` and it should work.

Edit*

The reason of why this happens is because you are comparing `Username` as a string towards...
Forum: PHP 01-13-2012, 01:39 PM
Replies: 7
Views: 378
Posted By Kekke
Have you tried echoing the SQL statement to see...

Have you tried echoing the SQL statement to see what has actually been inserted?
Forum: PHP 01-12-2012, 09:32 PM
Replies: 6
Views: 673
Posted By Kekke
imdb does not allow hot-linking their images. ...

imdb does not allow hot-linking their images.

You will have to download them and upload them to another host.
Forum: PHP 01-12-2012, 09:03 PM
Replies: 4
Views: 485
Posted By Kekke
You can get it such as: $query = "select...

You can get it such as:


$query = "select mydate from `dates` where id='1'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);

if(isset($row['mydate'])...
Forum: PHP 01-12-2012, 06:50 PM
Replies: 1
Views: 220
Posted By Kekke
Since you return an array, you have to treat it...

Since you return an array, you have to treat it as an array.

What happens if you print_r($all_addresses2); ?
Showing results 1 to 10 of 10

 
Forum Jump

All times are GMT +1. The time now is 03:15 AM.