-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
what is the problem? from the screen shot it looks like a HTML/CSS problem not a php one..
-
i'm not 100% sure what you mean.. but to clear dups from an array you can just use array_unique
-
can you post some code. it should look something like this Force Downloads
-
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
-
Desperately need help with configuring a PHP mailer script
MadTechie replied to goodrichdesigns's topic in PHP Coding Help
you need to pass the requests ie $mail->Body = $_POST['enquiry']; //etc -
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
-
PHP - Encoding - uploading with greek characters on the filename
MadTechie replied to p3040029's topic in PHP Coding Help
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 -
It won't change..Why would it change ??? your viewing not updating what are you expecting ?
-
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
-
i would recommned reading up on writing XML's XML Parser Functions
-
change foreach ($_POST as $k -> $v) { //<---- LINE 51 to foreach ($_POST as $k => $v) { //<---- LINE 51 simple typo
-
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..
-
and without knowing that data myself i have no way of helping...! do you have a database schema and some sample data ?
-
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
-
How can avoid green triangles from excel using php
MadTechie replied to reneeshtk's topic in PHP Coding Help
Need more detail really.. if your creating the excel file, then you messed up in its creation.. (fix it) by changing the stored type.. -
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..
-
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!
-
need code.. please post using code tags (#)
-
What do you have so far ? post your code SELECT name FROM table WHERE number = $num
-
Bad code can cause the problem but even great code can only do so much.. otherwise why would we need to upgrade benchmarking
-
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
-
change if($retval){<br> to if($retval){
-
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)
-
Add a new Auction Item - Cant Figure Out How To Place the Script -
MadTechie replied to FuZzI's topic in PHP Coding Help
NO thats NOT the reason it doesn't work... thats your problem... Maybe read here -
try infact you don't need action="" at all, and by removing $_SERVER['PHP_SELF'] your also clear a XSS security hole