- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
avid gamer, web developer, out of the closet psychonaut & mind-expander, anti-authoritarian, libertarian, and free-thinker
- Interests
- technology, computers, games, rpgs, science, astronomy, physics, psychonautics, mind-expansion, psychedelics,…
- PC Specs
- server: debian, php 5.3, mySQL 5, apache 2, gd lib 2 pc: ubuntu 9.10
Re:
Okay,i try to call a function of mysql_prep() that i made in functions.php. I try to call this function at the page of create_subjects.php by typing this [CODE]<?php require_once("includes/functions.php");[/CODE] into the create_subjects.php. and this is the full code of create_subjects.php : [CODE] <?php require_once("includes/functions.php"); ?> <?php $connection = mysql_connect("localhost","root","mypassword"); if … |
|
Re:
I have problems with this part of my code, I try to make a dynamic email and send it, I already can send a plain email with this but now I need to make an email with personalized info. I hope you guys can take a quick look. [CODE=php] $smtp … |
|
Re:
For example , As i registered in daniweb.com , a mail was sent to my email id and after clicking on that link , i could complete my registration . i want to develop a similar module in php , where the users after signing in , i sent this … |
|
Re:
Hi , In one of my web application I want a real visitor count. I am not looking for any third party one. Also I want to know visitors are from which country ? I wrote a code and that will add in database when each page visit. But if … |
|
Re:
Hello everyone. I am building a web application having various tables and 4-5option buttons in each table. When user check on one of these option buttons then the option is saved at server. I want whenever user returns the option marked by him earlier should be preloaded. For example if … |
|
Re:
Hi, I want to get the user and group that APACHE is running in through PHP. Like APACHE normally has the user 'apache' and group 'apache' but it can sometimes be 'httpd' for both or it may have been changed by the server admin. How do I find out the … |
|
Re:
Below is my post script. I'm trying to make it have a flood check (or something to stop people from spamming and crashing my servers) and my solution is to make a message appear saying "You've posted" when they hit the Post button. I tried adding Javascript alerts in multiple … |
|
Re:
I need a help with selecting the rows in a table depending on the [I]status[/I] in previous table. [B][COLOR="DarkGreen"]Table1[/COLOR][/B] [CODE]Column1 Column2 Status Smith Alex 1 Smith Mark 0 John Smith 1[/CODE] I have second table with 2 columns. I want to select only those rows which have ANY of the … |
|
Re:
Hello everybody, I want to write php script with classes, but I haven't enought knowledges. I want to delete multiple rows from mysql with chekbox, but I am wrong. I will be very happy if somebody responds me. This is my code function showNews(&$sHtml) { $sHtml.='<input type="submit" name="btnDel" value="delete"/>'; $aNews … |
|
Re:
hi there, I have taken script which fucntion as mysql connection. but there are somethings that i dont understand. does anyone can help me? Thanks in advance the code is below [CODE]function query($sql) { $link = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME) or die('There was a problem connecting to the database.'); … |
|
Re:
Is it possible to obtain the next insert ID without actually executing a proper insert query? I am writing a file upload script but the name of the folder the file gets uploaded to depends on the next insert ID of a certain table. Would appreciate any help with this. |
|
Re:
I read a [URL="http://www.infoworld.com/d/open-source/open-source-innovation-the-cutting-edge-582"]story[/URL] this morning over at [URL="http://www.infoworld.com"]Infoworld.com[/URL] that shocked me a bit. Neil McAllister discusses how proprietary software companies, like [URL="http://www.microsoft.com"]Microsoft[/URL], criticize open source projects by saying that, "They don't innovate, they copy." Is that really the consensus for an entire software realm that brought us the [URL="http://www.w3.org"]world … |
|
Re:
I have a site am working on and I really want to put comment script on it. But I don't want a database. |
|
Re:
Does anyone know how to find and trace website visitor's location(Country/city) using PHP/sql? Thanks in advance. |
|
Re:
Hi all, I AM TRYING TO CREATE A SEARCH ENGINE USING PHP AND MYSQL. I've been hitting the same problem over and over in my development. Sometimes when i do a MySQL query I keep getting the error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\searchengine\search.php … |
|
Re:
Does anyone know if it's possible to have several text fields that place the data into different spots in the same web page. If needed I could just use two pages, it doesn't really matter. I've heard this requires a PHP script, but I'm not sure how to set this … |
|
Re:
Hi there, I need some help, I am building a large site, about 150 pages. I want the ending to be .html and not .shtml using .ssi. Is there a work a round to do this? More information: I am setting up a site for a client, and over the … |
|
Re:
Hi I am trying to write a script that puts a Horizontal Line between MySQL query results but doesn't show up after the last row. eg: First Line ---------------- Second Line ---------------- Third Line I'm using PHP, MySQL and JavaScript AJAX. Don't know if that's relevant for this instance or … |
|
Re:
I was wondering, is it possible to get specific data from another website ? Let's say i want from page X the content from a div. How can i make write in php a script that automaticaly gets and echo into my site what is inside that div from page … |
|
Re:
Recently i was Writing a Preg replace Function in PHP Here is the Code below [CODE]$suchmuster = "/".$textlinksname."/i"; $replace = "<a href='".$textlinksurl."' target='_blank'>".$textlinksname."</a>"; $body = preg_replace($suchmuster,$replace,$body,200);[/CODE] Since the variable $body contains links begins with http:// when it replaces the matched text in URL it becomes a problem Similarly for the … |
|
Re:
hey, please can anyone help me to add new row or a column to the table whenever a user clicks on the add button? thanx in advance |
|
Re:
i am trying to create a new subject and redirecting the page to the home page after the subject is created which is(content.php). The code succesfully created the object but the page redirecting that i try to make is failed and my browser came out with this error message : … |
|
Re:
My javascript function setHw is not called by pressing the return key in all of the following pages. Please help. [CODE]<div id="rowPerPageDiv"> <form name="tagform" action="Hw.htm" method="post"> <input type="hidden" name="currPage" value="0"/> Rows Per Page<input type="text" name="rowsPerPage" id="rowsPerPage" value="20" onsubmit="return setHw()"/> <input type="button" value="Apply" onClick="setHw()"><br> </form> </div>[/CODE] [CODE]<div id="rowPerPageDiv"> <form name="tagform"> <input … |
|
Re:
I'm pretty new to JavaScript. I'm trying to define my custom errors, but it doesn't seems to be working [CODE] function MyError(msg){ this.message = msg this.name = "My Error" } window.onload = function(){ try{ throw new MyError("Test Message"); } catch(e) { alert(e.name + ": " + e.message); } } [/CODE] … |
|
Re:
I have created a class Vacancy which has some variables : public $salary; public $id; ... I am looping through the result of a query and creating a vacancy for each match Then I adding the vacancy to an array. [icode] $tempVacancy=new Vacancy(); $tempVacancy->salary = mysql_result($result,$i,"salary"); $tempVacancy->id =mysql_result($result, $i, "yid"); … |
|
Re:
While cleaning my computer, I notice that I have a lot of files that are marked as LOCAL file under File type. Does anyone have a clue as to how to open these? My cleaning software is flagging these files as files that are junk files that need to be … |
|
Re:
Safari browser will not accept my cookie it is ignoring it? have I done something wrong with how the cookie is presented for safari??? The cookie I try to set: setcookie('peg', 'YES', 'time()+190', '', 0); Also all browsers are starting my phpsession off when its not even declared until after … |
|
|
Re:
Hi again, I'm trying to load a text file into a variable and I know of the jquery load [CODE] $("div").load("file.txt"); [/CODE] but I want to be able to load it into a var, does anyone know how to do this? Thanks in advance. |
Howdy, First off, I should say that I am jumping on posting this issue much quicker than I normally would - but I'm not really in a patient mood now, and I'm far from being a fan of anything the W3 has done. Anyhow, I am in the process of … |
|
Re:
Hi all, can someone help me here - I ave a regisration script where I am uploading an image to mysql, The problem im having at the moment is this..... The script creates a new folder by using the mysql_last_id function as shown below - The problem im having is … |