1,741 Posted Topics

Member Avatar for Narue

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.

Member Avatar for WaltP
0
349
Member Avatar for sureronald

[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 …

Member Avatar for sureronald
0
100
Member Avatar for duxbrain

[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 :)

Member Avatar for nav33n
0
112
Member Avatar for brechtjah

[quote] if($conn_server = true) { [/quote] This is a comparison operator and you are comparing if the value of $conn_server is "true". So, you should use == instead of =. Apart from that, I don't see anything wrong with your code which could cause an error.

Member Avatar for brechtjah
0
153
Member Avatar for punitdam

[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] …

Member Avatar for nav33n
0
202
Member Avatar for etc123

[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 …

Member Avatar for nav33n
0
139
Member Avatar for otooleb6

[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 …

Member Avatar for nav33n
0
87
Member Avatar for silh

[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] …

Member Avatar for silh
1
276
Member Avatar for gagan22

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]

Member Avatar for nav33n
0
294
Member Avatar for vidhyaponnusamy

You have to assign the return value to a variable before using it. ie.,[icode] $result = selecttbl("user"); [/icode]

Member Avatar for vidhyaponnusamy
0
85
Member Avatar for queenc
Member Avatar for BzzBee

If you have a linux server, then maybe this could help. [url]http://www.modwest.com/help/kb5-125.html[/url]

Member Avatar for BzzBee
0
151
Member Avatar for cwarn23

[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 …

Member Avatar for cwarn23
0
192
Member Avatar for santhanalakshmi

Use & not +. [code=php] header("location: somepage.php?username=".$username."&password=".$password); [/code]

Member Avatar for santhanalakshmi
0
72
Member Avatar for xila

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' …

Member Avatar for nav33n
0
129
Member Avatar for dude1

[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] …

Member Avatar for nav33n
0
99
Member Avatar for baudday

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'") …

Member Avatar for nav33n
0
714
Member Avatar for Phaelax

[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!

Member Avatar for nav33n
0
131
Member Avatar for arvindikchari
Member Avatar for arvindikchari
0
136
Member Avatar for mrcniceguy

Try changing the upload_max_filesize in php.ini . The default filesize for upload is 2mb.

Member Avatar for mrcniceguy
0
163
Member Avatar for kevin wood

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 …

Member Avatar for kevin wood
0
134
Member Avatar for kevin wood
Member Avatar for nav33n
0
149
Member Avatar for srilakshmitr7

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]

Member Avatar for nav33n
0
102
Member Avatar for queenc

[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]

Member Avatar for queenc
0
124
Member Avatar for dragon@dragon64

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 …

Member Avatar for nav33n
0
94
Member Avatar for shasha821110

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!

Member Avatar for nav33n
0
119
Member Avatar for queenc
Member Avatar for queenc
0
76
Member Avatar for changeco

[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 …

Member Avatar for changeco
0
107
Member Avatar for veledrom

I tried all the scripts and they work (on both IE and mozilla) ! What error are you getting exactly ?

Member Avatar for nav33n
0
166
Member Avatar for Designer_101

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].

Member Avatar for nav33n
0
50
Member Avatar for darkagn
Member Avatar for frenchwr

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.

Member Avatar for darkagn
0
83
Member Avatar for xgmx

[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:

Member Avatar for darkagn
0
106
Member Avatar for hilimili

[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 :-/

Member Avatar for mrcniceguy
0
84
Member Avatar for atheist

[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 …

Member Avatar for atheist
0
132
Member Avatar for lllllIllIlllI

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

Member Avatar for MidiMagic
0
177
Member Avatar for Dave Sinkula

[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 …

Member Avatar for jbennet
0
4K
Member Avatar for 1baxter1

[url]http://in2.php.net/manual/en/features.file-upload.errors.php[/url] Check the reason for the error code 2.

Member Avatar for 1baxter1
0
120
Member Avatar for srpa01red

[quote] is it possible to insert the current timestamp while loading the data in the field created_at [/quote] Yes. Use [url=http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_now] now() [/url]. date() doesn't work.

Member Avatar for nav33n
0
72
Member Avatar for Acute

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.

Member Avatar for nav33n
0
60
Member Avatar for The Dude

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 …

Member Avatar for chriswellings
0
275
Member Avatar for NicAx64

[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:

Member Avatar for nav33n
0
242
Member Avatar for Acute

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 …

Member Avatar for nathenastle
0
98
Member Avatar for claritydigital

[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 …

Member Avatar for peter_budo
0
226
Member Avatar for finesse

[url]http://www.webyog.com/faq/23_36_en.html[/url] Hope that helps! :)

Member Avatar for cwarn23
0
104
Member Avatar for serkan sendur

[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 ? …

Member Avatar for nav33n
0
105
Member Avatar for alexgv14

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) …

Member Avatar for alexgv14
0
88
Member Avatar for serkan sendur

[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 ?

Member Avatar for serkan sendur
0
178
Member Avatar for SofiaMaria

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]

Member Avatar for nav33n
0
1K
Member Avatar for phpNewbie

> 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 …

Member Avatar for phpNewbie
0
152

The End.