708 Posted Topics
Re: you have 2 "or" in the query, is that a typo or is that the actual query. | |
Re: php only has support for certain image types. i don't think tif is one of them. | |
Re: so what exactly was wrong with the code i typed up for you. the reason you getting the problem like i told you earlier is that you are not sending the search term along with each link in the script. the $_POST['keyword'] which contains the term on the first page … | |
Re: here is something i typed up a few weeks ago. it should work. [code] $table = '<table id="module" class="module" border="0" cellspacing="0" cellpadding="5">'; $cols = 3; $per_column = 10; $col = 1; $table .= '<tr>'; $table .= '<td>'; $table .= '<table id="module" class="module" border="0" cellspacing="0" cellpadding="5">'; $i = 0; while ($row … | |
Re: when mysql_query() executes ok it returns with a 1. try setting the mysql_query() to a variable and then returning the variable itself. [code] function query($sql) { $query = mysql_query($sql); return $query; } [/code] works for me that way. | |
Re: i think they are great. use them. they will provide you with a great site. i currently work as a php/database developer for them. | |
Re: go into the php.ini file and change the smtp host to your isp's smtp address. | |
Re: its easier to help when you explain what you want in more detail. | |
Re: from what I have been told, storing credit card numbers without encryption is illegal. I would recommend not storing them at all. ever. | |
Re: i am not really looking into the whole situation, just the code you provided. change: [code] $check_this_array = "$" . $key . "_array"; [/code] to: [code] $check_this_array = ${$key.'_array'}; [/code] this might solve your problem | |
Hello, I have completed a chat application using php/xml/ajax: [url]http://www.banditssoftball.org/chat/[/url] I had a function to submit messages after hitting enter. the only problem was it only worked in IE. I need one that will working in FF ect. I have tried everything i can think of and nothing works. Also, … | |
Re: you cannot execute two queries what way. mysql_query only accepts one. you need to run two seperate queries. | |
Re: why don't you just use an html email, right now its only sending as a text. | |
Re: wow, you are making things so difficult. you can use php to grab all of the table names in the database and display them. you can also use ajax to retrieve the info in the database without all of the excessive coding. if you need me to write some code … | |
Re: do you have an example? can you post the code. right now, I am also developing a chat system using PHP,XML,AJAX - no database. do you think that would be useful? | |
Re: just looking through your code, i noticed many problems (mostly security). if you could explain what exactly you are trying to accomplish in more detail, i would be glad to type up some code for you. | |
Re: in the mail function you used, you forgot a variable. it should be mail($to,$subject,$message,$headers); i think that should help. | |
Re: i'll write some code and see if i can get it to work. (i'm curious). i will let you know of the results. ![]() | |
Re: this is how i did it: Learned HTML > XHTML > JAVASCRIPT> PHP i also learned ajax (pretty much javascript) and xml (really easy). there are many other choice for server side scripting you can look into thoughs and see what you like best. Good Tutorial For Everything: [url]www.w3schools.com[/url] | |
Re: you need to use a cron job. search google for it and I think you'll find your answer. | |
Re: you can't upload to a remote server unless you use ftp. the way you have it set up is for uploading locally to a local directory. i have never been able to upload to a remote server like that. | |
Re: have the search form post to the new page you are talking about and process/display the results on that page. | |
Re: i would use ajax for something like that. makes it look professional. if you need more help pm me and i will see what i can do. | |
Re: i wouldn't use javascript to do it because that could be disabled. I would validate it via php. This code is how I would do it: [code] <?php $thispage = $_SERVER['PHP_SELF']; $form =<<<HTML <form action="$thispage" method="post"> Email Address:<br /><input type="text" name="email" class="style1" /><br /> Surname To Search:<br /><input type="text" name="q" … | |
Re: use: [code] $tmpFile = $_FILES['file']['tmp_name']; $size = filesize($tmpFile); if ($size > 200000) { echo 'File exceeds size limit'; } [/code] this is just an example you can manipulate this any way you want. | |
Re: i would set the smtp of the server to your isp's and you won't have to install a email server. | |
Re: do you need a pagination script? i have a few i developed 6 months ago you can use. | |
Re: i don't thinks it possible with the select element. you could use a good amount of javascript to do it (not with the select element, but something similar). | |
Re: can you post the form code so I can make the php code based on that. | |
Re: i have seen a lot of places like that use frames to force ads. I am not sure of the method they use to do this for their sites but that might get you in the right direction. | |
Re: just put the image name into an html image tag while you loop through the results in the database. ex. [code] echo '<img src="' . $imagepath . '" />'; [/code] | |
Re: use: [code] $sql = "SELECT COUNT(*) FROM `dates` WHERE `search` = 'yes'"; $query = mysql_query($sql); $res = mysql_fetch_row($query); $total = $res[0]; echo $total; [/code] | |
Re: this is really easy one. use this: [code] //$email is the variable with the email address $sql = "SELECT COUNT(*) FROM `table` WHERE `email` = '" . $email . "'"; $query = mysql_query($sql); $res = mysql_fetch_row($query); $num = $res[0]; if ($num > 0) { //display error } else { //process … | |
Re: which method are you using? GET or POST. if its GET then rudevils way will not work. | |
I am creating a php property buy/sell/trade game. The goal is to have the most properties and the most cash after a set time period (cash prize awarded later in site development). I was wondering what you guys would like to see in a game like this. Here is a … | |
Re: we need the code to help solve your problem. can you post it? | |
Re: please use code tags. did you put in your mysql connection info? i didn't look through all of that code because it would take forever, thats why am i asking. | |
Re: can you post any code you have? this would make it easier to help you. | |
Re: nevermind, my suggestion would work but I would have to rewrite you code. forget this post | |
| |
Re: can you post your code? its hard to help when i don't know exactly what i am dealing with. | |
Re: i use a session array to hold the values and at the very end pull the data from the array and process it into a database. | |
Re: you didn't set the $connection variable as global in the connection function. if for some reason that doesn't work, try removing $connection from the mysql_query | |
Re: use this: [code] $sql = "SELECT * FROM `contacts` WHERE `first1 = '" . $_POST['name'] . "' AND `mobile` = '" . $_POST['mobile'] . "'"; $query = mysql_query($sql); while ($row = mysql_fetch_assoc($query)) { echo '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $row['id'] . '">' . $row['first'] . ' ' . … | |
Re: this should do it. any problems let me know. [code] <html> <body> <?php $host = 'localhost'; $user = 'jesus'; $pass = 'jesus'; $db = 'jesus_jesus'; $con = mysql_connect($host,$user,$pass) or die('Error: Could not connect'); mysql_select_db($db) or die ('Error: Could not select database'); $id = $_GET['id']; $sql = "SELECT * FROM `jobs` … | |
The End.