1,741 Posted Topics
Re: I guess even this thread is acting the same way ? [url]http://www.daniweb.com/forums/post830784.html[/url] P.S. Works fine in IE6 and Chrome. | |
Re: [quote] (1) I have been doing php for quite some time and I would like to know how a link such as this one works: [url]http://www.rooftop.com/forums/index.php?do=login&f=31[/url] My problem is the part that comes after the question mark. I have been using joomla of late and such links are very common … | |
Re: [QUOTE=duxbrain;840196] So this looked like a nice site to belong to. Thought I would say hi. Bernie[/QUOTE] Hi Bernie! Welcome to Daniweb :) | |
Re: [quote]When I try to view this it gives Apache and PHP up but it is not showing list of users as expected neither giving any error message. When I try to connect to mysql using loging root and password root it get connected but through PHP it is not working.[/quote] … | |
Re: [QUOTE=etc123;838668]I don't understand... You're using Xampp together with MYSQL?[/QUOTE] Huh! Are you talking to yourself ? [QUOTE=etc123;828706]I am using Wamp server, I reinstalled Wamp after uninstalling it to try Xaamp.I have completely removed all of the Xaamp files.Recently,I opened my phpmyadmin directory and discovered an error message which hinted to … | |
![]() | Re: [QUOTE=otooleb6;838520]Hi everyone, I am creating a student timetable. I have the table done in html and I now need to input the values in the database. I was trying to use something along the lines of if(day = 'Monday' && time = '9') { echo(subject); } i keep getting an … |
Re: [QUOTE=cwarn23;838485]The reason is that you cannot pass url variables through the action= but I am not sure if it is the same with the post method though.[/QUOTE] It works fine with post method. [code=php] <?php echo $_GET['action']; ?> <html> <body> <form action="test.php?action=test" method="post"> <input type="submit" value="Test"/> </form> </body> </html> [/code] … | |
Re: escape single quotes and forward slashes by using mysql_real_escape_string. This will prevent sql injections as well. Ie., [code=php] $leavetype = mysql_real_escape_string($leavetype); $fullday = mysql_real_escape_string($fullday); // and so on... [/code] | |
Re: You have to assign the return value to a variable before using it. ie.,[icode] $result = selecttbl("user"); [/icode] | |
Re: If you have a linux server, then maybe this could help. [url]http://www.modwest.com/help/kb5-125.html[/url] | |
Re: [QUOTE=cwarn23;837666]I just re-checked my code to see why that is and it seems for forms with XSS injection the feature needed adding (very simular to the SQL injection feature) however I have a problem with a preg_match_all statement I use. The following is the preg match all statement and it … | |
Re: Use & not +. [code=php] header("location: somepage.php?username=".$username."&password=".$password); [/code] | |
Re: Could be many reasons. 1. php short tags may be disabled. Use <?php 2. Register globals may be disabled. Use $_POST['form_element'] instead of $form_element. This is an example. [code=php] <?php if(isset($_POST['submit'])) { foreach($_POST['checkbox'] as $checked) { //delete checked record } } ?> <html> <body> <form method='post'> <input type='checkbox' name='checkbox[]' value='1' … | |
Re: [QUOTE=dude1;837070]i have a database and it has a column thats id its auto incrementing and one called download_link i want to have that autofill with a url thats concatinated with my id so localhost/upload/downloadtest.php?id= adds the id and becomes localhost/upload/downloadtest.php?id=1 localhost/upload/downloadtest.php?id=2 localhost/upload/downloadtest.php?id=3 etc how could i do that be done[/QUOTE] … | |
Re: Looking at your query, I guess $user is a string. So [code=php] $realUser_q = mysql_query("SELECT Username FROM my_db WHERE Username = $user ") or die(mysql_error()); [/code] will generate an error. You have to put single quotes around $user. ie., [code=php] $realUser_q = mysql_query("SELECT Username FROM my_db WHERE Username = '$user'") … | |
Re: [QUOTE=AnDurugkar;836973]check if this works This error happens when you do syntax error in the code of the command [CODE] header("Location:$redirectto") [/CODE], i.e. used to redirect to the location[/QUOTE] Stop reviving old dead threads for god's sake! | |
Re: Replace all occurance of [b]" [/b] with [b]'[/b] in your message. :) | |
Re: Try changing the upload_max_filesize in php.ini . The default filesize for upload is 2mb. | |
Re: Pretty straight forward. You are having <?=$options?> in echo. End the echo statement then echo $options. Example, [code=php] echo'<form action=\"insert_interest.php\" method=\"POST\"> <h4>Select which course you would like to register your interest in</h4> <h5>Option 1</h5> <select name=\"radio\"> <OPTION VALUE=0>Please select an option'; echo $options; echo '</select> <h5>Option 2</h5> (only select more … | |
Re: I can see scroll bar on both the cases. :-/ In both IE and FF3. | |
Re: Convert that date to unixtimestamp using strtotime. Then use date("l") to get the day. [url]http://in.php.net/date[/url] eg. [code=php] $date = "2009-03-31"; $timestamp = strtotime($date); echo date("l",$timestamp); [/code] | |
Re: [code=php] $date = "2009-03-31"; echo date("Y-m-d", strtotime($date ."+n days" )); //where n is the number of days to be added [/code] | |
Re: Its not a good idea to store images in the table. The time required to fetch an image from the table and displaying it is more (obviously) than displaying the image from the file system. You can save the image in the file system and save its path in the … | |
Re: If you observe properly, there is one small difference between [quote] [url]http://download.finance.yahoo.com/d/quotes.csv?s=GOOG[/url] &f=sl1d1t1c1ohgv&e=.csv [/quote] and [quote][url]http://download.finance.yahoo.com/d/quotes.csv?s=GOOG&f=sl1d1t1c1ohgv&e=.csv[/url] [/quote] And that's the extra space after GOOG. Try trimming $symbol and check again! | |
Re: You have to convert the dates to unixtimestamp using strtotime. | |
Re: [quote]Since I'm using tools for this and NOT hand coding things, I'm a little lost... Ideally using an AJAX script to check on the orgcode input field would rock... [/quote] I don't know what exactly you mean by tools. But check [url=http://www.w3schools.com/PHP/php_ajax_database.asp] this [/url] example. In the example, there is … | |
Re: I tried all the scripts and they work (on both IE and mozilla) ! What error are you getting exactly ? | |
Re: I am not aware of any function in javascript which is equivalent to php's exit function ! But I guess you are looking for [url=http://www.w3schools.com/TAGS/tag_noscript.asp]<noscript> [/url]. | |
Re: I liked the old style. This one is compact! | |
Re: Yes, possible. Use [url=http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-add]date_add [/url] function. | |
Re: [QUOTE=xgmx;828315]How about a forum for support for games?[/QUOTE] Why ? Probably to solve [url=http://www.daniweb.com/forums/thread182366.html] this [/url] query ? Eh ?:icon_rolleyes: | |
Re: [QUOTE=hilimili;834943]Hi-DaniWeb community! I'm New here and already have a question: What software or program used <URL SNIPPED> Best Regards hilimili[/QUOTE] Why do I so strongly feel this is an advertisement :-/ | |
Re: [code=php] <?php // find out the domain: $domain = $_SERVER['HTTP_HOST']; // find out the path to the current file: $path = $_SERVER['SCRIPT_NAME']; // find out the QueryString: $queryString = $_SERVER['QUERY_STRING']; // put it all together: $url = "http://" . $domain . $path . "?" . $queryString; echo "The current URL … | |
Re: My post count was increased by 200, solved thread was increased by 30 odd and rep power was increased by 1 ! I was wondering if it was a dream only to be dragged back to reality :D | |
Re: [quote]I agree with AD, it's damn hard to quit, I've been smoking 10+ years, but eventually I'll succeed. [/quote] I can understand how you feel! I started smoking 6 years ago and finding it very difficult to quit! I had quit for a week, but I didn't have enough will … | |
Re: [url]http://in2.php.net/manual/en/features.file-upload.errors.php[/url] Check the reason for the error code 2. | |
Re: It is possible to open excel in a browser. Google does it with google spreadsheet. :) Maybe there are api's for it. I am not sure. | |
Re: Your Brain Usage Profile: Auditory : 66% Visual : 33% Left : 58% Right : 41% Naveen, you are mildly left-hemisphere dominant while showing a slight preference for auditory processing. This overall combination seems to indicate a well-working blend of logic and judgment and organization, with sufficient intuition, perception and … | |
Re: [QUOTE=NicAx64;831363] Return your girlfriend and install linux guys ![/QUOTE] Okay..... Then what ? Cry out loud for being [url=http://www.daniweb.com/forums/thread180643.html] single[/url] ? :icon_rolleyes: | |
Re: What do you mean by select forms ? If you don't want to use forms you can try this. [url]http://www.phpclasses.org/browse/package/3104.html[/url] If you can use the form, then you can show the data retrieved by the database in a text field and a button at the end, which when clicked, updates … | |
Re: [QUOTE=claritydigital;824756]And how is that... I asked the same question, on another forum, and i just got a pretty decent, and well explained reply.... Unlike yours... What a sad misrepresentation you are for this awesome website....[/QUOTE] Why don't you share that reply with the members of this awesome website ? Let … | |
Re: [url]http://www.webyog.com/faq/23_36_en.html[/url] Hope that helps! :) | |
Re: [QUOTE=serkan sendur;828532]ok guys, i am persuaded, cheating is wrong, i gave an empty paper yesterday, and i am not gonna pass the class without understanding these hardware level cpu operations. you won![/QUOTE] How did you finally come to the conclusion that cheating is wrong ? Why didn't you cheat ? … | |
Re: You have done 99% of the work already. You just have to use [b][][/b] with $media_link and $media_title. [code=php] <?php // Load and parse the XML document $rss = simplexml_load_file('http://www.ubcmiami.org/podcasts/podcast.xml'); $title = $rss->channel->title; // Here we'll put a loop to include each item's title and link foreach ($rss->channel->item as $item) … | |
Re: [QUOTE=serkan sendur;827852]in turkish we have a saying for this : the panth would not stick to your ass unless your ass has been used to it.[/QUOTE] :confused: :-/ What does that even mean ? | |
Re: You have an error in your query. It isn't returning a valid resource. Print out $query, execute it in phpmyadmin/mysql. Then you ll know what's the error. You can also give die(mysql_error()); ie., [icode]$result=mysql_query($query,$conn) or die(mysql_error());[/icode] | |
Re: > start quote: <html> <head> </head> <body> <?php // MySQL Connection Information $server = "localhost"; $username = "sharlene"; $password = ""; $dbname = "baby_names"; // MySQL Connect String $connection = mysql_connect($server,$username,$password) or die("Can't Connect to Mysql Server: ".mysql_error()); // Select the database mysql_select_db($dbname) or die("Can't connect to database: ".mysql_error()); $gender … |
The End.