Search:
Type: Posts; User: Belrick
Search :
Search took 0.02 seconds.
Using PHP im building a bunch of elements from directory structures.
HTML
<div class="gal">
<div class="counter"></div>
<div class="left_arrow"></div><div...
Definately the "" which is causing the grief with 5.2
They are added by excel since they are formatted as currency(, in thousands)
Just using while (($data[$row] = fgetcsv($handle, 0, ",")) !== FALSE) {
Have noticed after openign the csv in notepad++ that the negative numbers are bracketed with "
Going to try file get...
Hi!
Thankyou for reading.
Im pulling numbers off of a csv file.
In PHP 5.4 there isnt a problem.
In PHP 5.2 on a linux server that i have no means of access, -100.00 is not seen as...
I personally think you are either a coder/web developer or a graphic artist. Very rare for a person to be both IMHO.
What i'm saying is that you don't need to be able to design and make websites...
Hi
Sorry for the lecture but here it is anyway.
The key to writing good code is being easily able to debug said code.
Youve provided yourself with zero means to do so, that means every line...
Make it easy on yourself.
$connect = mysql_connect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db($database, $connect);
$query = "SELECT *...
The way you are organising your array is making life hard for you.
Seriously recommend you change your structure.
if(isset($_SESSION[$userid][$todaysdate])){...
What is Aslam o Alaikum?
Is that a mis spelling?
I personally think you need to spend some time wondering where your next meal will come from and how on earth will you afford to pay your share of the rent.
That sort of thing will focus your mind...
Definately possible and quite easy.
Good for you Nils
Everyone learns differently
Im from New Zealand and the males here all generally learn by hands on, seeing outcomes as a direct result of learning to APPLY what weve learnt
...
I found books terrible.
I kid you not, there were coding mistakes in them!
"why isnt this working?" can really screw your learning up if the code could never work!
Plus older revisions are...
I wish i could help but:
a. your code seems really convoluted
b. its missing parts of its code anyway.
How can help tell what you've left out accidently apart from whats not there on purpose?
Also i use csv for several situations.
But always as an altenative storage and access method to sql.
WHy dont you just store the raw data in sql and build a csv file as and when needed?
...
I use
base64_encode(gzcompress(serialize($objWriter)));
To store excel spreadsheets ($objWriter) into mysql blob for later retrieval.
Its a beautiful thing.
If you are new and in no great hurry then I recommend you ditch this code and learn instead to do it in ajax.
So much nicer for the end user to use interactive websites that impliment ajax.
Good question
I just use add slashes for ajax data and mysql_real_escape_string for forms used for logging in.
So youre sorted now then?
You can pretty much do what you like notflip, thats the good news!
The bad news is that youll need to change the way your brain works in order to achieve your goals (took me a long time but im...
is one or both using a persistant connection but each is using different login details?
...
Actually thinking about it
Seems likely that each one is over writting the others classes. Say they...
Just store each individual total into a session variable
@session_start();
if (!isset($_SESSION['grandtotal'])){
$_SESSION['grandtotal'] = 0;
}
$_SESSION['grandtotal'] +=...
Also IMHO input buttons are ugly and so 90's ;)
Better to make your own 'button' IMHO then give it a onclick or onmouseup js function.
Also i believe your state changed ajax function is wrong.
ajaxRequest.onreadystatechange = function(){
if (ajaxRequest.readyState == 4){
...