1,741 Posted Topics
Re: [QUOTE=Will Gresham;]I love the 'End' key on my keyboard :)[/QUOTE] Only if you knew where "Start new thread" button is. Else, it's just another key, like, Page up or Page down. And I agree, many people (newcomers) are still searching for this button. :) | |
Re: Yuck.. After we run out of all the letters (A to Z excluding F and S), what should we do ? :P Edit: I didn't read the description properly :( My mistake! | |
Re: [QUOTE=Designer_101;495809]This is a really common problem that occurs when using php to redirect users. The header must be at the top of the page (first thing the browser reads). [/QUOTE] Wrong. The header can be anywhere in the script. The only thing is, you shouldn't output anything before the header … | |
Re: If you hover over the popularity bar, You'll see the total number of views for that thread. I remember Dani mentioning this sometime ago. | |
Re: [QUOTE=it200219;1237868]I have emailed you what I have in my code. Thank you[/QUOTE] Please keep it [b]on the site[/b]. That's what the forum is for. :) | |
Re: The 1st warning, [quote] Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/ozwww04/public_html/auction/yourfeedback.php on line 65 [/quote] is because of this query. [code=mysql] SELECT f.*,a.title FROM PHPAUCTIONXL_feedbacks f LEFT OUTER JOIN PHPAUCTIONXL_auctions a ON a.id=f.auction_id WHERE rated_user_id='$secid' ORDER by feedbackdate DESC LIMIT $left_limit,$lines [/code] Right after … | |
Re: Sorry ! I don't know much about ajax+xml. Maybe you will understand what he's saying. Check this out. [url]http://james.revillini.com/2006/10/27/no-element-found-in-firebug-or-firefox-javascript-console/[/url] and [url]http://james.revillini.com/2006/10/27/%E2%80%98no-element-found%E2%80%99-in-firebug-or-firefox-javascript-console-part-2/[/url] All the best! | |
Re: Yep.. Can you show us the code ? | |
Re: Hi. Welcome to Daniweb. Instead of returning $referral, you are returning $result. $result will have the [i]mysql result resource[/i] from the previous query [select query] if the query was successful OR it will have 'false' if the query fails. Read more on mysql_query [url=http://php.net/manual/en/function.mysql-query.php]here. [/url] | |
Re: Run a cron job every day/night. Check if the date saved in the table has passed expiry date. If yes, send mail, update the table with relevant changes. If no, do nothing. | |
Re: Use [url=http://php.net/manual/en/function.array-multisort.php] array_multisort.[/url] Look at the examples to see the usage. | |
Re: Use Ajax. Refer [url=http://www.w3schools.com/ajax/ajax_database.asp] this [/url]. | |
Re: Check php's [url=http://php.net/manual/en/function.mysql-insert-id.php] mysql_insert_id [/url] or mysql's [url=http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_last-insert-id] last_insert_id [/url] Both functions return the auto increment id from the previous insert query. | |
Re: Now even Daniweb has the same color theme [purple] as my company's website :( .I see purple even in my dreams now! :icon_frown: Anyways, The layout looks nice and is definitely faster than before. But I have a few complaints. 1. Mouseover quote. It really hurt my eyes to follow … | |
Re: @shekar.bdn, Don't create multiple threads asking incomplete questions like these. Read forum rules and follow it. Thread closed. | |
Re: No. What he means is, he wants an array with user defined variables as index. Eg. instead of accessing the array like, $arr[0], $arr[1],.. he wants to access it like, $arr[$data_01], $arr[$data_02],... I dont think its possible. | |
Re: What is the big deal about these badges anyway ? It isn't a [B]real[/B] badge that you can show off to the kids playing monopoly and say, "Take a good look at my [B]featured poster[/B] badge. I am a famous personality. k. bai!!! :twisted: " . :icon_rolleyes: Stop whining Serkan. … | |
Re: con, insulate, insult Treaty | |
| |
Re: niths, Read [url=http://www.daniweb.com/forums/faq.php?faq=daniweb_policies] forum rules[/url]. [quote] Do not post threads with generic subjects such as "HELP ME" or "PROBLEM". Instead, clearly [B]state a phrase describing the problem as the thread's title. Do not flood the forum by posting the same question more than once[/B] (ie in multiple forums). [/quote] Use … | |
Re: Nope. You should write your own popup for that (with 2 buttons ie.,) | |
Re: Nothing wrong with the above code. Do you get any errors ? | |
Re: Wow! This [i]Later--[/i] trend is catching up. Later-- | |
Re: Gawd! customtshirts, Do you even have a job ? Oh wait, you *do* have a job. Your job is to create stupid dumb threads like these ones and promote your signature links. Wow! I get it. It must be your dream job ? eh? Please give us all a break, … | |
Re: It's called friendly urls. It's done through mod_rewrite with apache. Search in php forum, as there have been many threads on this already. I haven't worked on it [url rewriting], so this is all I can say. | |
Re: [QUOTE=mschroeder;823783]GAH! Just realized how old this thread is, how did it get resurrected?!:-O[/QUOTE] ;) Someone read the [url=http://en.wikipedia.org/wiki/Book_of_the_Dead][b]Book of the dead [/b][/url] I suppose ! | |
Re: Hi, The bot doesn't quite work as expected. [quote] Welcome to the PHP chat room. nav33n Chat to PHP robot Robo answer Alright you can build a dynamic xml playlist using php to complete this task but you'll need to have flash coding under you belt plus know how to … ![]() | |
Re: [code] <body onload='document.getElementById("username").focus();'> [/code] This will pass the focus to the textbox with id "username" after the document is loaded. | |
Re: [QUOTE=colweb;1189170]Online02 will you please read the rules before posting!![/QUOTE] Online02 has been warned. Please report spammers to keep Daniweb clean :) Thanks. | |
Re: What do you mean by without using for or while loop ? What's the problem in inserting a record directly ? ie., [icode]insert into tablename (col1,col2) values ('val1','val2') [/icode] | |
Re: Welcome back (I don't know you though). Could you explain what exactly are you looking for ? | |
Re: huh ? When you execute your query, send the header back to the same page. It will work. <?php if(isset($_POST['submit'])) {//if delete button is pressed $id=$_POST['id']; $q="delete from table where id = '$id'"; mysql_query($q); header("location: samepage.php"); } <html> <body> <form method="post" action="samepage.php"> <!-- list the images and have a delete … | |
Re: [QUOTE=customtshirts;1155515]Where is the "T shirt"? I didn't find anything like this in your post.[/QUOTE] You have all the "T shirt" in your signature, why ask for more ? What's the point in bumping this thread ? I am sure you want to promote your website/signature. eh ? Did you know … | |
Re: look at the date before bumping an old thread. :) Thanks. | |
Re: In php, we make use of [url=http://in.php.net/microtime] microtime [/url] to find the execution time. [code=php] $starttime = microtime(); $query = mysql_query("select * from table"); $endtime = microtime(); [/code] Then calculate the difference between $starttime and $endtime. I am sure you can do the same in java as well ! | |
Re: I dont know if this can help, but read out the user comments in [url=http://dev.mysql.com/doc/refman/5.1/en/connecting.html] this [/url] page. Cheers, Naveen | |
Re: [url=http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html]last_insert_id() [/url] in mysql or [url=http://in2.php.net/mysql_insert_id]mysql_insert_id() [/url] in php gets the value of the autoincrement field from the last insert query. Eg. [code=php] //using mysql's LAST_INSERT_ID() // considering clientID as auto increment - primary key $add_to_client_query = "insert into client (name,age) values ('test','20')"; mysql_query($add_to_client_query); $add_to_booking_query = "insert into booking (busname, … | |
Re: Uploading images to a table ? 99% of the people who upload an image wouldn't upload it to the table. Instead, they upload the image to the filesystem and insert the path of the image to the table. Fetching the blob data from the database just adds on to the … | |
Re: You have [code] if(isset($_POST['submit'])) [/code] inside [quote] if($_GET["cmd"]=="edit") [/quote] You get the form, update the details, etc etc. All fine up to this stage. But when you click on submit, the form submits to [code] $_SERVER['PHP_SELF'][/code] ie., info.php . It will never enter the first condition of [code] if($_GET["cmd"]=="edit") [/code] … | |
Re: Hi. You can do any of these 3 things. 1. Initialize every variable before using. [code] $x = ""; $y = 0; $z = array(); .... [/code] 2. Change your php.ini file and set error_reporting to the following. [quote] error_reporting = E_ALL & ~E_NOTICE [/quote] This will show all the … | |
Re: [quote] $result = mysqli_query($dbcon,[b]$result[/b]) [/quote] Is this a typo ? Apart from that, nothing is wrong with the query. | |
Re: [code=php] <?php $conn=mysql_connect("localhost","root"); mysql_select_db("test"); echo "Select a name: <select name='name'>"; $query="select name from users"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $name=$row['name']; echo "<option value='$name'>$name</option>": } echo "</select>"; ?> [/code] This will show all the names of table users in a dropdown box. If this isnt what you were looking for, can you be more … | |
Re: You can set [url=http://php.net/manual/en/errorfunc.configuration.php] display_errors [/url] to off in your php.ini or add a flag in [url=http://zeo.unic.net.my/hide-php-errors-using-htaccess/] htaccess [/url]. | |
Re: [QUOTE=Ancient Dragon;1121513]Welcome to DaniWeb. Where are you from anyway? Never heard of the name Nidhi before.[/QUOTE] It's a sanskrit word for wealth/treasure. :) @nidhi, Welcome to Daniweb! :) | |
Re: [QUOTE=cwarn23;1127564] Hope that helps as I have read all about the australian copywrite laws.[/QUOTE] Every country has its own copyright laws. My question is, Is there a general set of copyright rules/laws [something like, International Copyright laws ?] to which all the countries respond to ? ![]() | |
Re: As simple as it sounds, Your code [what you have at the moment on the page] is correct, but you should name your script from ics2_design.html to ics2_design.php OR you should make your apache parse html files as php. If you view the source of the page, you will see … | |
Re: I hope you know html and php ? If you don't know, then you should learn it first. |
The End.