-
Posts
18 -
Joined
-
Last visited
Everything posted by kayess2004
-
Hi Jarv, Try this: $total_pages = $total_pages['num']; Hope this helps.
-
my sql select id and then update problem.
kayess2004 replied to calmchess's topic in PHP Coding Help
Hi, In your update statement, change you OR's to AND's HTH -
If you use time() this gives you the current time. So each time you run the query noone can actually be considered online after now. Try giving it a timespan of say now - 1 hour or something like that.
-
Hi, One way you could try would be as follows: // Database stuff here $count = 0; echo "<tr>"; while($row = mysql_fetch_array($query)) { if($count == 2) { echo "</tr><tr>"; $count = 0; } echo "<td>" . $row['result'] . "</td>"; $count++; } echo "</tr>"; Hope this helps
-
Hi, You can send HTML via mail() using the following in your $headers // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers // $headers .= 'To: YoMama <yomama@meirsystems.com>' . "\r\n"; $headers .= 'Cc: YoPapa <yopapa@meirsystems.com>' . "\r\n"; $headers .= 'Bcc: YoBrudda <yobrudda@meirsystems.com>' . "\r\n"; $headers .= 'From: YoMama <yomama@meirsystems.com>' . "\r\n"; Just create your HTML for the body of the message and pass it to the mail() function. Hope this helps
-
Hi, I think this line : $imagehw = GetImageSize($fileupload); should be $imagehw = GetImageSize($fileupload_name); but I'm not 100% sure where $fileupload comes from.. HTH
-
Hi, Give this a try, [code] <?php if (isset($_POST['ime']) && $_POST['ime'] != '') { echo $_POST['ime']; } else { echo "<i>Моля, въведете Вашето име!</i>"; } ?> [/code]
-
PHP Includes and Subdomains, how do they work
kayess2004 replied to OInter's topic in PHP Coding Help
Hi OInter, Usually a subdomain is just a folder beneath the root directory, for example http://subdomain.mysite.com would be something like /home/mysite/subdomain/ where the root directory is /home/mysite/ To find out what your root directory is you can use $_SERVER['DOCUMENT_ROOT']. Or you could use include($_SERVER['DOCUMENT_ROOT']."/subdomain/myfile.php"); Hope this helps -
Hi, I think this may be your problem [code] mysql_close($thisi dont ->connection); should be mysql_close($this->connection); [/code] HTH
-
Hi, Is $playerdb a table name or the name of the database?
-
contact form doesn't work, came with script
kayess2004 replied to Colleen78's topic in PHP Coding Help
Hi, try changing the following : [code] if(isset($submit)) { [/code] to [code] if(isset($_POST['submit'])) { [/code] See how you go. HTH -
You may find something here [a href=\"http://www.cmsmatrix.org/\" target=\"_blank\"]http://www.cmsmatrix.org/[/a] HTH
-
Problem with domain to IP address translator!
kayess2004 replied to CalumT's topic in PHP Coding Help
[!--quoteo(post=369553:date=Apr 28 2006, 10:28 PM:name=-Calum-)--][div class=\'quotetop\']QUOTE(-Calum- @ Apr 28 2006, 10:28 PM) [snapback]369553[/snapback][/div][div class=\'quotemain\'][!--quotec--] Thanks Ray, but there's still an error, If I put in Microsoft.com, I get this [i] The IP address of microsoft.com is $site[/i] Any ideas? [/quote] Hi, Remove the quotes [code]$ipaddress = gethostbyname($site);[/code] HTH -
[!--quoteo(post=360168:date=Mar 31 2006, 07:47 AM:name=DJ Judas)--][div class=\'quotetop\']QUOTE(DJ Judas @ Mar 31 2006, 07:47 AM) [snapback]360168[/snapback][/div][div class=\'quotemain\'][!--quotec--] I've no doubt it's just a simple problem that someone will say 'oh you just have to do this...' and it will be fixed. [/quote] Hi again, Oh you just have to do this :-) If you have a different style sheets for your include pages the main (index.php) style sheet will override them. You might want to look at that. HTH
-
[!--quoteo(post=360095:date=Mar 31 2006, 04:49 AM:name=Oche)--][div class=\'quotetop\']QUOTE(Oche @ Mar 31 2006, 04:49 AM) [snapback]360095[/snapback][/div][div class=\'quotemain\'][!--quotec--] I need to setup something to allow a user to upload pictures and add a caption to them as well. I would like to first show all the pictures in thumbnail and then give them the option to expand on a click. Is there code of software to purchase that can help me with this? If software is only way, I do not want the user to have to have the software. I would want them to upload via a webpage. Thanks David [/quote] Hi Ooche, I found coppermine photo gallery to be pretty good you can find it at [a href=\"http://coppermine.sourceforge.net/\" target=\"_blank\"]sourceforge[/a] HTH
-
Hi DJ, I think you are probably going down the wrong track with tables too. You should probably look at using CSS. Anyway here is what I usually do... [b]this is my index.php page[/b] [code]<!-- all the html header stuff goes here --> <div id="content"> <?php if(isset($_GET['page'])) include('includes/' . $_GET['page'] .'.inc.php'); else include('includes/main.inc.php'); ?> </div>[/code] Just create a CSS tag called #content to place the content where you want it, and whenever the $_GET['page'] is passed to the browser it will be included. (ie index.php?page=about, would include "includes/about.inc.php"). Hope this helps a bit Steve
-
Hi, I wouldn't recommend putting all you mailing list members in the "To:" section. You should "Bcc:" them instead otherwise your whole list will be visible to all of them. You could try this: [code] $sql = "select name, email from mailing_list"; $result = mysql_query($sql); $bcc = "Bcc: "; while($row = mysql_fetch_array($result)) { $bcc .= $row['name']." ".$row['email'].","; } $to = "Me <myemail@myserver.com>"; $subject = // Whatever your subject $body = // Whatever your body $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'You <youremail@yourserver.com>'. "\r\n"; $headers .= '$bcc' . "\r\n"; mail($to, $subject, $body, $headers); [/code] HTH Steve
-
Dreamweaver PHP Setup Help Needed
kayess2004 replied to KindMan's topic in Editor Help (PhpStorm, VS Code, etc)
Hi, Your Document root c:/myTestSites/www/ is defined as http://localhost/ Your testing server folder is c:/myTestSites/www/SiteOne/ and your URL prefix will be http://localhost/SiteOne/ HTH Steve