Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. what is the problem? from the screen shot it looks like a HTML/CSS problem not a php one..
  2. i'm not 100% sure what you mean.. but to clear dups from an array you can just use array_unique
  3. can you post some code. it should look something like this Force Downloads
  4. I think i know what you want to do.. if the "number" is prim, then why not export the data as "update type" then import into the new database ? of course do a backup first1
  5. you need to pass the requests ie $mail->Body = $_POST['enquiry']; //etc
  6. MadTechie

    COTW

    1. create a flash media player. 2. create an upload script. 3. combine! sorry to say but this is a help forum.. not a Tutorial site. attempt yourself first
  7. What OS are you running ? Windows filesystems (FAT, FAT32, NTFS) are not UTF-8 aware. Filenames are encoded in ISO-8859-1 or CP437/CP850/( or whatever suits your language) depending on filesystem and localisation. Many distributions of Linux are by default setup with an UTF-8 filesystem, but not all.. really we need more info and some test data
  8. It won't change..Why would it change ??? your viewing not updating what are you expecting ?
  9. Looks like a simple join.. try this in PMA (phpmyadmin) SELECT S.number, All.first_name FROM all_students as All LEFT JOIN student_data as S ON S.number= All.number WHERE S.number = 1234
  10. i would recommned reading up on writing XML's XML Parser Functions
  11. change foreach ($_POST as $k -> $v) { //<---- LINE 51 to foreach ($_POST as $k => $v) { //<---- LINE 51 simple typo
  12. maybe a this http://www.freewebmasterhelp.com/tutorials/phpmysql after a quick review it seams perfect for what you want (maybe) sorry to "pass the buck" but were here to help.. if you want us to write the code for you.. your need to post in freelance section and offer something..
  13. and without knowing that data myself i have no way of helping...! do you have a database schema and some sample data ?
  14. create a form.. now list all files and add a check box as an array with the values equal to the filename ie echo "<input type=\"checkbox\" name=\"delfile[]\" value=\"$file\" /> $file<br />"; now add a submit button ie echo "<input name=\"delfiles\" type=\"submit\" value=\"Delete\" />"; now when you click submit the checkbox array is passed, this contains the filenames ie <?php $BasePath = "Folder/of/files"; if(isset($_POST['delfiles'])) { foreach($_POST['delfile'] as $df) { echo "$BasePath/$df"; //debug #unlink("$BasePath/$df"); } ?> this should help.. if you are still stuck just post what you have so far and we're try to help.. i could post a compleated script but learning is better
  15. Need more detail really.. if your creating the excel file, then you messed up in its creation.. (fix it) by changing the stored type..
  16. i'm not reading all that!.. sorry unless i get paid or you post a snipplet of where the problem is in that script.. i am not reading the whole thing..
  17. your probably want something like this $result=mysql_query("SELECT * FROM all_students WHERE number = {$_POST['number']} "); but your need to echo the results, i'm not sure that will work as your inseting into student_data table but selecting from the all_students table!, so i am even more confused about what your attempting!
  18. need code.. please post using code tags (#)
  19. What do you have so far ? post your code SELECT name FROM table WHERE number = $num
  20. Bad code can cause the problem but even great code can only do so much.. otherwise why would we need to upgrade benchmarking
  21. change the login function to return "" (blank) for failed to login.. return "admin" for the admins and "member" for the members then alter the code to the same a below <?php $folder= $session->login($_POST['user'], $_POST['pass'], isset($_POST['remember'])); /* Login successful */ if(!empty($folder)) { header("Location: www.runningprofiles.com/$folder/index.php");<br> } ?> hope thats makes sense.. if not post the login function and i'll attemp to show you
  22. change if($retval){<br> to if($retval){
  23. This isn't a PHP question.. its HTML/CSS question.. the problem is with your table.. don't loop the table over and over.. just the columns ie <?php ## loop the images out $TDimages =""; $TDimagedata =""; while($r = mysql_fetch_array($ri)) { $imageid = $r['id']; $image = $r['image']; $TDimages .= "<td bgcolor=\"#e8f1fa\" align=\"center\"><img src=\"uploads/$image\"></td>" $TDimagedata .= "<td class=\"header_boxes\" align=\"center\"><span class=\"prof_head\">Image ID [$imageid]</span></td>"; } echo ("<table class=\"sub_table\" align=\"center\" width=\"250\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">"); echo ("<tr>"); echo ($TDimages); echo ("</tr>"); echo ("<tr>"); echo ($TDimagedata); echo ("</tr>"); echo ("<tr>"); echo ("<td bgcolor=\"#e8f1fa\" align=\"center\"> </td>"); echo ("</tr>"); echo ("</table><br />"); ?> (UNTESTED unchecked)
  24. NO thats NOT the reason it doesn't work... thats your problem... Maybe read here
  25. try infact you don't need action="" at all, and by removing $_SERVER['PHP_SELF'] your also clear a XSS security hole
×
×
  • 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.