167 Posted Topics
Re: [code] <?php mysql_connect("localhost","root",""); mysql_select_db("student") or die("Unable to select database"); ?> <form name="form" action="result.php" method="get"> Subject <input type="text" name="q" /> Topic <input type="text" name="r" /> Ability <input type="text" name="s" /> <input type="submit" name="Submit" value="Search" /> </form> <?php // Get the search variable from URL $q = $_GET['q'] ; $r = $_GET['r'] … | |
Re: [code=php] number_format( $string , 2 , "Decimals" , "Thousands" ); [/code] [code=php] function fomat_brazil ( $case ) { // Presuming the brazilian use "," as the equvilant of "." or the reverse echo number_format( $case , 2 , "," , "." ); } function format_english( $case ) { echo number_format( … | |
Re: You are really expecting allot from us. We would need a little more information and definetly the contents of the file you mentioned. ;) | |
Re: Hmmm, just something to say, I have never seen anyone user the round brackets to take post data... you were usering $_POST('egnejg'); it should be $_POST['fjkgjd']; And you can't use EDO twice I think you must use a different three letters for instance FOD... | |
Re: Basicly the logic is like this, :P You take the time stamp when they log in, store this in two fields last log in time and last movement. Every page they visit you need to runa query to update their last move to the current time stamp. Most systems use … | |
Re: Hmmmm, is this changing often. You mentioned using JavaScript to change them. Will JavaScript be changing them often? If so then you might aswell get JavaScript to order them. Theres little point in PHP organizing them for JavaScript to come and cock them up. | |
Re: [QUOTE=ttowndex;885341]My son's computer had a good sized spyware attack, thanks to his Limewire use (now cutoff). I was able to clean it up using Malware Bytes AntiMalware, but now it will not start the Internet Connection Sharing service. I get an error that says "cannot find specified file" when trying … | |
Re: The field in the mysql database what char type is it? (eg. VARCHAR or INT or SMALLINT etc.) It maybe that the browser is parsing it as a mailto link. Try doing this: [code=php] <?php $newEmail = str_replace( "@" , "[at]" , $email ); echo $newEmail; ?> [/code] If that … | |
Re: [QUOTE=gagan22;884888]hi all, I have done one work in using multiple select box in which i am fetching value of select boxes from database. This all work i have done using ajax. Like when we select country form first select box then it will show state comes under country. But now … | |
Re: I don't speak programming language, I can write it but models, associative array etc. mean nothing to me. :P Can you explain in a little more human terms what exactly you are trying to do? | |
Re: If you stick the file_g..... function at the top of your script in a variable then it should be loading the code before you echo it out. The issue comes as your are essentially loading two websites. Maybe this website has a longer response or load time. Only other thing … | |
Re: Does pdf and txt have to be as a string or jumbled up chars? ![]() | |
Okay so here it goes. I was working on a CMS earlier and I got pissed off with my text editor. So I downloaded a new one. Little to my knowledge it was a bogus. It installed and during the installation my PC got really slow. PC Wizard did not … | |
Re: My thoughts would be that you have in some way put the variable down in the wrong way. Can you post the code so as I can take a closer look? Also try taking a look in firefox right click on your page and then click source. This should give … | |
Re: On the occasions I have replaced a CPU I haven't been warned of any hardware changes either.Then again it has always registered the cores. Have you not thought about getting a new ASUS MOBO for £40 and formatting your HDD and doing a fresh install. At least then you know … | |
Re: is the DB on local host or a remote machine? | |
Re: Not that liekly though. I would have thought echoing out 144 records would most likely give you a memory error. I would have thought that using a style attribute on the p tag to make it display as block and using "clear" with the value of "both" this should make … ![]() | |
Re: Yep make another file called page.php then use JavaScript and AJAX to retrieve it once your document is ready. In this page.php you use file_get_contents() to retrieve the files contents. | |
Re: [QUOTE=OmniX;884327]If you are asking for a whole admin setup your opening up a can of worms that is a very time consuming and complex task else check out Atlis link to PHPMailer to send mail via php.[/QUOTE] OmniX has a point if you do not have this knowledge yourself as … | |
Hey guys, Basicly my nephew has just been born and I need to put soem images on my site for my grand parents (the great grad parents) to see. I can upload smaller galleries and all is well but for some reason if I upload a larger archive, for example … | |
Re: [color=red]Okay so the version you have tried that is working, can you gimme an update of the code please so I know what is happenging now, Thanks.[/color] Ignore what I juts wrote :P | |
Re: Well they are extremely easy to make. Do you have much PHP/MySql knowledge? I could probably whack one out in a few hours. Of course for me to give you any ideas of how this might be done I would need to know what you have so far so as … | |
Re: Or furthermore Google: PHP upload to MySql database. Depends on wther you wish to store the image binary in the MySql database or in a webserver directory and just store the location in the MySql database. | |
Re: So you are trying to send a windows word document over fax to someone via a webform? | |
Re: You see the thing is people need a programmer that can difficult things, hence the reason why they are not or can not do it them selves. You wouldn't find any jobs on just about any freelance programer job website. However if I tell you a website will you admit … | |
Re: [QUOTE=OmniX;880807]Im pretty sure my hosting is LINUX but I run WINDOWS. But I use windows to access both not linux. So I think I would need to know how to install it on windows first and then contact me web host about installing it on the server? or if i … | |
Re: I had a toshiba with XP media center and there was a similar issue. I found hitting the windows key and L will lock the computer (switch users, not sure) and you can then click the shut down button and it shuts down. I am affraid mike this was due … | |
| |
Re: have you tried to download it either via microsoft update (if you downloaded it via a browser) or vice versa? | |
Re: [QUOTE=nish123;878733]hello friendz.. jst a small query.. i made simple userinput form as userform.php.... after submit the form..values are passed to adduser.php for inserting to database... i have a serverside validation tht username cant be same...!! [code]if(username is laready exist) { [B]header('location:userform.php?error=1');[/B]//user send back to userinput form.. } else { [B]header('location:login.php');[/B]//user … | |
Re: Can you give me the exact result resource error please. This will help me diagnose the issue. Aslo you will need to post your script in [ code ] tags. | |
Re: Does it work if you only order by one of the terms by removing the + and the following statement? | |
Re: I always thought the first was the start recoed and the second was the last record. I think 3,3 is wrong run an if statement to make sure the count variable is not equal to or greater to 3 this would confuse MySql's brain. | |
Re: Can you upload an excel file so as we know what kinda things your trying to add to mysql? | |
Re: Got a screen shot I am not quite following you? | |
Re: [QUOTE=Ddywalgi;879715]Can anyone please help.I am trying to add values to a table from 2 dropdown lists which are dynamically poulated. I have managed to achieve it for one drop list but have added a second and cannot create the correct syntax to add both values to the table. [CODE=php] // … | |
Re: Well fisrt off ytour get is retreiving names that don't have an x in the yet you put it at the end... Can you give us more of an idea what the forbidden error is. Either a screen shot or an exact copy of the text displayed. Thanks. | |
Re: This way would probably be better and only use one line. [code=php] $name = fetch("SELECT `name` FROM profile WHERE `id` = '$id'"); echo $name; [/code] | |
Re: WinSCP is a good one. Well, I was thinking more along the lines of .htaccess. You could add a mimetype decalring JPG as an image. This as far as I know will work fine. But it is a good idea to change them all. You could run a simple command … | |
Re: Well as far asd I knew (and thats not too much) I thought soem big hardware changes caused you to reformat your hard drive. That was my instail thought but then I remembered back in the Pentium III days I could switvh between two without anything going wrong. Okay my … | |
| |
Re: Hmmmm, maybe you could try make one yourself, it would give you an easier customized page controler and means you know exactly how it works and how to change it etc. If you can't or don't want to however then you will need to post the code so as we … | |
Re: You can however do this in the mail function. Your from variable, we haven't got it can you show us it so as we know what you are doing with it. | |
Re: I've never used the method you are trying to use so I wouldn't be able to help. I would just run a query to fetch the data then run another query to insert it into another table. To be honest with you mate you might save yourself about minute using … | |
Re: [QUOTE=sanusiemmanuel;873016]pls, help! how can i connect to mysql 5.0 database with vb6 and how do i connect to mysql database from php5.Where do i download the necessary drivers.[/QUOTE] Not sure about VB but PHP5 should be like this: [code=php] $con = mysql_connect( "HOST ADDRESS" , "USERNAME" , "PASSWORD" ); // … | |
Hello, I have been working on some scripts for a forthcoming site and I have run across an issue. The issue being that when uploading large files (60Mb + ) will only be validated after they have finished being uploaded to a temporary directory. As you could probably imagine this … | |
I have done these scripts a thousand times. I still however can't seem to sort out this issue. The issue is that this block of code should return 3 images although it doesn't it only returns one image. The other one I am getting is from a different loop that … | |
Re: [QUOTE=HB25;849261]Hi I will explain what I am trying to do: I have used MYPHP admin to create a database where user booking details will be stored in a table called bookings. Now I need to retrieve all the bookings for a specific date. For achieving this I have created two … | |
Re: I presume you mean it doesn't send to the database? The only thing I have noticed is that the way in wich you are connecting is not the way in wich I would. I have seen others connect this way but they were all having problems, my advice would be … |
The End.