Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - RaythXC

Pages: [1] 2 3 ... 27
1
whenever you submit a form the browser counts the page reloaded as a new page, even if it's the same. You could try  javascript for what you're looking for.

2
HTML & CSS / scrollable div
« on: December 30, 2012, 04:57:18 PM »
I have a client looking for a site-template  which I have almost finished. At certain parts of the site, they want the areas to be constant height/width and scrollable if anything goes further than it.

I have this:
PHP Code: [Select]

#main_content #about_box {
    
background:rgba(0,0,0,0.6);
    
color#9f93ab;
    
margin-left:0pxmargin-right:5px;
    
margin-top:10pxmargin-bottom:0px;
    
width190px;
    
height:100px;
    
max-height100px;
    
padding-left5pxpadding-right:5px;
    
height:100%;
    
displayinline-table;
    
padding-bottom10pxpadding-top:10px;
    
overflowscroll;
}


For some reason this goes way over 100px and doesn't scroll or anything. Any ideas?

3
Beginners - Learning PHP / Re: problem with MYSQL INSERT table
« on: December 26, 2012, 07:15:29 PM »
you are missing values for the input of medication.

Code: [Select]
<input type="radio" name="medication" id="col3" value="WHAT THIS RADIO BUTTON STANDS FOR"/>

4
Beginners - Learning PHP / Re: Please check my script!
« on: December 26, 2012, 07:13:14 PM »
1. Yes those tags should be in the head tags.

2. you shouldn't need to create any $_POST variables. assuming there is form info with the names inside the ['name'] on the page being passed to it, those variables will be made.

5
MySQL database / Re: mysql_fetch_object(): supplied argument is not a valid
« on: December 25, 2012, 07:04:07 PM »
which is line 20? you have 2 mysql_fetch_object.

6
Beginners - Learning PHP / Re: error in executing if else statment
« on: December 25, 2012, 06:59:07 PM »
First code:
You set $tbl_name but don't use it anywhere (not an error just a note)



Try changing
PHP Code: [Select]

if($result['PropertyType'] == $prptype && $result['Furnishing'] == $furnishing && $result['Landtype'] == $landtype && $result['Parking'] == $noofparking && $result['Bedroom'] == $nobed && $result['Bathroom'] == $nobath)


to

PHP Code: [Select]

else if($result['PropertyType'] == $prptype && $result['Furnishing'] == $furnishing && $result['Landtype'] == $landtype && $result['Parking'] == $noofparking && $result['Bedroom'] == $nobed && $result['Bathroom'] == $nobath)

7
Beginners - Learning PHP / Re: Please check my script!
« on: December 25, 2012, 06:55:06 PM »
Have you tried to run it? I can't see any errors directly or by putting it in netbeans. The only way you'll know is testing it.

8
Beginners - Learning PHP / Re: problem with MYSQL INSERT table
« on: December 25, 2012, 06:53:51 PM »
That message comes from:

Code: [Select]
print_r($_POST);

It's simply displaying the $_POST array, but since your html form doesn't exist, there is no $_POST data to display.

9
General PHP Help / Converting mIRC and hit a problem
« on: December 25, 2012, 06:49:20 PM »
I've done alot of mIRC work recently and have decided I am redoing my website. In ny MySQL table, users have something called "flags" which are set by the shoutcast irc bot, ShoutIRC.

The following mIRC script can take the values from the database and return the letters representing those flags:
Code: [Select]
alias IRCBotFlagsFromLong {
  set -u0 %ibf.n 1
  while (%ibf.n <= 26) {
    if ($isbit($1,%ibf.n)) {
      set -u0 %ibf.ret %ibf.ret $+ $chr($calc(%ibf.n + 96))
    }
    inc %ibf.n
  }
  while (%ibf.n <= 32) {
    if ($isbit($1,%ibf.n)) {
      set -u0 %ibf.ret %ibf.ret $+ $chr($calc(%ibf.n + 64 - 26))
    }
    inc %ibf.n
  }
  return %ibf.ret
}

For example, if I type //echo $IRCBotFlagsFromLong(466952) it would echo out dnqrs.

I am trying to convert this into php and all of it is fine, except for the line(s)

if ($isbit($1,%ibf.n))

$1 is the value given to the "function" (466952) and %ibf.n is a counter. I can't seem to find a php equivalent  to the $isbit function

Quote
$isbit(A,N) - Returns 1 if the Nth bit in number A is turned on.


Anyone have any ideas to this?

10
MySQL database / Re: Find Duplicates?
« on: July 14, 2012, 02:59:59 AM »
found out howto do it.

PHP Code: [Select]

$query
"SELECT *,count(*) as quantity FROM ygo_cards GROUP BY `set`,`name`,`rarity`";

11
General PHP Help / Re: deliminator question
« on: July 13, 2012, 08:27:20 PM »
whats line 205?

12
MySQL database / Find Duplicates?
« on: July 13, 2012, 08:25:27 PM »
Ok I recently just added my whole yu-gi-oh tcg collection into a mysql database so I can keep track of what i have, what set they're from and the rarity.

I know there are a couple that have identical entries, so is there a single mysql query that I can just pull these out (like name=name set=set rarity=rarity) without manually looping through my whole database (considering its it 137 cards now, but will be 500+ by the end of next week)

13
HTML & CSS / Re: if/else statement
« on: July 13, 2012, 07:46:53 PM »
replace your original code with Andrews codechecker.php one.

14
http://php.net/manual/en/function.mail.php
Quote
Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.

It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.

15
PHP Code: [Select]

if (mail($toaddy$msgsubj$msgbody"From: \$fromaddy")) {


What's with the \?

Also check spam. And make sure there is a sendmailer installed, and if using a free-host that you can use mail()

Pages: [1] 2 3 ... 27