373 Posted Topics
Re: if your query is failing try to echo the query and execute it directly in the mysql and post if any error you getting there. or else post the error you echoing in your php | |
Re: If you looking for the (html ) designing of the website, then web design is the right section to post this thread. or else if you looking out to develop the entire website starting from scratch, right from html design and then php coding. Then you can start coding with … | |
Re: put the break in the default and forgot the closing brace of last else if() | |
Re: try replacing those characters with something else and at the other end , get thme back with the exactly opposite logic. | |
Re: no its right, mysql_insert_id() is the function if you looking for the id of last insert. Is that you looking? | |
Re: The same thing can be done this way properly - [CODE] <? $bone = ''; while($row = mysql_fetch_array($executed_q)) { $bone .= "<item> <record_num>" . $row['record_num'] . "</record_num>" . "<date_field>" .$row['date_field'] . "</date_field>" . "<description>" .$row['description'] . "</description> </item>"; } ?> [/CODE] provided you have 'record_num' , 'date_field' and 'description' as … | |
Re: simply show whatever you want to fetch from database in the html the way you said above. But with the update button do like below - [CODE] if(isset($_POST['update_btn']) && $_POST['update_btn'] =='update') { $col1 = $_POST['elem1']; $col2 = $_POST['elem2']; //your code to update table } [/CODE] | |
Re: its very natural, if you unset some variable using unset($var_name) function, its value disappears.so don't use it if you don't want to reset the variable | |
Re: It depends upon which table has qtitle as a column, and accordingly you can put the 'order by qtitle' in the respective query. | |
Re: If you want to store the date in the db use 'date' as a type; for 'date and time both' =>'Datetime' for 'texts and words' =>'Text' for 'variable strings'=>'Varchar' for storing integer numbers=>'int' and so on | |
Re: If you asking about the php reference manual , you will get it at php.net or else if its the reference variable you looking out for, which stores the address of some other variable and using it we can directly manipulate on the value of that variable getting referenced. Like … | |
Re: nothing is clear from your post, at least post your html here, explain exactly what you trying to achieve. I guess, you trying to set or unset the checkbox in your html with some data fetched from the db.If that's the case, some like below code will help you to … | |
Re: check this, it might help you - [URL="http://http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php"]googel search[/URL] | |
![]() | Re: its very tedious for everybody, just to your entire code. Just post the part of code because of which you think you having the problem. and also describe your problem precisely, it help to diagnose the problem comfortably. ![]() |
my api parsing script has dynamic url, like scriptname.php?limit=100 here this last 100 will change;varying from 0 to the number of lines from the file returned by first cron. And i want to this script to execute as a cron job, but how this parameter 'limit' i should handle. any … | |
Hi, I have a simple vote up and vote down feature, which on clicking calls a js function and increments or decrements the counter variable accordingly. But i have an issue, some malicious script just executing the script to incrment the counter by vote up. I am not allowed to … | |
I have an API parsing script, which inserts into the db more than 40,000 rows.and maybe due large numbers of queries getting fired continuously, after some specific time the script throws "MySQL server has gone away" error. I know the reason behind this error can be closed connection or any … | |
Re: are asking about passing each variable to the API by saying do I have to put every custom variable like .. | |
Re: You can do what ardav says like below - [CODE] <?php //use this Defined array if wanna put keywords directly here //$keywords = array('key1', 'key2','key3','key4','key5','key6','key7'); if(isset($_POST['btn']) && $_POST['btn']!='') { $links_arr = explode(',',$_POST['A']); $link = array(); $keywords = explode(',',$_POST['B']); for($i=0;$i<count($links_arr);$i++) { $elem = "<a href=".$links_arr[$i].">".$keywords[rand(0,count($links_arr))]."</a>"; array_push($link,$elem); } } //then print out … ![]() | |
Re: It can be done, with javascript alone, cal some function which changes the display property of the textarea you want on select of the select list. Start coding it, and post the code if you stuck up somewhere.we will like to help you working this. :) | |
Re: its not possible the crack the md5 encrypted string , because its an one sided encryption. Its been done with the huge database actually. Have a look at this - [url]http://md5crack.com/crackmd5.php[/url] | |
| |
Re: what about background-image:no repeat:x or y whatever ![]() | |
Re: by the error logs it seems that your code is not able to access the file,check the permissions to that file.sometimes it might be the case that the file is permitted but the folder outside of it not , so check with that too. | |
Re: a small hint - [CODE] function show() { var val = document.getElementById('elem').value; //send this "val" to ajax request for the backend page which searches for the "val" and reponse back } </head> <body> <form id="frm" name="frm"> <input type="text" id="elem" name="elem" onkeyup="show();" /> </form> </body> [/CODE] | |
Re: It should be this way, thats why - [CODE] <?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username = $_SESSION['username']; $query = mysql_query("SELECT * FROM pm where to='".$username."' ORDER BY id DESC"); $message = '' ; while ($row = mysql_fetch_array($query)){ $id = $row['id']; … | |
Re: use array_multisort($targetArray,SORT_ASC) | |
Re: files can be transferred to any server from anywhere using ftp services like CuteFTP or FileZilla etc, provided you have the ftp details of that server. I have seen people using paypal for money transfer. And getting some clients is a skill in its real sense. | |
Re: By using exit at the last line you missing the closing brace "{" for the function. But what exactly you want to achieve with this, remember php is server side and the javascript is client side. | |
Re: or else at the same moment you can mail the admin to whatever his id is | |
Re: [QUOTE=shishtawitch;1021577]how can i fix use of undefined constant in php.ini so that [B]constant[/B] and [B]"constant"[/B] should not gives me any error[/QUOTE] nothing is clear with this, exactly what you want to do | |
Re: Its been done in your script that's why those characters are being replaced.Have a look at line 79 and 80.Apostrophie char and the '£' are been replaced over there. You can comment those lines, safely changing the input parameters in the next line. | |
Re: look for the error log of that request on the server and post it here, it helps to diagnose the problem | |
Re: I suspect the code is copied from somewhere else , but it doesn't have the jquerys included in the script. Only that seem to be the problem:( Try and search around the web you will get those include jQueries. | |
Re: There are few more ways to do redirection apart from headers, one of them is through js and other using anchor tag. put the link in the href of <a> tag. | |
Re: There are more than just one reason behind the 500 error, post the part of error log on the server of that particular date.It helps so identify the problem. | |
Re: explain what result you want to achieve through this, and why so many tables for storing just simple data.post your table structures also | |
Re: encrypting the password before storing it to the db is also a good security measure. | |
Re: [CODE] $header .= "Content-Type: text/$contenttype\r\n"; $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $header .= "$message\r\n"; [/CODE] hey like u concatenated all the header together here.just add one more - [CODE] $bcc = "bcc@mail.com" //this is your bcc id $header = "Bcc: $bcc\r\n"; [/CODE] | |
Re: [CODE] for (i=0, n=theForm.radio_btn_name.length; i<n; i++) { if (theForm.radio_btn_name[i].checked) { var checkvalue = theForm.radio_btn_name[i].value; break; } } [/CODE] | |
Re: In the link you provided, there is no gallery, they are just some entries pulled form the db, and the link to their more page. To achieve that you don't need any framework. | |
Re: what do you mean by the result 'yes' or 'no'? You mean number of rows returned zero then result is no and when there are some rows, you mean the result as 'yes'. If thats the case, code below- [CODE] <? $query = "SELECT dis_risk_RecordCheck,dis_risk_DisclosureForm FROM cus_discipline_riskmgmnt"; $result = @mysql_query … | |
Re: function createthumb() expect the first parameter to be image file name and i guess $filename is the directory path. I think there is problem with you passing as $dir1, it seems to be made from $dir and some dir structure.Also what comes in $dirid is not been clear | |
| |
| |
Re: [QUOTE=just_me;1020233]hi guys. can someone show me the right syntax to make link based on the ID using php echo. My coding will not give any input. below is my coding: echo "<td width='101'><a href=view_supplier_details.php?details_ID={$user['report_details_ID']}</td></a>";[/QUOTE] There is a small mistake in your above code, that any tag which starts first should … | |
Re: or else changing the limit of your query on runtime and forming the query like 'select * from tablename where fieldID=something && other conditions limit $start, $pagesize' Now in the above code $pagesize can be 10 if you want to display 10 rows and so on. $start=0 initially and then … | |
Re: [QUOTE=quickworld;1006721]hi.. I want to make a form by php which can enter all of my item.That form must have add , save ,delete button. thnx[/QUOTE] for this you need to have your database too, I am creating a demo form below with database connection and the add, modify,delete features in … | |
Re: At line2 - [CODE] if(isset($action) && $action == "mail") { //your code } [/CODE] | |
Re: This is not some script selling website, this is php discussion forum. If someone tries to code on his own, somebody might help you here. and stop being so demanding |
The End.