1,376 Posted Topics

Member Avatar for remoh71

Although I don't know the oop equivalent the fgllowing is using the url for which column to sort by. [CODE]$this->sqlGetAllCmds = "select id,url,type,name,label from commands order by ".mysql_real_escape_string($_GET['orderby']);[/CODE] Or if you want to order by multiple columns in case of duplicate rows then the following [CODE]$this->sqlGetAllCmds = "select id,url,type,name,label from …

Member Avatar for remoh71
0
1K
Member Avatar for cwarn23

Hi and I often use daniweb on computers with an internet speed of around 2kbps to 24kbps to 64kbps and when using daniweb while on 2kbps and 24kbps compared to other sites like google and phpfreaks, daniweb takes a long time to load (~2mins). My suggestion is would it be …

Member Avatar for jbennet
0
345
Member Avatar for dlannetts
Member Avatar for cwarn23
0
88
Member Avatar for kuteinheart

[QUOTE=kuteinheart;1127904][CODE] <?php session_start(); //rest of my code $_SESSION['Username']=$row['Username']; ?> //code on second page for the form is <td><input readonly="Username" type="text" name="Username" value="<?php session_start(); echo $_SESSION['Username']; ?>"></td> [/CODE][/QUOTE] That code is invalid and should be as follows: [CODE] <?php session_start(); //rest of my code $_SESSION['Username']=$row['Username']; ?> //code on second page for …

Member Avatar for cwarn23
0
122
Member Avatar for vizz

[CODE]<?php $heading=array(0=>'Heading 1',1=>'heading 2'); for ($i=0;$row=mysql_fetch_assoc($result);$i++) { echo '<div style="background-color:orange;text-align:center"> <p>'.$heading[$i].'</p> </div> <div style="border:1px solid black"> <p>Content section</p> </div>'; }[/CODE]

Member Avatar for cwarn23
0
282
Member Avatar for accountholder

If this is solved than please click the solved button but if it's not then continue reading... The only 2 ways I have known php to create subdomains is 1 - by getting php to edit the apache config file which I wouldn't recommend. The second option is to create …

Member Avatar for cwarn23
0
123
Member Avatar for zalFG

Do you mean like this? [CODE]$result = mysql_query("SELECT Fieldvalue FROM kid_rsform_submission_values WHERE SubmissionId IN (SELECT SubmissionId FROM kid_rsform_submission_values WHERE FieldValue = '850830126317') LIMIT 14");[/CODE]

Member Avatar for zalFG
0
78
Member Avatar for virtualmisc

I disagree. What your describing is you get a book written in french then translate it to english and have a uncopywrited work. Obviously that isn't how it works in the real world nor is it how it works in programming languages. So clearly changing it to another programing language …

Member Avatar for diafol
1
97
Member Avatar for rajeesh_rsn

It is in the users cache and although they can press back and view the pages they can't click any links or make any changes. Then this comes to the question disabling the back button which I believe isn't possible but you never know what's possible.

Member Avatar for cwarn23
0
611
Member Avatar for Charitha31

Your headers are invalid. Don't forget the function names are case sensitive. So turn HEADER() to header() like the following. [CODE]header("Expires: time()"); header("Pragma: no-cache"); header("cache-control: no-cache, no-store, must-revalidate");[/CODE] But I'm not sure about those strings inside the header though.

Member Avatar for cwarn23
0
168
Member Avatar for dottomm

It would be better to place all the data into a database and perhaps you could make a script that will insert it into the database for you. Then to display the content you just select from the database and display the contents from the database.

Member Avatar for dottomm
0
126
Member Avatar for muralibobby2015

That is a mixture of css and javascript. Basically you use css to make it look pretty then to make the background disappear simply use [ICODE]onclick="javascript:myfunction();"[/ICODE] Then javascript can change the css properties to make the background disappear.

Member Avatar for saiprem
0
123
Member Avatar for JuliaNell

Perhaps you should become familiar with a [URL="http://www.tizag.com/phpT/forms.php"]php forms tutorial[/URL]. Because forms will be able to solve most of your problem and if you want it to make changes without the page refreshing then you will need to follow an [URL="http://www.tizag.com/ajaxTutorial/"]ajax tutorial[/URL] in addition to the forms tutorial.

Member Avatar for cwarn23
0
53
Member Avatar for sutt0n

The scanned by signature is added by the virus scanner and therefore needs to be disabled by the virus scanner. So if you go into your servers virus scanner configurations you would untick the box for showing the scanned by in the signature. You would also do the same with …

Member Avatar for cwarn23
0
161
Member Avatar for harry_watson

Why don't you use strip_tags like the following? [CODE]$input='input<br><b>string</b>'; strip_tags($input,'<p><br>');[/CODE] That will strip every tag except the <p> and <br> tags. I believe that is the solution to your problem...

Member Avatar for harry_watson
0
4K
Member Avatar for cwarn23

Hi - it's me again. I have the following code but don't exactly know what it means or how to make the opposite code. The code I currently have is [CODE]#define rotateleft(x,n) ((x<<n) | (x>>(32-n))) #define rotateright(x,n) ((x>>n) | (x<<(32-n))) [/CODE] Then can be used like the following [CODE]a = …

Member Avatar for dusktreader
0
382
Member Avatar for musthafa.aj
Member Avatar for xuexue

Yes, all you need to do is give each row a unique id (eg number) and use [URL="http://www.tizag.com/ajaxTutorial/"]ajax[/URL] to make the php request.

Member Avatar for saiprem
0
100
Member Avatar for mohane

Try something like this: [CODE]<?php $line=82; //includes zero as 1. $newdata='this is a test 123'; $data=file('path/to/file.txt'); $data[$line]=$newdata."\r\n"; $data=implode($data); file_put_contents('path/to/output.txt',$data);[/CODE]

Member Avatar for mohane
0
2K
Member Avatar for muneerbasha

I'm not sure how many people here would be familiar with Bank Wire but I suspect it is an api and I assume you've read the documentation. Then if there are other troubles with the api could you please post the code and any error messages so we can see …

Member Avatar for cwarn23
0
89
Member Avatar for cwarn23

Hi and I have a hex to int function but it isn't converting the hex to integers properly. Below is the code an example is the hex bb76e739 which should = 3145131833 but with the function it equals 2147483647. I heard sprintf or something like that can convert the hex …

Member Avatar for mrnutty
0
185
Member Avatar for cloud09

Try this. [CODE]<?php $a = 0; if($handle = opendir('./images/new_images')) { while(false !== ($file = readdir($handle))) { if(trim($file,"\r\n\t/\\")!= '.' && trim($file,"\r\n\t/\\")!= '..') { echo $nfile[] = $file; } } } foreach($nfile as $key => $value) { $add .= $value."\n"; $a = $a + 1; } $add1 = "[PICTURES]\n"; $INIadd = $add1 …

Member Avatar for cloud09
0
89
Member Avatar for dks1383

According to Australian copyright laws it says you may not fame anothers website as your own unless you receive permission from the contents author. So basically if you were to embed a Flash game or webpage from another site on your site then that would be breaking the law unless …

Member Avatar for saiprem
0
119
Member Avatar for Salem

The best way to have a short and easy to remember password is by having a password like the following [ICODE]¢£¤¥¦§[/ICODE] or even the whole ascii table like the following [CODE]   !"# $%&'()*+,-./0123 456789:;<=>?@ABC DEFGHIJKLMNOPQRS TUVWXYZ[\]^_`abc defghijklmnopqrs tuvwxyz{|}~€�‚ƒ „…†‡ˆ‰Š‹Œ�Ž��‘’“ ”•–—˜™š›œ�žŸ ¡¢£ ¤¥¦§¨©ª«¬®¯°±²³ ´µ¶·¸¹º»¼½¾¿ÀÁÂà ÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓ ÔÕÖרÙÚÛÜÝÞßàáâã äåæçèéêëìíîïðñòó ôõö÷øùúûüýþÿ[/CODE] Who …

Member Avatar for PedroStephano
0
707
Member Avatar for ElegantElephant

Do you mean like this? [CODE]<?php $clientid = mysql_real_escape_string($_GET['client']); $query = "SELECT * FROM client_details INNER JOIN users ON client_details.userID = users.id WHERE userID = $clientid"; $result = mysqli_query($dbcon,$query) or die('Error executing database query'); if (mysqli_num_rows($result) < 1) { die('Error obtaining client details, no rows found. <a href="' . $_SERVER["HTTP_REFERER"] …

Member Avatar for ElegantElephant
0
86
Member Avatar for Salem

I wonder how long until they invent replicators. Replicators would be able to wipe out the robots with no problem. Or what about hackers hacking into a robot network. A hacker could send a Trojan to all robots in the United States and give those robots the command to destroy …

Member Avatar for vegaseat
1
179
Member Avatar for whiteyoh

Your sql string, shouldn't it be modified with a WHERE clause so it only matches one row? [QUOTE]$sql="SELECT owner_id FROM tbl_sellers";[/QUOTE]

Member Avatar for whiteyoh
0
169
Member Avatar for cwarn23

Hi and I have been searching the web but my answer isn't looking very hopeful. I need javascript or preferably css to make my text vertical so the result is something like the following. [CODE]t e s t i n g[/CODE] However with the result each of the characters need …

0
70
Member Avatar for aryanmughal

Do you mean like this? [CODE]<?php $variable='i45'; echo '<img src="http://'.$variable.'.expamle.com/'.urlencode($_GET['code']).'">'; ?>[/CODE]

Member Avatar for cwarn23
0
80
Member Avatar for umandajayo
Member Avatar for Jerail
-2
151
Member Avatar for veledrom

Your right about unlimited hosting. I signed up for [URL="http://www.justhost.com/"]justhost[/URL] and although I get unlimited webspace and unlimited bandwidth I am very restricted on what content I can publish and how much traffic I can have. So people like that are just a rip off. If you are after decent …

Member Avatar for mschroeder
0
898
Member Avatar for rahul8590

No. The Google OS hasn't even got the drivers for a harddrive. So basically Googles OS has 1992 technology (No hard drive and no cd rom just a flash drive) and should be put in a museum. And what is this about Googles OS can only run Crome. You cannot …

Member Avatar for vaultdweller123
-1
230
Member Avatar for Altairzq

[QUOTE=Altairzq;1120284]Hello Kyle, thanks a lot for your reply. I'm not placing my php scripts in the cgi-bin/php folder, my scripts are inside the folder structure of my website. As you say, they were executed fine anywhere in the server when I had my website in another hosting so I thought …

Member Avatar for Altairzq
0
1K
Member Avatar for meepmeep

Try make action="success.php" and in success.php place the following code. [CODE]$url = 'http://www.mywebsite.com/cgi-bin/cgiemail/form/form.txt'; //url-ify the data for the POST foreach($_POST as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string,'&'); //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST,count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string); //execute post $result = curl_exec($ch); …

Member Avatar for meepmeep
0
93
Member Avatar for 4789787

You should use the target="_Top" method. For example, below is an example of making a link. [CODE]<a href='test.php' target="_Top">test</a>[/CODE] And below are other possibilities you can try out. [CODE]<a href='test.php' target="_Blank">test</a><br> <a href='test.php' target="_New">test</a><br> <a href='test.php' target="_Self">test</a>[/CODE]

Member Avatar for cwarn23
0
112
Member Avatar for sureronald

[QUOTE]So my question is, "Does the browser have an effect on the type of a file uploaded?"[/QUOTE] Yes because if you go into the Opera preferences you will see that Opera will only recognize web related mime types. Other mime types are not programmed into Opera where as a browser …

Member Avatar for sureronald
0
122
Member Avatar for LloydFarrell

Is email_activated an integer field because if it is then the mysql query would be as follows. [CODE]mysql_query("SELECT * FROM `Goodisonpark` WHERE `email`='$email' AND `password`='$pass' AND `email_activated`=1");[/CODE]

Member Avatar for phpuser
0
145
Member Avatar for PinoyDev

[QUOTE]At login.php, when i echo the session data that was passed it is null. Why.?[/QUOTE] Do you have cookies enabled? Also does $_POST['course'] exist? And is $_POST['course'] a radio button? You need cookies enabled for sessions to work and as for radio buttons, sometimes they will return null if no …

Member Avatar for PinoyDev
0
136
Member Avatar for cwarn23

Well the first month of 2010 has almost gone in a flash. I'm sure the years shortest month February coming up will be just as good. Do you have any new months resolutions. And what did you think of January 2010 or January 2009 for those who are Chinese.

Member Avatar for GrimJack
0
61
Member Avatar for aneeka

Try this. [CODE]$count = mysql_query("SELECT * FROM qqq WHERE question = '$question' && answer = '$answer' && questionid = '$id'") or die(mysql_error()); $score = mysql_num_rows($count);[/CODE]

Member Avatar for aneeka
0
177
Member Avatar for 4789787

[QUOTE=4789787;1117290]That didnt work... when i went to the page that you need to be logged into to view it just redirected me to login.php thanks for trying though....[/QUOTE] Have you set your browser to delete your cookies when you close your browser. I would check your cookie preferences in your …

Member Avatar for 4789787
0
250
Member Avatar for Salem

[QUOTE=Salem;1106333]The linked thread still barfs...[/QUOTE] Same here and when I tried to post pi to 10000 digits it also said the server was out of memory. Annoying error.

Member Avatar for The Dude
1
301
Member Avatar for Facte

I would suggest the following: [CODE]<?php file_get_contents('http://cronsubdomain.yoursite.com/job1.php'); file_get_contents('http://cronsubdomain.yoursite.com/job2.php'); file_get_contents('http://cronsubdomain.yoursite.com/job3.php'); file_get_contents('http://cronsubdomain.yoursite.com/job4.php'); file_get_contents('http://cronsubdomain.yoursite.com/job5.php'); file_get_contents('http://cronsubdomain.yoursite.com/job6.php'); file_get_contents('http://cronsubdomain.yoursite.com/job7.php'); ?>[/CODE] Then you will have no problems with memory limits and function definitions as they are each a separate request.

Member Avatar for cwarn23
0
169
Member Avatar for cwarn23

I have a great project and the code is done but now I need a big computer. The specs are as follows Ram: 32GB CPU: Whatever GHz Harddrive: 8TB Video: 256MB etc. but Does anybody know when the technology will be available to have 32GB of ram with a price …

Member Avatar for cwarn23
0
155
Member Avatar for cwarn23

Hi and I have been working on an image uploader but need to be able to convert tiff files using php. From my understanding there is the gd library which doesn't support tiff files and the [URL="http://au.php.net/manual/en/function.exif-thumbnail.php"]exif library[/URL]. Does anybody know how I can convert a tiff file to a …

Member Avatar for cwarn23
0
814
Member Avatar for whiteyoh

Generally when debugging mysql the following is how to do it. [CODE]<?php $link = mysql_connect("localhost", "uname", "pword") or die('error 1<hr>'.mysql_error()); mysql_select_db("dbname", $link) or die('error 2<hr>'.mysql_error()); $result = mysql_query("SELECT ID FROM tbl_sellers", $link) or die('error 3<hr>'.mysql_error()); $num_rows = mysql_num_rows($result); echo "$num_rows Rows\n"; ?>[/CODE]

Member Avatar for benqus
0
99
Member Avatar for vjw757

Try replacing your first script with the following. [CODE]<? begin_block('Donate'); echo '<BR><BR><CENTER>This would need to contain your donation code, or something. maybe even a paypal link</CENTER><BR><BR>'; echo '<a href="member.php?mid='.$row['mid'].'">$row[login]</a>'; end_block(); ?>[/CODE] Also don't forget to include the api file.

Member Avatar for cereal
0
151
Member Avatar for nats01282

Perhaps the following code would be of some use to you. [CODE]<?php //no html/browser output before this function header('Location: http://www.example.com/'); exit; //...[/CODE]

Member Avatar for mktgmgr101
0
98
Member Avatar for jambrain

[QUOTE]my problem is i dont have my own webserver so im trying to make an mp3 upload form.[/QUOTE] Then you will be in for a real treat when you get a localhost server on your own computer. I would suggest downloading [URL="http://sourceforge.net/projects/xampp/files/"]xampp 1.7.0[/URL] and install it to your computer then …

Member Avatar for cwarn23
0
77
Member Avatar for xuexue

This is a hard question which I paid good money to solve. You need to download the library(s) source (eg the GD Source) then upload the source code to your server. After that you need to compile the source into the webserver via command line and when your finished that …

Member Avatar for cwarn23
0
134

The End.