Jump to content

live_ex3me

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

About live_ex3me

  • Birthday 03/23/1987

Contact Methods

  • Website URL
    http://www.dinbacau.ro
  • Yahoo
    live_ex3me

Profile Information

  • Gender
    Male
  • Location
    Romania

live_ex3me's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. then you need to make them arrays, e.g. ?order[]=1&id_mod[]=2&order[]=2&id_mod[]=4&order[]=3&id_mod[]=5 Then you can utilise them in PHP properly. To see what you're passing over : print_r($_GET['order]; print_r($_GET['id_mod']; thanks.. i'll try it right now LE: i changed <input type=text [b]name=order [/b]class=box size=5 value="'.$row['order'].'"> <input type=hidden [b]name="id_mod"[/b] value="'.$row['id_mod'].'"> with <input type=text [b]name="order[]"[/b] class=box size=5 value="'.$row['order'].'"> <input type=hidden [b]name="id_mod[]"[/b] value="'.$row['id_mod'].'"> but now it looks like ?order%5B%5D=1&id_mod%5B%5D= ... if i use POST, the code ugave me would look different (exept post instead of get)?
  2. hi there, i have this form, with 2 fields for each mysql result: while($row = mysql_fetch_array($res)){ print ' <input type=text name=order class=box size=5 value="'.$row['order'].'"> <input type=hidden name="id_mod" value="'.$row['id_mod'].'"> '; } saying that i have 3 sql results, i'll get from my form something like that: "?order=1&id_mod=2&order=2&id_mod=4&order=3&id_mod=5" . and evan if they would not have same name, how will i use them in a new sql request ? i've tryed something like this: <?php $names = ""; if (isset($_POST['fieldname'])) { $names = $_POST['fieldname']; } foreach ($names as $value ) { echo $value . "<br/>"; } ?> , but didn't work..
  3. i know javascript, ajax, but not so well.. i'll try what u gave me, thanks ! i'll be back to tell wether it worked or not LE: well.. it seems not to work.. but anyway, i know you can show the time live in javascript, but i need to do this for various zones on earth, for tokyo, london, new york, etc.. i need to show what the time is in these locations in the same script.. php would do that, but not in real time. ???
  4. Hi there, i have this little script to show me the local time in those cities.. $now = time(); $tz = getenv("TZ"); putenv("TZ=Europe/Bucharest"); printf("<tr> <td valign=middle width=100><font class=text><b>Bucuresti</b> :</td> <td valign=middle width=100 align=center><font class=text><b>%s</b></td><tr>", date('H:i:s', $now)); print '</table>'; how can i make time change each second ? whitout refreshing the page..
  5. well.. i solved my problem, you can close this topic. if anyone is interested how, just look after $_SERVER['HTTP_REFERER'].
  6. hi there.. i have a form, let's say "form.php". data will be send to "do.php". but if someone saves the form.php on his computer, than he can manipulate the form script and can send data to my do.php file right from his computer, he doesn't even need a server if he change the script to be a html.. i could fix this with a code which to restrict the access on my do.php file.. but this restriction must be based on the domain name i suppose, and that is my problem.. i don't know how to do that script.. i searched on php.net, but couldn't found any functions to help me..
  7. [quote author=shoz link=topic=107367.msg430729#msg430729 date=1157734766] If you want the PRIMARY KEY to be on BOTH "primary_id" and "type" then you have to make type NOT NULL as well. [code] ALTER TABLE tablename MODIFY type ENUM('post', 'thread') NOT NULL DEFAULT 'post', [/code] [/quote] thanx a lot  :-*
  8. hi there.. i have this code: [code] CREATE TABLE " . TABLE_PREFIX . "deletionlog ( primaryid INT UNSIGNED NOT NULL DEFAULT '0', type ENUM('post', 'thread') DEFAULT 'post', userid INT UNSIGNED NOT NULL DEFAULT '0', username VARCHAR(100) NOT NULL DEFAULT '', reason VARCHAR(125) NOT NULL DEFAULT '', PRIMARY KEY (primaryid, type) ) [/code] but.. it doesn't work.. it gives me this error: [b]MySQL Error  : All parts of a PRIMARY KEY must be NOT NULL;  If you need NULL in a key, use UNIQUE instead Error Number : 1171[/b] any help ?
  9. no :) .. u should use exactly $dir = $_SERVER['DOCUMENT_ROOT'] .'/reviews'; $_SERVER['DOCUMENT_ROOT'] will return the path that ur php file has it ( if u use i.e. : "c:/program files/apache group/apache/htdocs", for example).  .'/reviews';        --> stands for the folder u want to place the uploaded file. this folder's path will be: "c:/program files/apache group/apache/htdocs/reviews"
  10. [quote author=AndyB link=topic=107149.msg429505#msg429505 date=1157574426] myabe my calendar script would do -> www.digitalmidget.com/php_noob/calendar.php [/quote] quite nice :)
  11. [quote author=redarrow link=topic=106956.msg429160#msg429160 date=1157548194] i am looking this up i think its a mysql function wthin mysql database seach function. example $query = "select * form members_info where name like '%$name% and age='31' and hair='blond' "; know what i can see from my example is that all users with age 31 and hair blond should show i think not sure theo. and therefore classed as a match example a matching dating mod to show who matches within the database [/quote] what is the beauty of www.linkedin.com: u can make friends (much like the well knowen www.hi5.com). by adding friends, u create a network. now: if u want to find a plumber for example, this is easy. the trick isn't to find a plumber, but to see if he (the plumber) is friend with one of ur own friends. [b]EG:[/b] u are friend with Max, Carl and John. John is friend with u, Max and Nick. Nick is friend with John, Mihail and Sebastian. Sebastian  is friend with Maria, Nick and [u][b]The Plumber[/b][/u]. and that's the beauty of it: to be able to see "the path" between u and the man u want to hire if the path exists. in our case: u, john, nick, sebastian. this is the part i'm not so sure how to set it done :) and it couldn't be done with a search function like "$query = "select * form members_info where name like '%$name% and age='31' and hair='blond' ";"
  12. [quote author=SemiApocalyptic link=topic=106956.msg428552#msg428552 date=1157473806] Could you explain what you mean by "shortest road" please? [/quote] i'm trying to make something like this: www.linkedin.com . there u can ask to see if two people are "connected". how do u think it was done?
  13. well .. thx but i figured it out. i have to import the database into a simetric matrix. then i'll use dijkstra's algorithm. :-*
  14. hi there ! this is my firs post & i ask admins to move it if it's place isn't here (but please let me know). let's say we have this table in our database: [table] [tr][td]people[/td][td]his_friend_id[/td][/tr] [tr][td]1[/td][td]3[/td][/tr] [tr][td]2[/td][td]1[/td][/tr] [tr][td]1[/td][td]2[/td][/tr] [tr][td]3[/td][td]2[/td][/tr] [/table] this means: [b]row1:[/b] [i]people1[/i] has [i]people3[/i] as his friend [b]row2:[/b] [i]people2[/i] has [i]people1[/i] as his friend [b]row3:[/b] [i]people1[/i] has [i]people2[/i] as his friend [b]row4:[/b] [i]people3[/i] has [i]people2[/i] as his friend => 1 is frend with 3 and 2 => 2 is frend only with 1 => 3 is frend only with 2 now.. the question is: how can i calculate the shortest road (if it exists) between 2 people ?
×
×
  • 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.