Jump to content

doctor_james

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Everything posted by doctor_james

  1. Hi guys . suppose I have three tables as folllowing : 1- entries (id,title,entry) -> table of articles . 2- readers (id,user_id,entry_id) -> entries users have read . 3- users (id,user) -> list of users . now I want users just to see those entries they haven't read , how can I do that ? thanks in advance .
  2. Thanks "BlueSkyIS" , I added mysql_error n got this error : error : Incorrect date value: '9' for column 'date' at row 1 !! how can I define default values for my fields ?
  3. thanks for your answers . I dont think they're reserved words since adding prefixes does not work ! Here's my code : $query="INSERT INTO ent(user,title,cat,summary,entire,source,pdf,photo,date,time,comment,status) VALUES ('$user','$title','$cats','$summary','$entire','$source','{$pdf['name']}','{$photo['name']}','$date','$time','$comment','$status')";
  4. Hi guys . I have a Mysql table But anytime I post some data using mysql_query() nothing happens . but when I change fields' names it works . have you guys had this problem ? I think it's not with mysql for I can insert data through phpmyadmin . it's a boring job to change fields' names frequently .
  5. Hi guys , what does this mean : Error in my_thread_global_end(): 1 threads didn't exit
  6. thanks man . as I said I know about foreach loop but I wanna generate the keys in a for loop . for some reason I can't use foreach.
  7. Hi guys . suppose we have an array like this : $MyArray=array("a1"=>5,"a2"=>6,"a3"=>7,"a4"=>8,"a5"=>9); how can I generate a1,a2,a3... keys in a "For" loop instead of printing all the elements seprately , I'm looking for some method like this ( I know about "foreach" but I wanna use this method for some reasons ) : for ($i=0;$i<5;$i++) { echo $MyArray[...]; // How can I get the key (...) ? } instead of : echo $MyArray['a1']; echo $MyArray['a12]; echo $MyArray['a3']; . . . thanks in advance.
  8. hi . I downloaded phpmyadmin 2.11.0 from phpmyadmin.net . According to the installation guide I created "config.inc.php" using the setup script ...As it says I created a config directory n set the appropriate permissions . The config file's successfully saved in "config" directory . $cfg['Servers'][$i]['auth_type'] is set to "config" , I defined username & password for $cfg['Servers'][$i]['user'] & $cfg['Servers'][$i]['password'] ... I copied the generated config file to the root directory of phpmyadmin n deleted config folder .After doing all these I get this error : Access denied for user 'root'@'localhost' (using password: NO . have you guys had this problem ? thanks in advance .
  9. I installed php 5.2.3 n zend optimizer 3.3.0 on IIS . I coded my scripts with zend safegaurd 3.6.0 but when I run my script i get an error which says zend optimizer is not installed ... have u ever had this problem ?
  10. I need a cms that can be developed by a php programmer . please do not suggest me phpnuke,mumbo,xoops ... I want something uunique no matter how much it is ..
  11. Hi . Which cms do you suggest? ... I nedd a site manager which is capable of upgrading to new versions .. from a reputed company ... I want the best software . thanks in advance .
  12. hi all , how can i play a sound on a special event . like onclick or onmouseover ? thanks in advance.
  13. change the name property of your select element to this : name="recipient[]" . hope it helps . Regards.
  14. there's a way to do it , but it only works in IE . here it is : [code]style='FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ff00ff,endColorStr=#00ff99);'[/code] you can set start and end colors to any color u like . an example : [code] <table border=0 cellpadding=0 cellspacing=0> <tr><td style='FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ff00ff,endColorStr=#00ff99);' > you content here .... </td></tr> </table>[/code] another way as AndyB said , is to set the background-repeat to : no-repeat to stop it from being tiled . hope this helps. Regards.
×
×
  • 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.