Forum: PHP Apr 19th, 2006 |
| Replies: 2 Views: 1,399 on this section of code
@$numm = mysql_num_rows($reg);
if ($numm == "1"){
die('Someone already has an account with that email, you can't have multis');
}your error message has a ' in it... |
Forum: PHP Feb 26th, 2006 |
| Replies: 1 Views: 8,610 In this line for ($j = 0;$j < 107;$j++) { you are assuming there are 107 lines when there aren't. You'd be better to use for ($j = 0;$j < count($arr);$j++) { |
Forum: PHP Feb 24th, 2006 |
| Replies: 9 Views: 1,492 None of that seemed easy to understand
Yes -> is used for objects such as$apple = new Fruit();
$apple->color = 'red';
$apple->price = 1;
while => is used for arrays$apple = array();... |
Forum: PHP Feb 20th, 2006 |
| Replies: 4 Views: 1,623 How about in the top of the web development section? else try weberforums.com they have a javascript subforum. I doubt it's busier than this one though. |
Forum: PHP Feb 13th, 2006 |
| Replies: 1 Views: 1,293 You will need to call it as the image source each time it's required
eg<img src='myimage.php?image_id=10001'><br />
<img src='myimage.php?image_id=12032'> |
Forum: PHP Feb 5th, 2006 |
| Replies: 2 Views: 1,669 rofl, sorry, not fair on a first post, but you had to be a model didn't you?! Couldn't just be a normal person looking for help.
Anyway, search on Google for "php tutorial" and follow some of the... |
Forum: PHP Jan 26th, 2006 |
| Replies: 3 Views: 4,480 I believe there is a file called meta.php which writes that information. |
Forum: PHP Jan 24th, 2006 |
| Replies: 2 Views: 28,199 I'd say it's because MySQL will only accept one database command at a time. When you put the full string into phpMyAdmin it's code will break it up into 3 update commands and send them down. You have... |
Forum: PHP Jan 22nd, 2006 |
| Replies: 15 Views: 14,269 header() doesn't have to be at the very top of your code but it does have to be before there is even one character sent to the browser. This might be a blank line before the <?php or maybe you... |
Forum: PHP Jan 12th, 2006 |
| Replies: 2 Views: 1,488 this line mysql_query("INSERT INTO nonmembers($name, $website, $comment)) VALUES(name, website, post_text) ");should read mysql_query("INSERT INTO nonmembers (name, website, post_text) VALUES... |
Forum: PHP Dec 30th, 2005 |
| Replies: 3 Views: 1,409 Several problems you may enconter:
* she's on dial up and her IP changes everytime she connects
* she's on adsl and her IP changes occassionally
I'd have to wonder that the board admin isn't... |
Forum: PHP Dec 19th, 2005 |
| Replies: 1 Views: 1,712 You'll find lots of good info on Graphics at the PHP site: http://www.php.net/gd |
Forum: PHP Dec 14th, 2005 |
| Replies: 1 Views: 1,260 you have array variables in the string, but the coding is incomplete. it should be
echo "RGB values of the pixel at position {$x} - {$y} are: {$colorrgb['red']} {$colorrgb['green']}... |
Forum: PHP Dec 5th, 2005 |
| Replies: 5 Views: 1,978 Take a look at the PHP manual for some options:
http://www.php.net/manual/en/ref.errorfunc.php
where you put something like this at the top of each page
error_reporting(E_WARNING); |
Forum: PHP Dec 4th, 2005 |
| Replies: 5 Views: 1,978 The braces tell php that the string inside is a variable name, a nice safe way of getting the data
print("{$links['URL']}");In an array it can't quite work out what to do here because it sees the... |
Forum: PHP Nov 26th, 2005 |
| Replies: 2 Views: 4,158 What are the rules for the split, number of characters, the semi colon?
If it's the semi colon take a look at explode (http://www.php.net/explode) |
Forum: PHP Nov 26th, 2005 |
| Replies: 1 Views: 4,003 I'm not convinced that hitting the database is such a bad thing. Other factors come into play.
From my IT background I was schooled into making as few database hits as possible. I've learnt from... |
Forum: PHP Nov 16th, 2005 |
| Replies: 3 Views: 2,424 rather than create a global variable I'd have done it this wayfunction Times()
{
if (time() < mktime(12,00,00)) $Time = 'AM';
else $Time = 'PM';
return $Time;
}
$thisTime = Times(); |
Forum: PHP Nov 10th, 2005 |
| Replies: 5 Views: 13,289 Sorry my initial post was so short, got called away and pressed submit in the hope you'd get it - and you did! Well done.
The only problem is pulling the data out.
changeforeach($_POST['p_id']... |
Forum: PHP Nov 10th, 2005 |
| Replies: 5 Views: 13,289 I'd tend to have
<input type='text' name='email[34]' value='tom@aol.com'>
or even
<input type='text' name='row[34][email]' value='tom@aol.com'>
and then work through the array to update... |
Forum: PHP Oct 31st, 2005 |
| Replies: 2 Views: 10,002 What exactly are you trying to scrape, just the links? Take a look at http://sarahk.pcpropertymanager.com/muck/linkmanager.php - it's a cut back version of my Link Manager for Link Exchangers... |
Forum: PHP Oct 29th, 2005 |
| Replies: 4 Views: 2,192 oh, ok
You can set your links up to be
<a href='display.php?folder=imgs1'>Images 1</a>
and then in display.php
<?php
$folder = (isset($_GET['folder']))?$_GET['folder']:''; |
Forum: PHP Oct 29th, 2005 |
| Replies: 4 Views: 2,192 When the user clicks on the link they are doing it on the "client" so you need something like javascript.
To save the value you can use sessions or cookies.
Rather than us giving you examples,... |
Forum: PHP Oct 29th, 2005 |
| Replies: 2 Views: 1,293 The class stores the database connection to help it control the database. It's a matter of form, not necessity.
It then looks to see if the user has "defined" for tracking to be turned on and runs... |
Forum: PHP Oct 26th, 2005 |
| Replies: 2 Views: 2,839 I'd need to know what you are getting if you
echo $row_Recordset1['when']; |
Forum: PHP Oct 22nd, 2005 |
| Replies: 8 Views: 6,121 I use a free script called phpMailer (http://phpmailer.sourceforge.net/) which lets you do attachments really easily as well as embedded images.
The docs and examples all go with it but if you get... |
Forum: PHP Oct 21st, 2005 |
| Replies: 4 Views: 5,228 try
preg_replace (http://www.php.net/preg_replace) ("#[^0-9]#i", '', $field);
which will strip out anything that isn't a number |
Forum: PHP Oct 20th, 2005 |
| Replies: 2 Views: 1,297 I use a free script from sourceforge called phpMailer (http://phpmailer.sourceforge.net/), it's awesome.
One of the big issues I've had has been to have an email work in Outlook, and webmail, and... |
Forum: PHP Oct 18th, 2005 |
| Replies: 5 Views: 3,647 I charge US$50 but I'm offshore so my rates may not be relevant. |
Forum: PHP Oct 17th, 2005 |
| Replies: 5 Views: 16,337 That points to a connection issue - but also to a potential difference in the structure of the tables. I was hoping the error message would give you one of those moments when you go "d'oh". It's... |
Forum: PHP Oct 17th, 2005 |
| Replies: 5 Views: 16,337 It's probably not a php version problem
usually $sql and $query are the same thing and you use $result for the result set. That improves readability but doesn't fix anything
$result =... |
Forum: PHP Oct 14th, 2005 |
| Replies: 12 Views: 3,828 Open Source CMS (http://www.opensourcecms.com/) should be the first place you search, followed closely by sourceforge.net |
Forum: PHP Oct 13th, 2005 |
| Replies: 7 Views: 2,444 It's probably the CSS and the way it's applied on the site. Or it could the tags. IE is kinder with tags that don't match or aren't closed.
<p><i><b>This</i></b></p>
may work in IE but... |
Forum: PHP Oct 9th, 2005 |
| Replies: 6 Views: 1,943 cthackers, can you do my homework too please? |
Forum: PHP Oct 5th, 2005 |
| Replies: 5 Views: 2,463 The trick is finding the right one
you are looking for TD - and not TABLE tags
I usually make the width='100%' into xwidth='100%'
that way I can search to find it later if I change my mind
... |
Forum: PHP Oct 5th, 2005 |
| Replies: 5 Views: 2,463 A client has since scrapped his phpBB forum for vBulletin but we found it was an issue with one of the tables having a <td width='100%'> that caused the problem. Now, you'll find this all over the... |
Forum: PHP Oct 2nd, 2005 |
| Replies: 4 Views: 2,017 register globals should be off for security reasons. You'll find it hard to find a webhost that leaves them on, I reckon.
PHP scripts generate HTML pages. They aren't actually different from the... |
Forum: PHP Oct 2nd, 2005 |
| Replies: 4 Views: 2,017 I'd back that up. Have you uploaded onto a webserver? Is it PHP enabled?
to check your php capabilities create a new file called phpinfo.php
it's contents are
<?php phpinfo(); ?>
If you... |
Forum: PHP Oct 1st, 2005 |
| Replies: 2 Views: 2,293 You might do better by participating in the forum, answering questions and letting your signature do the work. I don't think this kind of post is really in the spirit of the PHP forum. |
Forum: PHP Sep 23rd, 2005 |
| Replies: 2 Views: 1,244 Hey Jared, shame it's not yours, I'd like to shake the hand of whoever wrote that baby.
I don't use it often but when I do it's fantastic. It's grown up alot over the years and it's a solid tool... |