Jump to content

sarahAria

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Everything posted by sarahAria

  1. I just don't know how to insert into array it's a username availability check (ajax)
  2. hi guys I want to add usernames from mysq; database to an array like this $existing_users=array('roshan','mike','jason'); mysql table looks like this CREATE TABLE `Secure` (`id` int(11) NOT NULL auto_increment,`name` varchar(50) NOT NULL default '',`password` varchar(50) NOT NULL default '',`cookie_pass` varchar(50) NOT NULL default '',`state` char(1) NOT NULL default '0',`mail` varchar(100) NOT NULL default '',`active` char(1) NOT NULL default '0',`actcode` varchar(15) NOT NULL default '',`lastactive` datetime NOT NULL default '0000-00-00 00:00:00',PRIMARY KEY (`id`)) TYPE=MyISAM AUTO_INCREMENT=1; could yu plz help? my problem is I don't know about arrays
  3. hi guys I think my problem is somehow special I need my script to send some data to my site and recieve the data I don't want to use curl cause it need some server specification I was thinking about fsockopen could yu plz help?
  4. nope I've searched but it's easy todo try php pdf to jpeg convertors I've done it sometime ago with my friends
  5. I want something like zend but zend needs to change sme php settings, is there something like that I don't need it to be very uncrackable just something moderate cause I have some preety nice law protection thanks
  6. hi guys I want to prtect my php source code an I need encryption but just one or 2 pages and I also don't want to change my php settings for each server like what some encoders applications do can you plz help me and also not as easy crackable methods like base64
  7. hi guys I want to prtect my php source code an I need encryption but just one or 2 pages and I also don't want to change my php settings for each server like what some encoders applications do can you plz help me and also not as easy crackable methods lke base64
  8. hi guys I have an ajax site on hamednet.ir that uses ajax to change content of a div file but now when I uploaded it to server(direct admin) it don't work!! I already have used a similar version on other hosts with cpanel then it works I changed some permissions but no chance of success. // here we define global variable var ajaxdestination=""; function getdata(what,where) { // get data from source (what) try { xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { /* do nothing */ } document.getElementById(where).innerHTML ="<center><img src='img/loading.gif'></center>"; // we are defining the destination DIV id, must be stored in global variable (ajaxdestination) ajaxdestination=where; xmlhttp.onreadystatechange = triggered; // when request finished, call the function to put result to destination DIV xmlhttp.open("GET", what); xmlhttp.send(null); return false; } function triggered() { // put data returned by requested URL to selected DIV if (xmlhttp.readyState == 4) if (xmlhttp.status == 200) document.getElementById(ajaxdestination).innerHTML =xmlhttp.responseText; } <a href="#" onclick="getdata('change.html','paragraph');"> you can see full code on my site hemdnet.ir
  9. pick up a jquery plugin for form validation http://docs.jquery.com/Plugins#Forms but be aware this needs php scripting for validating username also http://www.hotscripts.com/Detailed/74052.html this should help you
  10. hi guys there is no comment on installing this script I know it should be easy but I don't know why It don't works here is the link for it http://www.reindel.com/accessible_news_slider/ what I've done is 1.linking jquery 2.linking script 3.adding a function as he's done 4.adding headline div as he's done but it hangs then redirects to one of my links and links are not working ???
  11. there seems to be an error with array cause even by replacing values with constants nothing changes?!!? unfortunately I don't know much about arrays :'( $classes_arr = array(); while ($row=mysql_fetch_assoc($result)) { extract($row); $classes_arr = array( 0 => array( 12 => array ( 'html' => '$program', 'style' => "background-color: #66CCCC", 'interval' => '120') ));
  12. the array seems to be empty! [attachment deleted by admin]
  13. I have the data for a class in below table (it's a class schedule and it draws the array on the week array) CREATE TABLE schedule( program TEXT NOT NULL, duration TEXT NOT NULL, day TEXT NOT NULL, clock TEXT NOT NULL ); & I need an array that should be like below (If I write below the array works) $classes_arr = array( // Classes for monday (day 1) $r[day] => array( $r[clock] => array( "html" => ".$r[program].", "style" => "background-color: #66CCCC", // use style property to change the background color "interval" => $r[duration] // set the interval for 2hrs ) ) ); now I need to put data from sql to the array ND PRODUCE AN ARRAY LIKE above one the final code should be like this ... $classes_arr = array(); while ($row=mysql_fetch_assoc($result)) { extract($row); $classes_arr = array( $day => array( 'clock' => '$clock', 'html' => '$program', 'style' => "background-color: #66CCCC", 'interval' => '$duration') ); } but it doesn't work any help? :'( thanks Sarah
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.