Search found 38 matches

by mayhemiz
Wed Apr 27, 2011 12:11 pm
Forum: Your Scripts
Topic: Convert CSS to Javascript
Replies: 0
Views: 1481

Convert CSS to Javascript

Hello,okay about the subject :) I wrote a script what converts CSS to jquery css. I mean this: $('#element').css('thing':'thing'); It's converts simple things what not containts :hover :active :etc. Why i did this? Because i hate the simple CSS,sometimes do big problem when i want to make a website ...
by mayhemiz
Fri Feb 04, 2011 10:55 am
Forum: PHP coding => General
Topic: Reload a part of page
Replies: 2
Views: 774

Re: Reload a part of page

Javascript: <script> function functionname() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 &...
by mayhemiz
Thu Jan 20, 2011 12:49 pm
Forum: PHP coding => General
Topic: PHP objects
Replies: 1
Views: 865

Re: PHP objects

No idea sorry :S
I'm not really like php objects.
by mayhemiz
Thu Jan 20, 2011 5:02 am
Forum: PHP coding => Images
Topic: How Can i crop the image in php
Replies: 2
Views: 1262

Re: How Can i crop the image in php

He want to crop image IN PHP not in ASP.
by mayhemiz
Wed Jan 19, 2011 8:37 am
Forum: PHP coding => Mail
Topic: PHP mail. please find error
Replies: 0
Views: 631

Re: PHP mail. please find error

Problem is the free webservice,i'm using a hungarian one and that support 10 mail if i'm sure,but this one is only support mail sending if u pay for premium.
by mayhemiz
Wed Jan 19, 2011 8:02 am
Forum: HTML Basics
Topic: <img src=...> but with variable
Replies: 1
Views: 7259

Re: <img src=...> but with variable

hello,or simply:

Code: Select all

<?php
echo "<img src=\"".$variable."\">";
?>
by mayhemiz
Wed Jan 19, 2011 7:59 am
Forum: PHP coding => General
Topic: $_POST and $_session question...
Replies: 3
Views: 1114

Re: $_POST and $_session question...

Hello,before you want to use $_POST you need a form what make a post.
You don't need to initialize variables because the form on submit will make it automatically =)
by mayhemiz
Wed Jan 19, 2011 7:55 am
Forum: PHP coding => General
Topic: php code-Alert
Replies: 0
Views: 675

Re: php code-Alert

Hello,i hope this work =)

Code: Select all

if(md5($_POST['code']) != $_SESSION['key']) {
  echo "<script>alert("Wrong Code!");</script>";
  die();
}
if not work you can try this:

Code: Select all

if(md5($_POST['code']) != $_SESSION['key']) {
  die("<script>alert("Wrong Code!");</script>");
}
by mayhemiz
Wed Jan 19, 2011 6:13 am
Forum: mySQL & php coding
Topic: MySQL Query Containing Multiple Queries
Replies: 2
Views: 1006

Re: MySQL Query Containing Multiple Queries

No Problem,PM me if you have another question.
by mayhemiz
Wed Jan 19, 2011 5:44 am
Forum: PHP coding => General
Topic: How Would You Display 500 jpg's ?
Replies: 5
Views: 997

Re: How Would You Display 500 jpg's ?

Please send me the chapters page number =D
In PM
Today night in GMT+1 i will send it for u in PM ( the script )
by mayhemiz
Wed Jan 19, 2011 4:30 am
Forum: PHP coding => General
Topic: security and required fields with php not jave
Replies: 5
Views: 1367

Re: security and required fields with php not jave

I don't know,but i think this work,i can't try it out now. But i hope this works. <? // we make a function, so it will easy to applicate function getinput($url) { $url = preg_replace("&(.*)","",$url); $regexp= "http:\/\/www\.youtube\.com\/watch\?v=(.*)(.*)"; if(preg_match_all("/$regexp/siu", $url, $...
by mayhemiz
Wed Jan 19, 2011 4:14 am
Forum: mySQL & php coding
Topic: Display Data and Updating with PHP and MYSQL DB
Replies: 0
Views: 501

Re: Display Data and Updating with PHP and MYSQL DB

Ummm hello,u mean this? $c = mysql_connect("127.0.0.1", "user", "pass"); if (!c) die("Can't coneect!"); mysql_select_db("db", $c); $q = mysql_query("SELECT * FROM tablename WHERE id=1"); // table will be: id name password text $r = mysql_fetch_array($q); echo $r[0]; // id echo $r[1]; // name echo $r...
by mayhemiz
Wed Jan 19, 2011 4:09 am
Forum: PHP coding => General
Topic: strlen() not doing its job
Replies: 2
Views: 695

Re: strlen() not doing its job

Try this (Umm hello =D)

Code: Select all

if (strlen($q)>15)
{
echo "it's too long!!";
}
else
{
echo "it's below 15";
}
by mayhemiz
Tue Jan 18, 2011 12:04 pm
Forum: PHP coding => General
Topic: PHP objects
Replies: 1
Views: 865

Re: PHP objects

Hello,umm i have an idea:

Code: Select all

$my_data -> monthly_performance[$year]["M$m"][] = $x
$xx = $my_data -> monthly_perfomance[$year];
if ($xx["M1"][] != "") {

}
I'm not sure in this,but try it out. =)
by mayhemiz
Tue Jan 18, 2011 10:55 am
Forum: JavaScript
Topic: onLoad and onSubmit question
Replies: 2
Views: 1708

Re: onLoad and onSubmit question

Try to use jquery and ajax,that would work. Here some help: function Search(str,type,from) { if (str == '') { alert('You cannot search for nothing!'); } else { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlh...
by mayhemiz
Tue Jan 18, 2011 10:51 am
Forum: CSS
Topic: newbie - layer relative to another layer
Replies: 0
Views: 1599

Re: newbie - layer relative to another layer

Simply don't add z-index?

Send me your css in PM and i can help for u.
by mayhemiz
Tue Jan 18, 2011 10:46 am
Forum: mySQL & php coding
Topic: Get Column from MySQL
Replies: 1
Views: 711

Re: Get Column from MySQL

Hello? =D
Haha hello =P
Umm i think this works =P

Code: Select all

$query = mysql_query("SELECT year FROM tablename");

while ($row = mysql_fetch_array($query)) {
echo $row["month"];
}
Send PM if works!
IF doesn't work send PM!
IF you have another question send PM!

Edit: 21th post in 2 day =D
by mayhemiz
Tue Jan 18, 2011 10:41 am
Forum: mySQL & php coding
Topic: MySQL Query Containing Multiple Queries
Replies: 2
Views: 1006

Re: MySQL Query Containing Multiple Queries

Add to sales a new field: timestamp as timestamp type php code: $q1 = mysql_query("SELECT MAX(timestamp) FROM sales"); $r1 = mysql_fetch_array($q1); $q2 = mysql_query("SELECT * FROM sales WHERE timestamp='".$r1["timestamp"]."'"); $r2 = mysql_fetch_array($q2); echo "ID:".$r2["sale_id"].""; echo "Prod...
by mayhemiz
Tue Jan 18, 2011 10:10 am
Forum: PHP coding => General
Topic: How to rewrite the code!
Replies: 2
Views: 734

Re: How to rewrite the code!

U mean this? <?php $abc= $_SESSION['id']; $album = mysql_query("SELECT * FROM albums WHERE username='$abc'"); while ($row = mysql_fetch_assoc($album)) { echo " <tr> <td width ='5%' bgcolor='#FFCCFF' align='center'> <font size='2' face='arial'>".$row['place']." </td> <td width ='5%' bgcolor='#FFCCFF'...
by mayhemiz
Tue Jan 18, 2011 10:06 am
Forum: PHP coding => General
Topic: converting string to xml file
Replies: 0
Views: 441

Re: converting string to xml file

Hello,i hope this helps =) NOTE: You need PHP 5 DOM functions !!!! If need more help: http://www.tonymarston.net/php-mysql/dom.html <?php // use this for create a file,later save it to xml $doc = new DomDocument('1.0'); // add document node $root = $doc->createElement('DOCUMENT'); $root = $doc->appe...
by mayhemiz
Tue Jan 18, 2011 9:32 am
Forum: PHP coding => General
Topic: Assign ONE button to MULTIPLE rows of data
Replies: 4
Views: 909

Re: Assign ONE button to MULTIPLE rows of data

I know what u mean,mmm ur table have an id as primary sure? So id is $row[0]? If yes: echo "<td><input type=\"submit\" name=\"".$row[0]."\" value=\"Edit\"></td>"; Oh and i think use this instead this $ttl = mysql_num_rows($sql); for($sub = 0; $sub < $ttl; $sub++){ mysql_data_seek($sql, $sub); $row =...
by mayhemiz
Tue Jan 18, 2011 7:04 am
Forum: PHP coding => General
Topic: Returning the EXACT search results
Replies: 4
Views: 899

Re: Returning the EXACT search results

No problem Image
by mayhemiz
Tue Jan 18, 2011 6:58 am
Forum: PHP coding => General
Topic: How Would You Display 500 jpg's ?
Replies: 5
Views: 997

Re: How Would You Display 500 jpg's ?

I see,u want the script in full php or php+js?
by mayhemiz
Tue Jan 18, 2011 6:57 am
Forum: PHP coding => General
Topic: security and required fields with php not jave
Replies: 5
Views: 1367

Re: security and required fields with php not jave

It's will be tricky with php but: Html file: <form action="add.php" method="post"> <input type="text" name="yourtext" value=""> <input type="submit" name="submit" value="Sample"> </form> add.php: if ($text == "") { echo "<script>window.location='htmlfile.html';</script>"; } This php script will retu...