373 Posted Topics

Member Avatar for Phil++

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

Member Avatar for liamfriel
0
193
Member Avatar for anahita20

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 …

Member Avatar for network18
0
60
Member Avatar for whitestream6

put the break in the default and forgot the closing brace of last else if()

Member Avatar for network18
0
100
Member Avatar for Facte

try replacing those characters with something else and at the other end , get thme back with the exactly opposite logic.

Member Avatar for joles
0
179
Member Avatar for wayz1229

no its right, mysql_insert_id() is the function if you looking for the id of last insert. Is that you looking?

Member Avatar for Graphix
0
151
Member Avatar for rouse

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 …

Member Avatar for rouse
0
62
Member Avatar for K0ns3rv

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]

Member Avatar for network18
0
95
Member Avatar for itsrahulk

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

Member Avatar for itsrahulk
0
174
Member Avatar for wayz1229

It depends upon which table has qtitle as a column, and accordingly you can put the 'order by qtitle' in the respective query.

Member Avatar for wayz1229
0
103
Member Avatar for garcon1986

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

Member Avatar for garcon1986
0
2K
Member Avatar for niche1

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 …

Member Avatar for edwinhermann
0
115
Member Avatar for sha09

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 …

Member Avatar for network18
0
1K
Member Avatar for ukumar

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]

Member Avatar for network18
0
53
Member Avatar for LindaLou

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.

Member Avatar for LindaLou
0
80
Member Avatar for network18

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 …

Member Avatar for network18
0
1K
Member Avatar for network18

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 …

Member Avatar for network18
0
105
Member Avatar for network18

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 …

Member Avatar for network18
0
705
Member Avatar for the_programmer
Member Avatar for the_programmer
0
91
Member Avatar for monicka87

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 …

Member Avatar for diafol
0
307
Member Avatar for bingot

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

Member Avatar for muralibobby2015
0
143
Member Avatar for lifeworks

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]

Member Avatar for liamfriel
0
268
Member Avatar for sarithak
Member Avatar for AdventDeo
Member Avatar for diafol
0
128
Member Avatar for samarudge

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.

Member Avatar for network18
0
105
Member Avatar for Nareshdeven

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]

Member Avatar for network18
0
71
Member Avatar for web3

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

Member Avatar for web3
0
112
Member Avatar for macneato
Member Avatar for vaultdweller123

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.

Member Avatar for vaultdweller123
0
157
Member Avatar for akkkk

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.

Member Avatar for akkkk
0
247
Member Avatar for j_limboo
Member Avatar for shishtawitch

[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

Member Avatar for Atli
0
156
Member Avatar for Facte

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.

Member Avatar for network18
0
99
Member Avatar for shishtawitch

look for the error log of that request on the server and post it here, it helps to diagnose the problem

Member Avatar for network18
0
51
Member Avatar for maheshks230

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.

Member Avatar for network18
-2
177
Member Avatar for the_programmer

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.

Member Avatar for network18
0
100
Member Avatar for mjenn2

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.

Member Avatar for network18
0
111
Member Avatar for aerliana

explain what result you want to achieve through this, and why so many tables for storing just simple data.post your table structures also

Member Avatar for network18
0
62
Member Avatar for ultras1

encrypting the password before storing it to the db is also a good security measure.

Member Avatar for smartness
0
124
Member Avatar for prnv.pr

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

Member Avatar for prnv.pr
0
103
Member Avatar for lcyew

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

Member Avatar for lcyew
0
123
Member Avatar for sam023

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.

Member Avatar for O71v13r
0
121
Member Avatar for sstewart

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 …

Member Avatar for sstewart
0
189
Member Avatar for sarithak

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

Member Avatar for sarithak
0
153
Member Avatar for mvchandoo
Member Avatar for mvchandoo
0
129
Member Avatar for OnIIcE
Member Avatar for just_me

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

Member Avatar for network18
0
100
Member Avatar for wood1e

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 …

Member Avatar for network18
0
114
Member Avatar for quickworld

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

Member Avatar for quickworld
0
107
Member Avatar for streetrodfanati

At line2 - [CODE] if(isset($action) && $action == "mail") { //your code } [/CODE]

Member Avatar for streetrodfanati
0
97
Member Avatar for bhadong04

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

Member Avatar for ithelp
-1
248

The End.